Bug 299966 - kcm_grub2 crashes because its unable to load a ImageMagick module
Summary: kcm_grub2 crashes because its unable to load a ImageMagick module
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 1.0
Platform: Chakra Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 293016 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-13 22:41 UTC by Steven Sroka
Modified: 2012-07-15 14:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Valgrind Log (718.10 KB, application/x-gzip)
2012-05-13 22:44 UTC, Steven Sroka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Sroka 2012-05-13 22:41:09 UTC
Application: systemsettings (1.0)
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.1
Operating System: Linux 3.2-CHAKRA x86_64
Distribution: "Chakra Linux"

-- Information about the crash:
- What I was doing when the application crashed:

Under the Appearance tab, I clicked the Create button. I ran kcm_grub2 through Valgrind and got this displayed in the terminal:


Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Magick::ErrorModule'
  what():  Magick: unable to load module `/usr/lib/ImageMagick-6.6.6/modules-Q16/coders/svg.la': file not found @ error/module.c/OpenModule/1276

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings), signal: Aborted
[Current thread is 1 (Thread 0x7f694b3e8780 (LWP 3358))]

Thread 2 (Thread 0x7f693389e700 (LWP 3359)):
#0  0x00007f69488cd10d in read () from /lib/libc.so.6
#1  0x00007f6945fa5c2f in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f6945f6b37d in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3  0x00007f6945f6b856 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007f6945f6bd1a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#5  0x00007f6933d729e6 in ?? () from /usr/lib/libgio-2.0.so.0
#6  0x00007f6945f8cf35 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0x00007f6946513ede in start_thread () from /lib/libpthread.so.0
#8  0x00007f69488d960d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7f694b3e8780 (LWP 3358)):
[KCrash Handler]
#6  0x00007f6948829c35 in raise () from /lib/libc.so.6
#7  0x00007f694882b0b8 in abort () from /lib/libc.so.6
#8  0x00007f6948bf59cd in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#9  0x00007f6948bf3ad6 in ?? () from /usr/lib/libstdc++.so.6
#10 0x00007f6948bf3b03 in std::terminate() () from /usr/lib/libstdc++.so.6
#11 0x00007f6948bf3d76 in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#12 0x00007f6949011c8c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#13 0x00007f6949016555 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#14 0x000000000040a71e in main (argc=5, argv=0x7fff118a47e8) at /chakra/desktop-testing/kde-workspace/src/kde-workspace-4.8.3/systemsettings/app/main.cpp:49

Possible duplicates by query: bug 299875, bug 299874, bug 299847, bug 299834, bug 299795.

Reported using DrKonqi
Comment 1 Steven Sroka 2012-05-13 22:44:32 UTC
Created attachment 71078 [details]
Valgrind Log
Comment 2 Konstantinos Smanis 2012-05-15 09:59:09 UTC
Please install all the Optional Deps of imagemagick as shown by 'pacman -Qi imagemagick'. I have reported this bug to Arch's developers but they won't fix it. You are supposed to look through the package information.
Comment 3 Steven Sroka 2012-05-16 03:41:21 UTC
That did it. It was either librsvg or libwmf or gsfonts (which was pulled in as a dependency).

BTW, I should tell the Chakra Developers about this so they can fix it at their end. Can you link me to your Arch Linux bug report or your email to the Arch Linux mailing list if there is one?
Comment 4 Konstantinos Smanis 2012-05-16 08:04:31 UTC
Sure: https://bugs.archlinux.org/task/23958
Comment 5 Steven Sroka 2012-05-17 22:22:39 UTC
Ah I love Chakra. Issue fixed in Chakra's repos already ;)
http://chakra-linux.org/bugs/index.php?do=details&task_id=438
Comment 6 Konstantinos Smanis 2012-05-23 22:27:17 UTC
(In reply to comment #5)
> Ah I love Chakra. Issue fixed in Chakra's repos already ;)
> http://chakra-linux.org/bugs/index.php?do=details&task_id=438

Please note that unless this is a packaging issue (Arch/Chakra), this issue should be reported upstream (imagemagick) for fixing. Unfortunately I can't reproduce it on Gentoo (compiled imagemagick 6.7.6.4 without svg/wmf support). Could you possibly poke the Chakra devs and straighten this out?

The offending piece of code merely queries ImageMagick for the supported codecs, it doesn't in any way require svg/wmf thus it shouldn't crash.
Comment 7 Konstantinos Smanis 2012-07-15 14:16:06 UTC
*** Bug 293016 has been marked as a duplicate of this bug. ***