Bug 400627 - Exporting Compositions results in crash
Summary: Exporting Compositions results in crash
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.1.3
Platform: Other Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-03 15:56 UTC by Bollebib
Modified: 2018-11-20 08:58 UTC (History)
1 user (show)

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 Bollebib 2018-11-03 15:56:00 UTC
1)Just make a number of compositions in a new file (composition docker)

2) try to export

3) this will result in a crash
Comment 1 wolthera 2018-11-03 16:31:54 UTC
GDB backtrace for exporting a composition:
------------------------------------------

Thread 1 "krita" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) thread apply all backtrace

Thread 9 (Thread 0x7fff9b7fe700 (LWP 30674)):
#0  0x00007ffff3f8ebf9 in __GI___poll (fds=0x7fff8c003ce0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffebd64439 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebd6454c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff4ae153b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff4a857fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff48b0bba in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff48bbadb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffed6606db in start_thread (arg=0x7fff9b7fe700) at pthread_create.c:463
#8  0x00007ffff3f9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fff9bfff700 (LWP 30661)):
#0  0x00007ffff3f8ebf9 in __GI___poll (fds=0x7fff940049d0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffebd64439 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebd6454c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff4ae151f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff4a857fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff48b0bba in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

#6  0x00007fffd5556826 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007ffff48bbadb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffed6606db in start_thread (arg=0x7fff9bfff700) at pthread_create.c:463
#9  0x00007ffff3f9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fffae9a5700 (LWP 30652)):
#0  0x00007ffff3f8ebf9 in __GI___poll (fds=0x7fff9c004ee0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
---Type <return> to continue, or q <return> to quit---
#1  0x00007fffebd64439 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebd6454c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff4ae151f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff4a857fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff48b0bba in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffd50db4f5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007ffff48bbadb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffed6606db in start_thread (arg=0x7fffae9a5700) at pthread_create.c:463
#9  0x00007ffff3f9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fffae1a4700 (LWP 30606)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff48af870 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffff48af6e2 in QSemaphore::tryAcquire(int, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5


#3  0x00007ffff1c19e4c in KisTileDataSwapper::waitForWork (this=
    0x7ffff23894e0 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>)
    at /home/wolthera/krita/src/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#4  0x00007ffff1c19e68 in KisTileDataSwapper::run (
    this=0x7ffff23894e0 <(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  0x00007ffff48bbadb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffed6606db in start_thread (arg=0x7fffae1a4700) at pthread_create.c:463
#7  0x00007ffff3f9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fffb5310700 (LWP 30600)):
#0  0x00007ffff3f8ebf9 in __GI___poll (fds=0x7fffb0004ae0, nfds=1, timeout=9990) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffebd64439 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebd6454c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#3  0x00007ffff4ae151f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff4a857fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff48b0bba in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff48bbadb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffed6606db in start_thread (arg=0x7fffb5310700) at pthread_create.c:463
#8  0x00007ffff3f9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fffcd9c3700 (LWP 30335)):
#0  0x00007ffff3f8ebf9 in __GI___poll (fds=0x7fffc8019490, nfds=4, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffebd64439 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebd6454c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff4ae151f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff4a857fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

#5  0x00007ffff48b0bba in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffed88de45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007ffff48bbadb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffed6606db in start_thread (arg=0x7fffcd9c3700) at pthread_create.c:463
#9  0x00007ffff3f9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fffdc9b2700 (LWP 30329)):
#0  0x00007ffff3f8ebf9 in __GI___poll (fds=0x7fffdc9b1c68, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff25e9747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007ffff25eb36a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fffdf31eed9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007ffff48bbadb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fffed6606db in start_thread (arg=0x7fffdc9b2700) at pthread_create.c:463
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff3f9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ffff7f82cc0 (LWP 30133)):
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff3eba801 in __GI_abort () at abort.c:79
#2  0x00007ffff488c5db in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ffff488bdd1 in qt_assert(char const*, char const*, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

#4  0x00007ffff1eff5fc in KisPaintLayer::KisPaintLayer (this=0x5555717d19b0, image=..., name=..., opacity=255 '\377')
    at /home/wolthera/krita/src/libs/image/kis_paint_layer.cc:79
#5  0x00007fffb83e994a in CompositionDockerDock::exportClicked (this=0x55556796a4b0)
    at /home/wolthera/krita/src/plugins/dockers/compositiondocker/compositiondocker_dock.cpp:228


#6  0x00007fffb83f03a0 in CompositionDockerDock::qt_static_metacall (_o=0x55556796a4b0, _c=QMetaObject::InvokeMetaMethod, 
    _id=4, _a=0x7fffffffd310)
    at /home/wolthera/krita/build/plugins/dockers/compositiondocker/kritacompositiondocker_autogen/EWIEGA46WW/moc_compositiondocker_dock.cpp:109
#7  0x00007ffff4ab6565 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ffff58fafb2 in QAbstractButton::clicked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007ffff58fb1ca in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007ffff58fc5aa in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

#11 0x00007ffff58fc79d in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff5854a98 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff5815e1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007ffff581df87 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007ffff72d688f in KisApplication::notify (this=0x7fffffffe0b0, receiver=0x555567994d70, event=0x7fffffffd850)
    at /home/wolthera/krita/src/libs/ui/KisApplication.cpp:608
#16 0x00007ffff4a874d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#17 0x00007ffff581c8d2 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007ffff586fc13 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff5872229 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffff5815e1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007ffff581d3ef in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007ffff72d688f in KisApplication::notify (this=0x7fffffffe0b0, receiver=0x555564050220, event=0x7fffffffdce0)
    at /home/wolthera/krita/src/libs/ui/KisApplication.cpp:608
#23 0x00007ffff4a874d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007ffff50197bb in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5

#25 0x00007ffff501b335 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#26 0x00007ffff4ff3f5b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#27 0x00007fffdf3aa76b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#28 0x00007ffff4a857fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007ffff4a8e9c0 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x0000555555e91dc2 in main (argc=1, argv=0x7fffffffe218) at /home/wolthera/krita/src/krita/main.cc:456
Comment 2 wolthera 2018-11-03 17:00:38 UTC
Okay, so only exporting compositions from the docker gives a crash, not saving to kra.
Comment 3 Halla Rempt 2018-11-15 09:31:57 UTC
Git commit 22e7da27e219d5d15fb32193f0f6e6c71af3cc6c by Boudewijn Rempt.
Committed on 15/11/2018 at 09:31.
Pushed by rempt into branch 'master'.

M  +1    -1    plugins/dockers/compositiondocker/compositiondocker_dock.cpp

https://commits.kde.org/krita/22e7da27e219d5d15fb32193f0f6e6c71af3cc6c
Comment 4 Halla Rempt 2018-11-20 08:58:17 UTC
Git commit 44401191a0e8dd8faf798731a401c5a252af926c by Boudewijn Rempt.
Committed on 20/11/2018 at 08:25.
Pushed by rempt into branch 'krita/4.1'.

M  +1    -1    plugins/dockers/compositiondocker/compositiondocker_dock.cpp

https://commits.kde.org/krita/44401191a0e8dd8faf798731a401c5a252af926c