GNOME Bugzilla – Bug 761396
PDF or Tiff import makes Glom crash
Last modified: 2016-02-25 13:49:07 UTC
When importing a Tiff picture inside Glom, the application will crash. Happens on both Linux and Mac OS. EvinceView:ERROR:/build/buildd/evince-3.14.2/./libview/ev-view.c:6877:ev_view_parent_set: assertion failed: (!parent || GTK_IS_SCROLLED_WINDOW (parent)) Xubuntu 15.04
Can you open the TIFF file in evince? For instance, like so on the command line: $ evince something.tiff
Yes even directly with the GUI.
Maybe the libview is from a different version of evince than you are using in the GUI. Can you run the "make check" tests? Also, are you able to get a stacktrace at that point. For instance, by doing "break g_log" in gdb? You might need to "continue" past earlier warnings to get there.
Also, can you upload the particular TIFF image here? It works for me on Ubuntu with the 1.28 PPA package.
Both of them makes Glom crashing in both Linux and Mac OS. I tried with several others with same results.
Created attachment 321308 [details] Tiff file 1 making Glom crashing
https://www.dropbox.com/s/ktxf2a2qwt6k4kq/Ole%20No%20Moire.tif?dl=0 Tiff file 2 making Glom crashing
(In reply to m.rick.mac from comment #6) > Created attachment 321308 [details] > Tiff file 1 making Glom crashing Confirmed. I get a crash too. Valgrind doesn't report a problem. But there is a failed assertion in EvinceView:
+ Trace 236000
*** Bug 761397 has been marked as a duplicate of this bug. ***
I get the same problem with a PDF, so I think it's a general problem with the use of Evince's EvinceView. It certainly used to work fairly recently.
You can test with an SVG from Open Clipart if you want it. I did the test from one of them. But it's not a Glom related bug so?
This seems to be the change in EvinceView that causes this: https://git.gnome.org/browse/evince/commit/?id=6288e4889ed859cfca90e18912270df0b47ffebf I will work around that by adding an intermediate GtkScrolledWindow. However, causing a library to crash the application like that is rather obnoxious. I'm CCing Carlos in case he doesn't realize that it's not just Evince that is affected by this. a g_return_if_fail() would be nicer.
This fixes that issue with the assert in EvinceView: https://git.gnome.org/browse/glom/commit/?id=eb8c3ab047b86ca7de431c5d5b14f6ab4c257574 and there are some subsequent commits to clean that code up in general. I'm keeping this bug open because I'm seeing an unrelated crash when repeatedly selecting new images, regardless of the image type.
Ha I understand now why I had crashed times to times with JPEG pictures that were supposed to work. Thank you.
That's fixed now too. I'm now releasing 1.30.x and 1.28.x tarballs and I'll try to update the Ubuntu package.
These updates will have a lot of corrections! Thank you for your work.