GNOME Bugzilla – Bug 774823
file-pdf-load.exe crashes trying to import file
Last modified: 2016-11-23 10:05:35 UTC
This is what happened: I opened Gimp 2.8.18 by using my desktop shortcut and tried to open a pdf-file. The file has a size of 273 KB, it's originally been exported into pdf using QGIS. It's specifications are 670 x 1020 pixels, RGB-alpha (all other pdfs I tried are RGB), 1 layer. Immediately after pressing the "Open" button I get this error message: ------------------------------------------------------------------------- GIMP Message Plug-in crashed: "file-pdf-load.exe" (C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\file-pdf-load.exe) The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side. GIMP Message Opening [the pdf-file in question] failed: Procedure 'file-pdf-load' returned no return values --------------------------------------------------------------------------- Afterwards I can still work with with Gimp normally on a different file, no matter if I opened if before the crash or after. The exact error occurred both in the older Gimp 2.8.12 and the newest stable version 2.8.18. I can open any other pdf-file without any problem whatsoever, be it mostly text or image, a pdf imported from QGIS or from MS Excel. The only difference I can make out between the files is the colour-space "RGB-alpha". This is the system I'm using: Acer Aspire V3 Windows 8.1 Currently with 101GB free memory space Intel Core i7, 2.2 GHz NVIDIA GeForce GT 730M I'm afraid I don't have the gimp-console so I don't know how to acquire the output one gets from running "gimp --version --verbose"
Hello, Would it be possible to upload this PDF file to try and reproduce the issue since it seems specific to this file? Thanks.
Created attachment 340551 [details] pdf causing the problem That's the problematic pdf-file
(In reply to Jehan from comment #1) > Hello, > > Would it be possible to upload this PDF file to try and reproduce the issue > since it seems specific to this file? > Thanks. Yes, no problem. I've uploaded it now. I suspect that at least the points and lines in the foreground are vector graphics whereas the background looks more like a raster. But I don't know if that could be causing the problem?
Yep lines and text are definitely vector. So GIMP may not be the right tool for the task (maybe try Scribus). Apart from this, if there is a crash, that's still bad and we want to fix it. :-) The bad news is that I could not reproduce the crash on Linux. So that's likely a Windows-specific issue and it means it will have to wait until someone decides to test and hack on Windows. :-/ I just can't make the time for this now, and we are really lacking from Windows developers. If you are able, it would be interesting to get a backtrace of the plugin crash too. We might be able to diagnose with just the plugin (if we are lucky with an obvious backtrace). Patches are accepted too. In the meantime, you should really try Scribus if you wish to open a PDF. The development branch (1.5.x) in particular has a pretty good support for PDF and you get all the vector elements (not a flattened image with quality loss). I recommend to try this. :-)
(In reply to Jehan from comment #4) > Yep lines and text are definitely vector. So GIMP may not be the right tool > for the task (maybe try Scribus). > > Apart from this, if there is a crash, that's still bad and we want to fix > it. :-) > > The bad news is that I could not reproduce the crash on Linux. So that's > likely a Windows-specific issue and it means it will have to wait until > someone decides to test and hack on Windows. :-/ > I just can't make the time for this now, and we are really lacking from > Windows developers. > > If you are able, it would be interesting to get a backtrace of the plugin > crash too. We might be able to diagnose with just the plugin (if we are > lucky with an obvious backtrace). > > Patches are accepted too. > In the meantime, you should really try Scribus if you wish to open a PDF. > The development branch (1.5.x) in particular has a pretty good support for > PDF and you get all the vector elements (not a flattened image with quality > loss). I recommend to try this. :-) Ok, I'll wait and check out Scribus in the meantime. Thank you very much for your help :-) I also tried to reproduce the error with a Windows 7 system and it's still there, even if the first error message is slightly different. The problem details are this: ---------------------------------------------------------------- Problem signature: Problem Event Name: APPCRASH Application Name: file-pdf-load.exe Application Version: 2.8.18.0 Application Timestamp: ff67635a Fault Module Name: liblcms2-2.dll Fault Module Version: 0.0.0.0 Fault Module Timestamp: 72546761 Exception Code: c0000005 Exception Offset: 000000000000af10 OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1033 Additional Information 1: a136 Additional Information 2: a136edd89cc27031d1a57acaf1cd41b7 Additional Information 3: e39d Additional Information 4: e39da61a9109c66cbd16625de9a96abe ----------------------------------------------------------------- It doesn't tell me anything but maybe it helps you or someone else who's more Gimp-savvy...
So I tried opening it with Scribus and that didn't work either. However, I found a way around it because Inkscape can open the pdf without a problem. So at least we do have an alternative :)
> So I tried opening it with Scribus and that didn't work either. Did you try the development version of Scribus (1.5.*)? Because the difference in PDF support is huge. > Fault Module Name: liblcms2-2.dll Also from comment 5, it looks like liblcms is the crashing module on your error message. So that's a color management issue. This said, we have a much better support for color profiles (and use a higher version of liblcms) in the development version of GIMP (note that I just tried opening the file with GIMP 2.8 on Linux and it still worked. So that still looks like limited to a Windows build problem only). I guess we'd need to check on Windows with both GIMP 2.8 and master first to see if there is any need to open a bug report to liblcms project. We'll see.
This is the same as bug 774161, the PDF plug-in crashes when poppler tries to process the embedded color profile with lcms. All apps using that version of poppler will crash the same way. *** This bug has been marked as a duplicate of bug 774161 ***