Le thread ibilondoloziwe. Nceda ubuze umbuzo omtsha ukuba ufuna uncedo.
Screenshot command line --dp 6 stops working after 10 screenshots
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!
All Replies (3)
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
I see this about "dpr" (ratio) in the Firefox source code:
Ilungisiwe ngu cor-el
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