Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

Screenshot command line --dp 6 stops working after 10 screenshots

  • 3 отговора
  • 5 имат този проблем
  • 1 изглед
  • Последен отговор от edvardgrieg11

more options

Hi, I was trying the command line function(?) "screenshot" with the "--dpr" argument ("--dpr 6"), but what I realized is that if I take 10 screenshots, the next ones must have a smaller dpr value (e.g., "--dpr 5"), and this continues after taking more screenshots with the smaller value (the screenshot function will only work now with "--dpr 4" or less). Why is this happening? What am I doing wrong? Thanks!

Hi, I was trying the command line function(?) "screenshot" with the "--dpr" argument ("--dpr 6"), but what I realized is that if I take 10 screenshots, the next ones must have a smaller dpr value (e.g., "--dpr 5"), and this continues after taking more screenshots with the smaller value (the screenshot function will only work now with "--dpr 4" or less). Why is this happening? What am I doing wrong? Thanks!

Всички отговори (3)

more options

I couldn't find a way to edit my question, so sorry for double posting. But for example: if I go here http://www.democracynow.org/2016/4/7/headlines/iceland_names_new_prime_minister_in_wake_of_panama_papers and hit shift + F2 and type in "screenshot --fullpage --dpr 6" it won't even run.

I have 12 Gb RAM, I'm a Win 7 64 bit user (Firefox 32 bit), Intel Core i7

more options

Променено на от cor-el

more options

Thanks cor-el! To tell the truth, I couldn't make much of the code, but I think the problem lies with the function createScreenshotData. Something is not flushing, it seems that the more screenshots I make something builds up and in the end the function can't work anymore. As if a buffer had it's memory treshold exceeded.

The importance of the dpr value is only the size of the file, it gets bigger with a bigger value. After a certain amount of data is captured the screenshot function stops working. For example, if I take 10 screenshots with --dpr 6, or (say) 22 with --dpr 5, or a mix (8 screens with --dpr 6 and 12 with --dpr 5) I can't take any more screenshots (or maybe some with a smaller dpr value, like 1 or 2). I need to restart Firefox in order for it to work again