Crash when opening the file dialog via 'Export PNG Image > Export as' (Windows, trunk)

Bug #1663999 reported by Alvin Penner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Patrick Storz

Bug Description

Windows 10, Inkscape 0.92+devel 15506

- open Inkscape and load the attached file rotate_0.svg
- open XML editor and set the namedview property inkscape:document-rotation="90"
- note that the entire canvas rotates by 90 degrees as expected
- go to File->Export PNG Image
- click on Export As in order to specify a location
- get a popup message saying "Unspecified fatal error encountered, aborting"
- get a Microsoft Visual C++ runtime error
- get the DOS messages

.............................................................
Emergency save activated!

Emergency save document locations:
  C:\Windows\Temp\rotate_0.svg.2017_02_12_07_07_27.0.svg
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.

Gtk-Message (recursed): GtkDialog mapped without a transient parent. This is discouraged.

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

Crash not reproduced with lp:inkscape r15507 on Ubuntu 14.04.5 LTS.

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

reproduced on Windows, trunk rev 15444

summary: if inkscape:document-rotation="90", cannot export as png, get crash
+ (Windows, trunk rev >= 15444)
su_v (suv-lp)
tags: added: crash win64
Revision history for this message
Jabiertxof (jabiertxof) wrote : Re: if inkscape:document-rotation="90", cannot export as png, get crash (Windows, trunk rev >= 15444)

Alvin, could you provide backtrace?

Revision history for this message
Jabiertxof (jabiertxof) wrote :

thanks

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

yes, here it is

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

I wonder whether the crash reported here has same underlying issue as with bug #1663884 (missing GSettings schemas).

Just curious - this does not reproduce with an unrotated document? What if you use native dialogs?

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

wow, this is embarassing, I get exactly the same result if I load rotate_0.svg and try to export it. backtrace is the same as well. Never tried that test before.

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

for what its worth, I just re-tested using the file rotate_0.svg and using rev 15443, and got the same crash. So it is not related at all to rev 15444. I was focussing especially on rev 15444 because of the crashes that I was seeing in Bug 1663697
https://bugs.launchpad.net/inkscape/+bug/1663697
and Bug 1662531
https://bugs.launchpad.net/inkscape/+bug/1662531

I think this must be what is called tunnel vision, where you see only what you want to see.
Anyways, I apologize for the confusion, and I will go back to these other two bugs and re-test them to see if I can get some backtraces.

Revision history for this message
su_v (suv-lp) wrote : Re: Crash when opening gtk file chooser via 'Export PNG Image > Export as' (Windows, trunk)

Would you mind testing the issue reported here (crash with 'File > Export PNG Image > Export as') with native file dialogs? In Inkscape 0.92 (GTK2), the 'Export as' dialog uses the native Windows or the GTK file chooser, depending on the user's preference setting; probably this is the same with trunk GTK3 builds:

Edit > Preferences > Interface > Windows > Desktop Integration:
[x] Native open/save dialogs
[ ] GTK open/save dialogs

summary: - if inkscape:document-rotation="90", cannot export as png, get crash
- (Windows, trunk rev >= 15444)
+ Crash when opening gtk file chooser via 'Export PNG Image > Export as'
+ (Windows, trunk)
Revision history for this message
su_v (suv-lp) wrote :

On Windows 10:
- not reproduced with Inkscape 0.92.1pre1 (GTK2) from inkscape.org
- reproduced with inkscape_trunk_r15113 (GTK3) from
  http://download.tuxfamily.org/inkscape/win64/

I apologize for the misleading question in the prior comment: the issue seems unrelated to the type of open/save file dialog (native, GTK). On a closer look, the 'Export as' button on Windows always opens a native file chooser dialog (see also bug #1071104 comment 1).

Changed in inkscape:
status: New → Confirmed
summary: - Crash when opening gtk file chooser via 'Export PNG Image > Export as'
+ Crash when opening the file dialog via 'Export PNG Image > Export as'
(Windows, trunk)
Revision history for this message
su_v (suv-lp) wrote :

Crash no longer reproduced with inkscape_trunk_r15113 after downloading the schemas from the devlibs64 repository:
 http://bazaar.launchpad.net/~inkscape.dev/inkscape-devlibs64/trunk/files/head:/share/glib-2.0/schemas/

and copying them into
 share\glib-2.0\schemas\
inside the unpacked trunk build.

The same workaround also stops the crashes as reported in bug #1663884.

AFAICT this is a packaging issue with GTK3-based applications compiled on/for Windows.

tags: added: packaging
su_v (suv-lp)
tags: added: gtk3
Revision history for this message
Patrick Storz (ede123) wrote :

Fix committed in r15514
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/15514

Thanks su_v for figuring this out!

Changed in inkscape:
status: Confirmed → Fix Committed
assignee: nobody → Eduard Braun (eduard-braun2)
jazzynico (jazzynico)
Changed in inkscape:
status: Fix Committed → Confirmed
status: Confirmed → Fix Released
importance: Undecided → High
Revision history for this message
Hachmann (marenhachmann) wrote :

@Eduard: Is this fixed in the official Windows packages for 0.92.1?

(at least here is a question that sounds like it's the same issue:
https://answers.launchpad.net/inkscape/+question/643771)

Revision history for this message
Patrick Storz (ede123) wrote :

This issue was only relevant to gtk3 builds, so 0.92.1 is not affected.

Revision history for this message
Hachmann (marenhachmann) wrote :

Mmh, okay... sorry. Thank you for jumping in on the discussion in the answers section!

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.