importing graphics crashes app on OS X in 0.91

Bug #1398521 reported by jmeidal on 2014-12-02
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
High
Tim Sheridan

Bug Description

I installed Inkscape-0.91pre3-x11-10.7-x86_64.dmg on Mac OS X Yosemite. It seems to work pretty well, but so far have found one serious issue.

When attempting to copy/past or Import outside graphics (just raster?) the app crashes immediately.

I'm happy to do more testing with this if needed.

su_v (suv-lp) wrote :

Please attach the crash log created by the system (you can find the crash logs in ~/Library/Logs/DiagnosticReports/, choose a relevant one based on the time stamp, for the application 'inkscape-bin'). Any console messages related to the crash would be helpful too.

If you happen to know how to use lldb to create a backtrace, you can also launch Inkscape.app in the Terminal like this:
$ INK_DEBUG=lldb /Applications/Inkscape.app/Contents/MacOS/Inkscape

tags: added: bitmap crash importing
Changed in inkscape:
importance: Undecided → High
su_v (suv-lp) wrote :

Any chance you could test whether experimental osxmenu builds [1] also crash on Yosemite when importing the same bitmap images, and whether the crash in 0.91pre3 happens independent of the import settings used (embed, link, resolution from file or default)?

[1] <https://code.launchpad.net/~suv-lp/inkscape/osxmenu>

su_v (suv-lp) wrote :

Needless to say that I can't reproduce the crash on my local system (10.7.5), though it's not a completely unfamiliar type of crash (early packages of osxmenu produced similar crashes on Mavericks (but not on the local system either)).

Could you please try this (in order to provide a few more details until I have prepared a debug build which includes debug symbols):
1) download the package 'Inkscape-0.91pre3-r13671-2-x11-10.7-x86_64.dmg' from this dropbox folder:
   https://www.dropbox.com/sh/magg5vw5j3y1y3u/AAD-l8JqwCyUNuoWYNRKufyHa?dl=0
2) install into any folder (e.g. ~/Applications)
3) launch the new build with these steps:
- in the Finder, browse to the application
- use 'Show Package Contents' from the context menu of the selected app
- browse to 'Contents > MacOS' and double-click 'Inkscape'
  (this will open a non-interactive terminal window which will display console message, and allows to easily copy&paste them)
- once Inkscape's main window has opened, import a bitmap image (via 'File > Import')
  (likely the same type of crash will occur)
- copy&paste any messages appearing in that terminal window, save them as a 'Plain Text' file and attach it to this report.

The package 'Inkscape-0.91pre3-r13671-2-x11-10.7-x86_64.dmg' doesn't differ a lot from the "official" 0.91pre3 package - it has a couple of debug messages added to the file which attempts to detect the image resolution of the imported bitmap image.

jmeidal (jmeidal) wrote :

Thanks suv, attached is my previous crash log. I'm going to test your osxmenu build soon.

jmeidal (jmeidal) wrote :

Here's another crash file for the same issue, from another computer.

jmeidal (jmeidal) wrote :

OK, first I'm now running Inkscape-0.91+devel+osxmenu-r12872-1-quartz-10.7-x86_64 and it works nice. I was able to drag a PNG file into the canvas from the desktop and convert to a path.
However when I opened the File->Import dialog I received a crash, so attaching this here too.

jmeidal (jmeidal) wrote :

Running Inkscape-0.91pre3-r13671-2-x11-10.7-x86_64 here, and I actually found more functionality. I was able to import a PNG, and copy/paste the file from the Desktop (although all I got was an icon image. I cannot drag a file from the Desktop to the canvas however.
I converted a PNG into a path, then opened the Import dialog again, finally receiving an app crash.

su_v (suv-lp) wrote :

On 2014-12-02 23:13 (+0100), jmeidal wrote:
> However when I opened the File->Import dialog I received a crash, so
> attaching this here too.

The crash occurs before you even attempt to import a bitmap image, simply when opening the 'File > Import' dialog without selecting a file?

jmeidal (jmeidal) wrote :

I'm trying to simplify this now so it is reproducible:

Open Inkscape
File -> Import
Navigate to a folder which has a .SVG file (PNGs do not cause an issue now?!)
Click on the file
[there is a pause]
CRASH

jmeidal (jmeidal) wrote :

I rebooted, and switched from the limited Guest login to the Admin profile. Retried both apps (X11 and osxmenu), both are importing great now. Sorry if this was something like an issue hanging in my computer memory.

I'll keep trying to reproduce now.

su_v (suv-lp) wrote :

Could you please test whether the linked ImageMagick libraries work at all?

Steps:
1) open new document, import a bitmap image
2) apply for example 'Extensions > Raster > Swirl'

