plug-ins/file-jpeg : Segmentation fault
This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
plug-ins/file-jpeg : Segmentation fault | Helmut Jarausch | 27 Jan 17:06 |
plug-ins/file-jpeg : Segmentation fault | Elle Stone | 27 Jan 18:01 |
plug-ins/file-jpeg : Segmentation fault | Helmut Jarausch | 28 Jan 17:02 |
plug-ins/file-jpeg : Segmentation fault | Elle Stone | 28 Jan 19:28 |
e/K1Sxp9DIEWT+qcV3loKy@AMmC... | 29 Jan 17:15 | |
plug-ins/file-jpeg : Segmentation fault | Elle Stone | 29 Jan 15:31 |
plug-ins/file-jpeg : Segmentation fault
Hi,
is it only me (or my system) that the current GIT version (2017/01/27 17:27 GMT) dies of a segmentation fault whenever I try to "export as" JPEG.
Thanks for any hints, Helmut
Here is a back trace:
/usr/lib64/gimp/2.0/plug-ins/file-jpeg: fatal error: Segmentation fault
/usr/lib64/gimp/2.0/plug-ins/file-jpeg (pid:31056): [E]xit, [H]alt,
show [S]tack trace or [P]roceed: S
#0 0x00007f426badc08a in waitpid () from /lib64/libpthread.so.0
#1 0x00007f426bf8e303 in g_on_error_stack_trace ()
#2 0x00007f426bf8e46c in g_on_error_query () from
/usr/lib64/libglib-2.0.so.0
#3 0x00007f426e1e12b3 in gimp_plugin_sigfatal_handler ()
#4
#5 0x00007f42663904cb in
Exiv2::Internal::TiffComponent::addPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#6 0x00007f42663968e2 in
Exiv2::Internal::TiffMnEntry::doAddPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#7 0x00007f42663904e5 in
Exiv2::Internal::TiffComponent::addPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#8 0x00007f4266390c37 in
Exiv2::Internal::TiffDirectory::doAddPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#9 0x00007f42663904e5 in
Exiv2::Internal::TiffComponent::addPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#10 0x00007f426639662c in
Exiv2::Internal::TiffSubIfd::doAddPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#11 0x00007f42663904e5 in
Exiv2::Internal::TiffComponent::addPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#12 0x00007f4266390c37 in
Exiv2::Internal::TiffDirectory::doAddPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#13 0x00007f42663904e5 in
Exiv2::Internal::TiffComponent::addPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#14 0x00007f42663afeba in
Exiv2::Internal::TiffEncoder::add(Exiv2::Internal::TiffComponent*,
Exiv2::Internal::TiffComponent*, unsigned int) ()
#15 0x00007f426639cd3a in
Exiv2::Internal::TiffParserWorker::encode(Exiv2::BasicIo&, unsigned
char const*, unsigned int, Exiv2::ExifData const&, Exiv2::IptcData
const&, Exiv2::XmpData const&, unsigned int, void
(Exiv2::Internal::TiffEncoder::*(*)(std::__cxx11::basic_string, std::allocator > const&, unsigned int,
Exiv2::Internal::IfdId))(Exiv2::Internal::TiffEntryBase*,
Exiv2::Exifdatum const*), Exiv2::Internal::TiffHeaderBase*,
Exiv2::Internal::OffsetWriter*) () from /usr/lib64/libexiv2.so.14
#16 0x00007f4266330baf in
Exiv2::ExifParser::encode(std::vector >&, unsigned char const*, unsigned int,
Exiv2::ByteOrder, Exiv2::ExifData const&) () from
/usr/lib64/libexiv2.so.14
#17 0x00007f426634cd29 in
Exiv2::JpegBase::doWriteMetadata(Exiv2::BasicIo&) ()
#18 0x00007f426634e474 in Exiv2::JpegBase::writeMetadata() ()
#19 0x00007f426adb5c2a in gexiv2_metadata_save_internal ()
#20 0x00007f426adb6bc2 in gexiv2_metadata_save_file ()
#21 0x00007f426d8f5231 in gimp_metadata_save_to_file ()
#22 0x00007f426e42d8c7 in gimp_image_metadata_save_finish ()
#23 0x0000000000405bcb in run ()
#24 0x00007f426e1e1b9c in gimp_main () from /usr/lib64/libgimp-2.0.so.0
#25 0x00007f426b751211 in __libc_start_main () from /lib64/libc.so.6
#26 0x00000000004055da in _start ()
/usr/lib64/gimp/2.0/plug-ins/file-jpeg (pid:31056): [E]xit, [H]alt,
show [S]tack trace or [P]roceed: H
plug-ins/file-jpeg : Segmentation fault
On 01/27/2017 12:06 PM, Helmut Jarausch wrote:
is it only me (or my system) that the current GIT version (2017/01/27 17:27 GMT) dies of a segmentation fault whenever I try to "export as" JPEG.
On Gentoo Linux, GIMP-2.9 updated from git just now and rebuilt, exporting a jpeg works normally.
Elle
plug-ins/file-jpeg : Segmentation fault
On 01/27/2017 07:01:47 PM, Elle Stone wrote:
On 01/27/2017 12:06 PM, Helmut Jarausch wrote:
is it only me (or my system) that the current GIT version (2017/01/27 17:27 GMT) dies of a segmentation fault whenever I try to "export as" JPEG.
On Gentoo Linux, GIMP-2.9 updated from git just now and rebuilt, exporting a jpeg works normally.
Unfortunately Gimp crashes here (Gentoo, as well) each time I try to export an image to any format (I've tried jpeg png tiff). This occurs with version 2.9.4-r1 (here on Gentoo) as well as with the GIT version.
Being unable to export the image makes my Gimp useless.
I hope some helpful hand can give me some hints what might be broken
here.
(I have recompiled any dependencies of Gimp and gexiv2, I have reduced
the CFLAGS from -O3 to -O2 -g)
Many thanks for some help, Helmut
Here is the backtrace
/usr/lib64/gimp/2.0/plug-ins/file-jpeg: fatal error: Segmentation fault
/usr/lib64/gimp/2.0/plug-ins/file-jpeg (pid:27661): [E]xit, [H]alt,
show [S]tack trace or [P]roceed: S
#0 0x00007f0e1a5c608a in waitpid () from /lib64/libpthread.so.0
#1 0x00007f0e1aa78303 in g_on_error_stack_trace ()
#2 0x00007f0e1aa7846c in g_on_error_query () from
/usr/lib64/libglib-2.0.so.0
#3 0x00007f0e1ccc0183 in gimp_plugin_sigfatal_handler (
#4
#5 0x00007f0e14e7b4cb in
Exiv2::Internal::TiffComponent::addPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#6 0x00007f0e14e818e2 in
Exiv2::Internal::TiffMnEntry::doAddPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#7 0x00007f0e14e7b4e5 in
Exiv2::Internal::TiffComponent::addPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#8 0x00007f0e14e7bc37 in
Exiv2::Internal::TiffDirectory::doAddPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#9 0x00007f0e14e7b4e5 in
Exiv2::Internal::TiffComponent::addPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#10 0x00007f0e14e8162c in
Exiv2::Internal::TiffSubIfd::doAddPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#11 0x00007f0e14e7b4e5 in
Exiv2::Internal::TiffComponent::addPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#12 0x00007f0e14e7bc37 in
Exiv2::Internal::TiffDirectory::doAddPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#13 0x00007f0e14e7b4e5 in
Exiv2::Internal::TiffComponent::addPath(unsigned short,
std::stack > >&,
Exiv2::Internal::TiffComponent*,
std::auto_ptr) ()
#14 0x00007f0e14e9aeba in
Exiv2::Internal::TiffEncoder::add(Exiv2::Internal::TiffComponent*,
Exiv2::Internal::TiffComponent*, unsigned int) ()
#15 0x00007f0e14e87d3a in
Exiv2::Internal::TiffParserWorker::encode(Exiv2::BasicIo&, unsigned
char const*, unsigned int, Exiv2::ExifData const&, Exiv2::IptcData
const&, Exiv2::XmpData const&, unsigned int, void
(Exiv2::Internal::TiffEncoder::*(*)(std::__cxx11::basic_string, std::allocator > const&, unsigned int,
Exiv2::Internal::IfdId))(Exiv2::Internal::TiffEntryBase*,
Exiv2::Exifdatum const*), Exiv2::Internal::TiffHeaderBase*,
Exiv2::Internal::OffsetWriter*) () from /usr/lib64/libexiv2.so.14
#16 0x00007f0e14e1bbaf in
Exiv2::ExifParser::encode(std::vector >&, unsigned char const*, unsigned int,
Exiv2::ByteOrder, Exiv2::ExifData const&) () from
/usr/lib64/libexiv2.so.14
#17 0x00007f0e14e37d29 in
Exiv2::JpegBase::doWriteMetadata(Exiv2::BasicIo&) ()
#18 0x00007f0e14e39474 in Exiv2::JpegBase::writeMetadata() ()
#19 0x00007f0e1989fc2a in gexiv2_metadata_save_internal ()
#20 0x00007f0e198a0bc2 in gexiv2_metadata_save_file ()
#21 0x00007f0e1c3ded39 in gimp_metadata_save_to_file (
#22 0x00007f0e1cf07434 in gimp_image_metadata_save_finish (
#23 0x0000000000405bbf in run (name=, nparams=,
#24 0x00007f0e1ccc0a4c in gimp_proc_run (proc_run=0xfc2320) at
gimp.c:2166
#25 gimp_loop () at gimp.c:1995
#26 gimp_main (info=, argc=,
#27 0x00007f0e1a23b211 in __libc_start_main () from /lib64/libc.so.6
#28 0x00000000004055da in _start ()
plug-ins/file-jpeg : Segmentation fault
On 01/28/2017 12:02 PM, Helmut Jarausch wrote:
On 01/27/2017 07:01:47 PM, Elle Stone wrote:
On 01/27/2017 12:06 PM, Helmut Jarausch wrote:
is it only me (or my system) that the current GIT version (2017/01/27 17:27 GMT) dies of a segmentation fault whenever I try to "export as" JPEG.
On Gentoo Linux, GIMP-2.9 updated from git just now and rebuilt, exporting a jpeg works normally.
Unfortunately Gimp crashes here (Gentoo, as well) each time I try to export an image to any format (I've tried jpeg png tiff). This occurs with version 2.9.4-r1 (here on Gentoo) as well as with the GIT version.
It seems odd that you can't export using any file format. FWIW, here is
how I build babl/GEGL/GIMP from git (I don't follow the "gentoo way" of
installing software from source):
http://ninedegreesbelow.com/photography/build-gimp-in-prefix-for-artists.html
What prefix are you installing babl/GEGL/GIMP from git in? Is it possible that 2.9.4 from portage is interfering with GIMP installed in the prefix?
One thing that sometimes helps is to completely uninstall all versions of babl/GEGL/GIMP (even the portage versions). Then in the prefix for babl/GEGL/GIMP from git, delete and recreate the install folder, so there's nothing left behind to interfere with a fresh install. And also do "git clean -xdf" to get the build folders completely clean. And then start installing from scratch.
The only other thing that comes to mind is whether your libraries for jpeg, png, and tiff are all too old. But that seems unlikely if you are running Gentoo.
Best,
Elle
plug-ins/file-jpeg : Segmentation fault
On 01/29/2017 07:51 AM, Helmut Jarausch wrote:
On 01/28/2017 08:28:34 PM, Elle Stone wrote:
FWIW, here is how I build babl/GEGL/GIMP from git: http://ninedegreesbelow.com/photography/build-gimp-in-prefix-for-artists.html What prefix are you installing babl/GEGL/GIMP from git in?
I have my own ebuilds and they install into /usr
One thing that sometimes helps is to completely uninstall all versions of babl/GEGL/GIMP (even the portage versions). Then in the prefix for babl/GEGL/GIMP from git, delete and recreate the install folder, so there's nothing left behind to interfere with a fresh install. And also do "git clean -xdf" to get the build folders completely clean. And then start installing from scratch.
I've done that but the problem persists
The only other thing that comes to mind is whether your libraries for jpeg, png, and tiff are all too old.
I have media-libs/libjpeg-turbo-1.5.1 media-libs/libpng-1.2.57
media-libs/tiff-4.0.7
Just for reference, here's what I have:
media-libs/tiff-4.0.7
media-libs/libjpeg-turbo-1.5.0
media-libs/openjpeg-2.1.2
media-libs/libpng-1.6.27
I'm not sure whether GIMP uses lib-jpeg-turbo or openjpeg. But maybe installing openjpeg would help.
As we both have the same version of tiff installed, outdated libraries probably aren't the only problem, or else you would be able to export a tiff.
Your libpng is too old - I'm a bit surprised that recently pulled GIMP-2.9 builds at all given the older version of libpng.
Do you have a hint on how to debug my problem?
Any problem that results specifically from an ebuild, no, I'm clueless. You could try building in a prefix as per my "how to build" article and see if you still have a problem exporting files.
Did you try using the "--enable-debug=yes" option when running autogen.sh, and then running GIMP under gdb?
I saw your stack trace but it didn't seem helpful, well, imho they often aren't. Beyond that, no, my apologies, I'm not very experienced at debugging code.
Oh, wait, looking at your stack trace again, it seems a bit odd that there is all this stuff about tiff when you are trying to output a jpeg. I've seen problems where there is interference between a GIMP plug-in for opening a raw file and the GIMP code for opening a tiff (http://gimp.1065349.n5.nabble.com/Darktable-plug-in-in-GIMP-td47681.html#a47692).
Elle