Import cmyk-tiff crashes

Bug #1153777 reported by H-J Fabian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned
Inkscape Devlibs
Triaged
Medium
Unassigned

Bug Description

Importing a tiff-FIle works fine, when it's wih rgb colors.
But Importing a Tiff-File in cmyk-Colors (f.e., converting Tiff-Picture with imagemagick to cmyk), process will crashes.
Export as a pdf and printing gives good results, but it seems, the printing machines works on pdf 1.3. An exported picture looks good on all pdf-viewers supporting 1.4/1.5 (f.e. with transparency), but on printing machines it will no work.
So there are also different colors on cmyk-work with imported rgb-tiff.

Inkscape 0.48 on Win7 enterprise 32bit

Revision history for this message
jazzynico (jazzynico) wrote :

Could you please attach an example TIFF-cmyk file so that we could investigate?
Thanks!

tags: added: cmyk importing tiff
Changed in inkscape:
status: New → Incomplete
Revision history for this message
H-J Fabian (hjfab) wrote : Re: [Bug 1153777] Re: Import cmyk-tiff crashes

Here we are:

- Win7 Enterprise 32bit
- Inkscape 0.48.2 r9819
- Create new Document
- Change Document-Colormanagement to Agfa Swop Standard (not neccessary)
- use Donate-Picture from Inkscape Webpage
- convert to RGB.tiff with "convert Donate.png -auto-level -depth 8
Donate.tiff" (Imagemagick)
     identify Donate.tiff
     Donate.tiff TIFF 149x37 149x37+0+0 8-bit sRGB 6.55KB 0.000u 0:00.000
- Import OK
- convert to CMyk.tiff with "convert Donate.png -auto-level -depth 8
     -colorspace CMYK Donate_CMYK.tiff" (ImageMagick)
     identify Donate_CMYK.tiff
     Donate_CMYK.tiff TIFF 149x37 149x37+0+0 8-bit CMYK 4.06KB 0.000u
0:00.000
- Import will not work

- Color-Depht is reduced to 8bit per Channel, also Gimp can't open
16bit-Picture.

btw, what about transparency?
I Create a Document with a picture having transparent Background.
On SCREEN everything looks fine, but in printout you can see the
"transparent" Bg with other Color.
(prof. Printout, no laserprinter)
Seems, they work with pdf 1.3 without transparency. How to export
without Transparency, f.e. pdf 1.3?

rgds

JazzyNico schrieb:
> Could you please attach an example TIFF-cmyk file so that we could investigate?
> Thanks!
>
> ** Tags added: cmyk importing tiff
>
> ** Changed in: inkscape
> Status: New => Incomplete
>

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

confirmed on Windows 7, Inkscape 0.48.4.
the file Donate_CMYK.tiff leads to the exit message:

(inkscape.exe:3092): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Couldn't load bitmap

(inkscape.exe:3092): glibmm-CRITICAL **:
unhandled exception (type Glib::Error) in signal handler:
domain: gdk-pixbuf-error-quark
code : 5
what : Failed to load image 'C:\Windows\Temp\Donate_CMYK.tiff': InvalidParameter

...........................

on Windows XP, Inkscape rev 12174, both of these files fail to load, with the same message as above

Changed in inkscape:
status: Incomplete → Confirmed
su_v (suv-lp)
tags: added: bitmap
Revision history for this message
su_v (suv-lp) wrote :

Not reproduced on OS X 10.7.5 with Inkscape 0.48.4 and 0.48+devel r12228
- GTK+/X11 2.24.13, glib 2.32.4, gdk-pixbuf 2.26.4
- GTK+/Quartz 2.24.17, glib 2.34.3, gdk-pixbuf 2.26.5

tags: added: win32
Changed in inkscape:
importance: Undecided → High
Revision history for this message
su_v (suv-lp) wrote :

Crash also not reproduced on Ubuntu 12.10 (64bit, VM) with Inkscape 0.48.3.1 and 0.48+devel r12228.

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

Lowering importance - AFAIU from Alvin's console output, Inkscape itself does not crash (-> no risk of data loss).

Changed in inkscape:
importance: High → Medium
Revision history for this message
su_v (suv-lp) wrote :

~suv wrote:
>>> Not reproduced on OS X 10.7.5 (…)
>> Crash also not reproduced on Ubuntu 12.10 (64bit, VM) (…)

Just to clarify: on both tested systems, both TIFF files import without error (embedded, as well as linked).

Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape trunk revision 12228. With both files the application show the same error message Alvin had comment #3.

Not reproduced with the experimental GTK3 version built with the Opensuse cross-compiled libs. The files load correctly.

In both cases, Inkscape also crashes when the file preview is activated in the Open dialog (runtime error).
I'll try to find other TIFF files to confirm the crash (and probably open a separate report).

Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

Let's see if it's possible to update the pixbuf loader dlls in the current devlibs...

Changed in inkscape-devlibs:
assignee: nobody → JazzyNico (jazzynico)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

Note that when the Open/Save dialog is set to GTK (instead of native) in the preferences, Inkscape doesn't crash but hides the CMYK file.

jazzynico (jazzynico)
Changed in inkscape-devlibs:
assignee: jazzynico (jazzynico) → nobody
Revision history for this message
jazzynico (jazzynico) wrote :

Related: Bug #602824 "Cannot import tiff with deflate compression".

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.