Do you see any visible changes to the bitmap image on-canvas? The extension will embed the bitmap image first before applying a raster effect (just to let you know in case the bitmap image was linked on import - the original image on the disk won't get modified in any case).

su_v (suv-lp) wrote :

> 2) apply for example 'Extensions > Raster > Swirl'

Apply the extension to the selected image (won't have an effect without a selection).

jmeidal (jmeidal) wrote :

Yes, the Swirl extension works great in both X11 and native.

su_v (suv-lp) wrote :

A debug build of the latest 0.91.x release branch (r13671) is available here:
https://www.dropbox.com/sh/magg5vw5j3y1y3u/AAD-l8JqwCyUNuoWYNRKufyHa?dl=0

filename: 'Inkscape-0.91pre3-r13671-3-x11-10.7-x86_64-debug.dmg'

The app is compiled with '-g -O0' (it will be slower than regular optimized builds), and includes debug symbols for the inkscape binary as well as the included ImageMagick shared libraries (all recreated with dsymutil after creating the app bundle). Tutorials and translation files are not included (to reduce overall file size).

In case you encounter the crashes again, please try to reproduce them with this debug build: the backtraces in the crash reports of this build will include more details now (at least about inkscape-bin and ImageMagick libraries).

su_v (suv-lp) wrote :

On 2014-12-02 23:26 (+0100), jmeidal wrote:
> File -> Import
> Navigate to a folder which has a .SVG file (PNGs do not cause
> an issue now?!)
> Click on the file
> [there is a pause]
> CRASH

This isn't possibly related to "certain" SVGs only? The top-most entry in the GtkFIleChooser dialog is autoselected - unless it's a directory, the attempt to create a preview image of that entry might possibly already trigger a crash (for whatever reason)... Does turning off the preview image in the GtkFileChooser make any difference?

Another hint might be whether there is a difference when navigating to the same folder with 'File > Open' instead of 'File > Import' - does the crash occur in both cases?

su_v (suv-lp) wrote :

Confirmed based on duplicate report (0.91pre4, OS X 10.10).

Another related report:
- Bug #1410793 “inkscape crashes when pasting image from clipboard on OSX”
  https://bugs.launchpad.net/inkscape/+bug/1410793

Changed in inkscape:
status: New → Confirmed
jmeidal (jmeidal) wrote :

Yes, I am also still seeing this on 0.91pre4 on OS X 10.10, also crash when inserting on 0.91pre4 r13712.

su_v (suv-lp) wrote :

Inkscape 0.91 for OS X was shipped with the patch discussed in bug #1410793 (comment 6, 14) applied - did anyone still experience crashes on paste from clipboard or import of bitmap images with the stable release build?

No crashes here, even with X11 pasteboard/clipboard syncing preference turned on. Thanks, and congrats on the release!

> On Feb 6, 2015, at 4:20 PM, ~suv <email address hidden> wrote:
>
> Inkscape 0.91 for OS X was shipped with the patch discussed in bug
> #1410793 (comment 6, 14) applied - did anyone still experience crashes
> on paste from clipboard or import of bitmap images with the stable
> release build?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1413478).
> https://bugs.launchpad.net/bugs/1398521
>
> Title:
> importing graphics crashes app on OS X in 0.91
>
> Status in Inkscape: A Vector Drawing Tool:
> Confirmed
>
> Bug description:
> I installed Inkscape-0.91pre3-x11-10.7-x86_64.dmg on Mac OS X
> Yosemite. It seems to work pretty well, but so far have found one
> serious issue.
>
> When attempting to copy/past or Import outside graphics (just raster?)
> the app crashes immediately.
>
> I'm happy to do more testing with this if needed.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/inkscape/+bug/1398521/+subscriptions

James Whitby (james-whitby) wrote :

I've just observed a reproducible crash in Inkscape 0.91 on Mac OS X 10.10.3 where one particular .png file causes Inkscape to crash if the file is imported and either embedded or linked. The same figure in black and white as a .png does not cause a crash.
I can't tell if something is odd about this one .png file - it shows up OK when used in other programs.

su_v (suv-lp) wrote :

See also test case in latest duplicate report:
* Bug #1460319 “Some PNGs cause crash on import”
  https://bugs.launchpad.net/inkscape/+bug/1460319
indicating that the crash is related to retrieving the image resolution from file via readmagick (ImageMagick fallback).

su_v (suv-lp) on 2015-10-15
Changed in inkscape:
milestone: none → 0.92
Tim Sheridan (tghs) on 2017-02-08
Changed in inkscape:
assignee: nobody → Tim Sheridan (tghs)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers