TrissM / chrome-screen-capture

Automatically exported from code.google.com/p/chrome-screen-capture
1 stars 0 forks source link

"Failed to save the screenshot" #310

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm able to take a full screenshot successfully but every second one i try i 
get the error "Failed to save the screenshot". 

If i restart Chrome then i'm able to successfully take a full screenshot but 
then the next one fails again so i have to keep restarting.

I'm using Chrome - Version 26.0.1410.43

Original issue reported on code.google.com by AdamRo...@gmail.com on 5 Apr 2013 at 10:12

GoogleCodeExporter commented 9 years ago
Same issue here. Sad that it's gone on for 4-5 months now for me. Every time I 
try to save a screenshot it will fail randomly about 50% of the time.

Original comment by peterpa...@gmail.com on 5 May 2013 at 7:39

GoogleCodeExporter commented 9 years ago
For me it fails 100% after the first one. Why?

Original comment by stevenroose on 9 Jun 2013 at 10:32

GoogleCodeExporter commented 9 years ago
Same for me, failing every time after the first one.

Original comment by joseluis...@gmail.com on 9 Jun 2013 at 11:48

GoogleCodeExporter commented 9 years ago
Same issue for me too. It seems to happen intermittently. 

Original comment by brett.bu...@gmail.com on 10 Jun 2013 at 1:54

GoogleCodeExporter commented 9 years ago
The locale message is from here: 
cpngackimfmofbokmjmljamhdncknpmg/5.0.6_0/_locales/en/messages.json
   "save_fail": {
      "message": "Failed to save the screenshot."
   },

and happens here ( cpngackimfmofbokmjmljamhdncknpmg/5.0.6_0/showimage.js ):

  save: function() {
    photoshop.draw();
    var formatParam  = localStorage.screenshootQuality || 'png';
    var dataUrl;
    if (formatParam == 'jpeg' && isHighVersion())
      dataUrl = $('canvas').toDataURL('image/jpeg', 0.5);
    else
      dataUrl = $('canvas').toDataURL('image/png');

    // Here we use the plugin object in showimage.html 
    // instead of the plugin object in background page, 
    // so that the SaveScreenshot dialog will be a modal dialog.
    var pluginobj = document.getElementById('pluginobj');
    if (!localStorage.lastSavePath)
      localStorage.lastSavePath = localStorage.savePath;
    pluginobj.SaveScreenshot(
        dataUrl, photoshop.tabTitle, localStorage.lastSavePath,
        function(result, path) {
          var message = chrome.i18n.getMessage('save_fail');
          var messageClass = 'tip_failed';
          if (result == 0 && path) {
            var i18nMessage = chrome.i18n.getMessage('saved_to_path');
            message = i18nMessage + '<a title="' + path +
                '" onclick="bg.plugin.openSavePath(\'' +
                path.replace(/\\/g, '/') + '\');">' + path + '</a>';
            messageClass = 'tip_succeed';
            localStorage.lastSavePath = path;
          }
          if (result != 2)
            photoshop.showTip(messageClass, message, 5000);
        },
        chrome.i18n.getMessage("save_image"));
    photoshop.finish();
  },

Original comment by teslamot...@gmail.com on 10 Jun 2013 at 4:54

GoogleCodeExporter commented 9 years ago
Same here

Original comment by tweedech...@tweedechidna.com on 14 Jun 2013 at 10:22

GoogleCodeExporter commented 9 years ago
I have the same problem, randomly.

Original comment by pablo.swp@gmail.com on 20 Jun 2013 at 5:09

GoogleCodeExporter commented 9 years ago
I am also getting this issue max osx mountain lion

Original comment by raygerr...@gmail.com on 22 Jun 2013 at 11:06

GoogleCodeExporter commented 9 years ago
Same here
Solution:

If it fails to save the screenshot, highlight the screenshot > right click > 
press 'Save As'
It should work!
If it doesn't just restart computer and/or your web browser

