Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

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

  • 3 réponses
  • 5 ont ce problème
  • 1 vue
  • Dernière réponse par 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!

Toutes les réponses (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

Modifié le par 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