crash on 32-bit TIFF HDR file on opening/previewing

Bug #218090 reported by Xalt
12
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
theAdib

Bug Description

If I run Inkscape and select file-> import it crashes when it encounters a 32-bit tiff file (in my case, created with ImageJ). It already crashes if the file is only selected for preview (i.e. single left click). Consequently, if the first file in a folder happens to be a a 32-bit file, choosing file-> import leads to an immediate crash of Inkscape. Disabling "preview" does not solve the problem. I had the problem with version 0.45 and 0.46. The platform I use is windows XP. The error message is: "Runtime Error! Program: C:\Program Files\Inkscape\inkscape.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."

Revision history for this message
Rygle (rygle) wrote :

Hi Xalt, could you please post a small/simple example file that always makes this happen for you? I am interested in getting further information when a crash happens. Thanks!

Revision history for this message
nightrow (jb-benoit) wrote :

It would be a lot easier for us to confirm the issue if you could join your tiff file here (use a small one).
This way we can be sure to work on the same issue.
Thanks

Changed in inkscape:
importance: Undecided → High
status: New → Incomplete
Revision history for this message
Xalt (l-bosgraaf) wrote :

Hi,
Here's one of the files that causes the error
Greetz, Xalt

Revision history for this message
Rygle (rygle) wrote :

Thanks xalt, this hard crashes for me too.

I can't get anything from gdb except "Program exited with code 03"

Using the Inkcl.bat setup to get errors from dos, I get this;
==========
return code: 3
terminate called after throwing an instance of 'Gdk::PixbufError'

Emergency save activated!
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.
==========

I found it almost impossible to find anything that would open this file;
* When I ran GraphicsMagick it also crashed that - "IMDisplay MFC Application has encountered a problem and needs to close. We are sorry for the inconvenience."
* Gimp gives a message saying "TIFF Message: Sorry, can not handle images with 32-bit samples" and "TIFF Message: Unsupported layout, no RGBA loader".
* Could get it to load in Ifran View, which cut the colours from 32bit to 24bit. It looks like multi-colour static on a red background.

Revision history for this message
Ulferikson (ulferikson) wrote :

Looks like an uncaught exception similar to bug #168471 which is marked as duplicate of bug #173116. The mingw gcc 4 compiler doesn't allow throwing exceptions accross dll's the way mingw gcc 3.4.5 did.

http://sourceforge.net/mailarchive/message.php?msg_id=E1IUIrP-0002LO-KC%40sc8-sf-web21.sourceforge.net
"If you want to throw exceptions across a dll boundary you need to build
dll and client exe with --shared-libgcc. Or port the mingw-specific
gcc-3.4.5 -win32-shared-ptr patches to gcc 4.x"

Maybe someone can rebuild the win32 'devlibs' with --shared-libgcc and try?

Revision history for this message
Rygle (rygle) wrote :

Ifran View should be Irfan View

Revision history for this message
Xalt (l-bosgraaf) wrote :

I created the file with the java based ImageJ program (open source, just google imagej). I wouldn't expect many programs to open it, as it also contains "Not a Number" pixels, negative values, infinity etc. I don't need Inkscape to open it anyway, it's just that it's crashing... By the way, I just started using Inkscape and I think it's a real cool program :)

Xalt

nightrow (jb-benoit)
Changed in inkscape:
status: Incomplete → Confirmed
theAdib (theadib)
tags: added: crash importing
Revision history for this message
theAdib (theadib) wrote :

i does not crash anymore.
I committed a fix (svn 21308) so that Inkscape produce an error dialogue to the user while opening such a file. However Inkscape uses gdk_pixbuf operations for handling bitmap files. Those functions does not work using 32bit files. If you really want use your 32bit TIFF file, pls file a new bug report "please support 32bit TIFF files".

Changed in inkscape:
assignee: nobody → theAdib (theadib)
status: Confirmed → Fix Committed
jazzynico (jazzynico)
Changed in inkscape:
milestone: none → 0.47
summary: - crash on 32-bit file encounter
+ crash on 32-bit TIFF HDR file on opening/previewing
tags: added: bitmap
ScislaC (scislac)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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