Original comment by mgat...@gmail.com on 26 Jun 2013 at 7:47

GoogleCodeExporter commented 9 years ago
Same here. Been happening for months. Very unproductive and annoying. One can't 
always restart the browser as other tabs may be in the middle of a secure 
sessions or you're downloading a file etc.

Original comment by t...@encosion.com on 1 Jul 2013 at 1:41

GoogleCodeExporter commented 9 years ago
I've found that changing the "Screenshot Quality Settings" from PNG to JPEG and 
back can work after you get the dreaded "Failed to save the screenshot" error.

Right click on the Screen Capture icon and select Options OR go to 
chrome://extensions > Screen Capture and click the Options link. Change 
Screenshot Quality Settings to JPEG and click the Save & Close button. I saved 
the image as a JPEG and it saved (not sure if this step is required). I went 
back to the Options and changed Screenshot Quality Settings to PNG and saved 
the settings. Finally, I was able to get a screenshot saved as a PNG after 
getting the "Failed to save the screenshot" error.

Original comment by teslamot...@gmail.com on 10 Jul 2013 at 4:20

GoogleCodeExporter commented 9 years ago
same issue for me on osx

Original comment by av...@rayv.com on 25 Jul 2013 at 10:39

GoogleCodeExporter commented 9 years ago
Possible solution: If you have "Autosave" enabled, ensure the "Default save 
location" folder exists or you will get the "Failed to save the screenshot" 
error.

Original comment by teslamot...@gmail.com on 26 Jul 2013 at 7:07

GoogleCodeExporter commented 9 years ago
I have the same issue.  Changing from png to jpg worked. but I have to switch 
it every time.

I'm on OSx Mountain Lion

Original comment by j...@zilkey.com on 30 Jul 2013 at 5:43

GoogleCodeExporter commented 9 years ago
Same issue and it's very irritating. Chrome on OS X.

Original comment by Vanthari...@gmail.com on 26 Aug 2013 at 9:33

GoogleCodeExporter commented 9 years ago
I have hacked a solution that works for the time being. It creates a copy of 
the screenshot and automatically downloads it to disk. I'm sharing in case it 
can help anybody out there. 

https://gist.github.com/omarrr/6445056

Disclosure: It requires some hackery with the Developer Tools panel. 
Instructions in the comments.

Original comment by oma...@gmail.com on 5 Sep 2013 at 1:45

GoogleCodeExporter commented 9 years ago
very annoying, can't believe that this should be hard to fix

Original comment by i...@stockpulse.de on 24 Sep 2013 at 2:10

GoogleCodeExporter commented 9 years ago
Getting the same thing listed above by everyone else. Unable to take screen 
shots after the first one saves as a png. Switching back and forth doesn't work 
for me.. on OSX.

Original comment by gronskim...@gmail.com on 26 Sep 2013 at 8:58

GoogleCodeExporter commented 9 years ago
Having the same issue.

Original comment by dloewenherz on 9 Oct 2013 at 2:15

GoogleCodeExporter commented 9 years ago
Also having this issue.

Original comment by lars.d.j...@gmail.com on 20 Oct 2013 at 4:15

GoogleCodeExporter commented 9 years ago
This seems to happen whenever I have a pipe (a "|") character in the page's 
title. It happens without regard to the filename I choose, and I'm also running 
on OS X Mountain Lion.

Original comment by zach%zac...@gtempaccount.com on 31 Oct 2013 at 10:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
For me it always happens when continuous saving 2nd screenshots. I have to 
restart Chrome and save a new screenshot then it won't happen.

I'm using OS X 10.9 and chrome.

Original comment by stu...@gmail.com on 15 Dec 2013 at 10:19

GoogleCodeExporter commented 9 years ago
I installed the extension "Awesome Screenshot" instead and never had a problem 
since!

Original comment by maz...@gmail.com on 16 Dec 2013 at 5:34