0.47pre3 Crash with paste image

Bug #447412 reported by Remi B
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
High
Unassigned

Bug Description

I have windows Vista, but the problem can produced also with windows XP.

If I press "Print screen" key and paste the image then Inkscape always crash.

su_v (suv-lp)
tags: added: clipboard crash
Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Vista sp1, Inkscape 0.47pre3 and revision 22384.
The clipboard is correctly pasted.

Changed in inkscape:
importance: Undecided → High
Revision history for this message
Alvin Penner (apenner) wrote :

- cannot reproduce on Windows XP, Inkscape 0.47pre3.
- could you try to capture the error messages that may be produced, using the method outlined at :
http://kaioa.com/node/63
- This will require downloading the (small) program inkscapec.exe, saving it into the same directory as Inkscape, and running it from a DOS prompt.

Revision history for this message
Remi B (remi-inconnu) wrote :

I have tried another time with version Inkscape-0.47pre3-1.win32.7z on vista SP2.
I crash each times, I press on my keyboard the key "Print Screen" (on my keyboard the key name is "Impr Ecran/syst" I suppose that for you it is the "print screen" key), and I select in menu "paste" (see pictures).

Could you the set the source of the version 0.47pre3 on "http://inkscape.modevia.com/win32/?C=M;O=D" ?,
I can compile this version and try with gdb.

Best regards

Revision history for this message
su_v (suv-lp) wrote :

> Could you the set the source of the version 0.47pre3 on "http://inkscape.modevia.com/win32/?C=M;O=D" ?
? the source tarball are right where you downloaded the prebuilt 0.47pre3 on sf.net.

> I can compile this version and try with gdb.
In the meantime there has been 0.47pre4 released - you can get the files you need from <http://sourceforge.net/projects/inkscape/files/inkscape/0.47pre4/>

just out of curiosity (I'm not on Windows) - do you use a clipboard manager? If so - have you tested without it? And is the file output format of 'Print Screen' configurable? What is its default - PNG, BMP or other?

Revision history for this message
su_v (suv-lp) wrote :

… and one more question: does it also happen if you first save the new document before pasting the screen print?
Background: a pasted image is not stored inside the document but inserted as a linked bitmap which is newly written to the disk. If Inkscape doesn't have permission to write that bitmap file it crashes.

Revision history for this message
Remi B (remi-inconnu) wrote :

> … and one more question: does it also happen if you first save the new document before pasting the screen print?

Just start inkscape, press "Print Screen", and select the menu "Edit/Paste" ... you get a crash, there is no more complicated...

In the Vista log I get this message :
Application défaillante inkscape.exe, version 0.46.0.0, horodatage 0x4ac07e68, module défaillant libglibmm-2.4-1.dll, version 0.0.0.0, horodatage 0x47c9fbd7, code d’exception 0x40000015, décalage d’erreur 0x00025715, ID du processus 0x8ec, heure de début de l’application 0x01ca4b727f0ace50.

Revision history for this message
su_v (suv-lp) wrote : Re: [Bug 447412] Re: 0.47pre3 Crash with paste image

> ... you get a crash, there is no more complicated...
I didn't doubt that you get the crash easily and repeatedly - my
questions are geared towards narrowing down the underlying cause for the
crash (like denied permissions for writing inkscape_pasted_image_*.png
files - see bug #339715 comment #3 for a short technical explanation).

> In the Vista log I get this message :
> Application défaillante inkscape.exe, version 0.46.0.0,
Does Inkscape 0.47pre3 or pre4 crash as well?

Revision history for this message
Alvin Penner (apenner) wrote :

are you able to successfully save the document before you hit "Print Screen"?

Revision history for this message
Alvin Penner (apenner) wrote :

are you able to successfully export a bitmap using File->Export Bitmap

Revision history for this message
su_v (suv-lp) wrote :

> does it also happen if you first save the new document before
> pasting the screen print?

Previous versions of Inkscape (even prerelease) wrote bitmap copies -
images pasted into unsaved documents - into the root application
directory (on OS X: inside the application bundle). If you didn't have
write permissions to the inkscape installation folder this would cause a
crash (Glib::FileError). If a document has been saved, pasted images are
stored in the same folder as the svg file.

The default location recently changed (at least on OS X): bitmap copies
are saved in $HOME as long as the svg document is unsaved. I don't know
how this is handled on win32 platforms though.

Revision history for this message
Remi B (remi-inconnu) wrote :

I have installed inkscape directly with your setup (not from the zip), then the problem have disapeared, however the image paste are sometime noised (see attachement).

Revision history for this message
Remi B (remi-inconnu) wrote :

> If a document has been saved, pasted images are stored in the same folder as the svg file.

I have try with not installed version, I save svg document before the paste, then inkscape not crash.

Revision history for this message
su_v (suv-lp) wrote :

> I have try with not installed version, I save svg document before the
> paste, then inkscape not crash.

thanks for confirming.

most of the bugs related to the initial crash reported (''Glib::FileError''):
Bug #211607 “Crashes when attempting to use "Paste objects from clipboard..."”
Bug #226259 “[Win32] Pasting from the clipboard causes VC++ runtime error when logged in as limited user”
Bug #272192 “Clicking "Edit->Paste" causes an internal error”
Bug #308456 “copy/paste crashes Inkscape”
Bug #328597 “Inkscape crashes when copying and pasting picture from openoffice document”
Bug #308456 “copyt/paste crashes Inkscape”
Bug #339715 “Pasting from Illustrator crashes Inkscape”: *** Ulferikson's explanation ***
Bug #381301 “copy, paste, crash”
Bug #418832 “Crashes after clipboard paste”
Bug #442308 “Pasting crashes Inkscape 0.47-pre3 on Mac OS X 10.5”

Note: these 'Glib::FileError' crashes still need to be triaged and marked as duplicate of the first reported or most relevant if the same cause is indicated. Even if pasting from clipboard no longer crashes here the common root cause is an unhandled exception (terminate called after throwing an instance of 'Glib::FileError').

Revision history for this message
uwesch (uwesch) wrote :

now pre4 is out and i can't reproduce this error with pre4.

Revision history for this message
Alvin Penner (apenner) wrote :

so, can this report be closed?

Revision history for this message
su_v (suv-lp) wrote :

@Alvin - I doubt that the 'Glib::FileError' has already been fixed (Inkscape 0.47pre3 still crashes on OS X under similar circumstances i.e. if user has no write permissions to tmp locations of pasted bitmaps). I'd rather link this report as duplicate to a bug like 211607 or 226259. There could be even earlier reports, but I didn't search beyond above list yet ;-)

@Remi - if you continue to have 'noisy' pasted images, please file a separate report.

Revision history for this message
su_v (suv-lp) wrote :

Marking as duplicate of bug #211607. Please add a comment and revert the duplicate status if you don't agree.

Revision history for this message
su_v (suv-lp) wrote :

Remi B wrote on 2009-10-13: (comment #11)
> however the image paste are sometime noised

JFTR: this could be the same as bug #168386 “Large PNG image import fails.”
<https://bugs.launchpad.net/inkscape/+bug/168386>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.