Bug 383933 - G'Mic crash when changing layer types.
Summary: G'Mic crash when changing layer types.
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-08-23 22:47 UTC by wolthera
Modified: 2017-08-24 09:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wolthera 2017-08-23 22:47:13 UTC
Application: krita (4.0.0-pre-alpha (git 6c4ddbd))

Qt Version: 5.9.1
Frameworks Version: 5.37.0
Operating System: Linux 4.10.0-32-generic x86_64
Distribution: KDE neon User Edition 5.10

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

I was trying to run gmic on a picture, then changed input from active to active and bellow, and then this crash happened.

Note: I am running gmic from the standalone because I am building from source.

Note2: It's past midnight so this might not be too lucid.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f01a748f8c0 (LWP 3081))]

Thread 5 (Thread 0x7f0170e89700 (LWP 3092)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f01b76798eb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f01b83d5d8a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#3  0x00007f01b7678989 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f01b14b66ba in start_thread (arg=0x7f0170e89700) at pthread_create.c:333
#5  0x00007f01b6d6f3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f0170688700 (LWP 3090)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f01b76798eb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f01b7672a16 in QSemaphore::tryAcquire(int, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f01b4ceb243 in KisTileDataSwapper::waitForWork (this=<optimized out>) at /home/wolthera/krita/src/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#4  0x00007f01b4ceb43a in KisTileDataSwapper::run (this=0x7f01b51bbb00 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>) at /home/wolthera/krita/src/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007f01b7678989 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f01b14b66ba in start_thread (arg=0x7f0170688700) at pthread_create.c:333
#7  0x00007f01b6d6f3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f01997c5700 (LWP 3083)):
#0  0x00007f01b6d6370d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f01afebc38c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f01afebc49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f01b78a194b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f01b784a7ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f01b7673cd4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f01b16e1b75 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f01b7678989 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f01b14b66ba in start_thread (arg=0x7f01997c5700) at pthread_create.c:333
#9  0x00007f01b6d6f3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f01a5015700 (LWP 3082)):
#0  0x00007f01b6d6370d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f01b5418c62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f01b541a8d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f01a735d329 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f01b7678989 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f01b14b66ba in start_thread (arg=0x7f01a5015700) at pthread_create.c:333
#6  0x00007f01b6d6f3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f01a748f8c0 (LWP 3081)):
[KCrash Handler]
#6  QMic::prepareCroppedImages (this=this@entry=0x16a395e0, message=message@entry=0x7ffdc8cd8610, rc=..., inputMode=inputMode@entry=3) at /home/wolthera/krita/src/plugins/extensions/qmic/QMic.cpp:446
#7  0x00007f015ba42f70 in QMic::connected (this=0x16a395e0) at /home/wolthera/krita/src/plugins/extensions/qmic/QMic.cpp:262
#8  0x00007f015ba56e35 in QMic::qt_static_metacall (_o=0x16a395e0, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/wolthera/krita/build/plugins/extensions/qmic/moc_QMic.cpp:120
#9  0x00007f01b7878c19 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f01b229d55f in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Network.so.5
#11 0x00007f01b7878c19 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f01b7884ec8 in QSocketNotifier::activated(int, QSocketNotifier::QPrivateSignal) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f01b788528b in QSocketNotifier::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f01b81b43fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f01b81bbe07 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f01b939f4a7 in KisApplication::notify (this=<optimized out>, receiver=0x7f01842ebe80, event=0x7ffdc8cd9000) at /home/wolthera/krita/src/libs/ui/KisApplication.cpp:556
#17 0x00007f01b784c798 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f01b78a25ad in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f01afebc197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f01afebc3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f01afebc49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f01b78a192f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f01b784a7ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f01b7853704 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00000000004051b4 in main (argc=1, argv=<optimized out>) at /home/wolthera/krita/src/krita/main.cc:269

Reported using DrKonqi
Comment 1 Halla Rempt 2017-08-24 09:05:50 UTC
Git commit c9ef702e37a8cadbe00e887a87a8887ac94a8fd2 by Boudewijn Rempt.
Committed on 24/08/2017 at 09:04.
Pushed by rempt into branch 'master'.

Check whether the node is still valid before using them.

M  +1    -1    plugins/extensions/qmic/QMic.cpp

https://commits.kde.org/krita/c9ef702e37a8cadbe00e887a87a8887ac94a8fd2
Comment 2 Halla Rempt 2017-08-24 09:06:00 UTC
Git commit 39e215da1e85268c322e4957fb1b23be5963418f by Boudewijn Rempt.
Committed on 24/08/2017 at 09:05.
Pushed by rempt into branch 'krita/3.2'.

Check whether the node is still valid before using them.

M  +1    -1    plugins/extensions/qmic/QMic.cpp

https://commits.kde.org/krita/39e215da1e85268c322e4957fb1b23be5963418f