Bug 408019 - Crash after a drag'n'drop of a group of layers from one subwindows to another
Summary: Crash after a drag'n'drop of a group of layers from one subwindows to another
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Layer Stack (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Tiar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-28 10:25 UTC by David REVOY
Modified: 2019-07-10 07:50 UTC (History)
2 users (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 David REVOY 2019-05-28 10:25:52 UTC
Hi,
A 'freeze then crash' I had in a consistent way while drag'n'drop of a group of layers from one subwindows to another.
I could get a (gdb) backtrace: 

GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from krita...done.
Starting program: /home/deevad/sources/krita/inst/bin/krita 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdedd9700 (LWP 14676)]
[New Thread 0x7fffd3b23700 (LWP 14677)]
[Thread 0x7fffdedd9700 (LWP 14676) exited]
[New Thread 0x7fffdedd9700 (LWP 14678)]
[Thread 0x7fffdedd9700 (LWP 14678) exited]
[New Thread 0x7fffdedd9700 (LWP 14679)]
[Thread 0x7fffdedd9700 (LWP 14679) exited]
[New Thread 0x7fffdedd9700 (LWP 14680)]
Set style "fusion"
krita.general: convertAndSetBlendMode: Curve conversion is not implemented yet
krita.general: convertAndSetBlendMode: Curve conversion is not implemented yet
krita.general: convertAndSetBlendMode: Curve conversion is not implemented yet
krita.general: convertAndSetBlendMode: Curve conversion is not implemented yet
krita.general: convertAndSetBlendMode: Curve conversion is not implemented yet
krita.general: convertAndSetBlendMode: Curve conversion is not implemented yet
krita.general: convertAndSetBlendMode: Curve conversion is not implemented yet
[New Thread 0x7fffbb0e0700 (LWP 14681)]
QObject::startTimer: Timers cannot have negative intervals
[New Thread 0x7fffb9aa6700 (LWP 14682)]
[New Thread 0x7fffb92a5700 (LWP 14683)]
/home/deevad/sources/krita/inst/lib/x86_64-linux-gnu/krita-python-libs/krita added to PYTHONPATH
QObject::connect: Cannot connect (null)::stateChanged(QScroller::State) to KoToolBoxScrollArea::slotScrollerStateChange(QScroller::State)
[New Thread 0x7fffa62bf700 (LWP 14684)]
qrc:/touchstrip.qml:3:1: module "org.krita.sketch.components" is not installed
qrc:/touchstrip.qml:2:1: module "org.krita.sketch" is not installed
qrc:/touchstrip.qml:3:1: module "org.krita.sketch.components" is not installed
qrc:/touchstrip.qml:2:1: module "org.krita.sketch" is not installed
[New Thread 0x7fffa4cbb700 (LWP 14687)]
[New Thread 0x7fff9ffff700 (LWP 14688)]
[New Thread 0x7fff9ec0a700 (LWP 14689)]
[New Thread 0x7fff9e409700 (LWP 14690)]
[New Thread 0x7fff9dc08700 (LWP 14692)]
[New Thread 0x7fff9d407700 (LWP 14693)]
[New Thread 0x7fff9cc06700 (LWP 14694)]
[New Thread 0x7fff83fff700 (LWP 14695)]
[Thread 0x7fff9e409700 (LWP 14690) exited]
[Thread 0x7fff9dc08700 (LWP 14692) exited]
[Thread 0x7fff9ec0a700 (LWP 14689) exited]
[Thread 0x7fff9d407700 (LWP 14693) exited]
[Thread 0x7fff9cc06700 (LWP 14694) exited]
[Thread 0x7fff83fff700 (LWP 14695) exited]
[New Thread 0x7fff83fff700 (LWP 14696)]
[Thread 0x7fff83fff700 (LWP 14696) exited]
[New Thread 0x7fff83fff700 (LWP 14697)]
[New Thread 0x7fff9cc06700 (LWP 14698)]
[New Thread 0x7fff9d407700 (LWP 14699)]
[New Thread 0x7fff9dc08700 (LWP 14700)]
[New Thread 0x7fff80ffd700 (LWP 14705)]
[New Thread 0x7fff77fff700 (LWP 14706)]
[New Thread 0x7fff777fe700 (LWP 14707)]
[New Thread 0x7fff76ffd700 (LWP 14708)]
[Thread 0x7fff9cc06700 (LWP 14698) exited]
[Thread 0x7fff9d407700 (LWP 14699) exited]
[Thread 0x7fff83fff700 (LWP 14697) exited]
[Thread 0x7fff9dc08700 (LWP 14700) exited]
[Thread 0x7fff80ffd700 (LWP 14705) exited]
[Thread 0x7fff77fff700 (LWP 14706) exited]
[Thread 0x7fff777fe700 (LWP 14707) exited]
[Thread 0x7fff76ffd700 (LWP 14708) exited]
[New Thread 0x7fff76ffd700 (LWP 14709)]
[Thread 0x7fff76ffd700 (LWP 14709) exited]
[New Thread 0x7fff76ffd700 (LWP 14713)]
[New Thread 0x7fff777fe700 (LWP 14714)]
[New Thread 0x7fff77fff700 (LWP 14715)]
[New Thread 0x7fff80ffd700 (LWP 14716)]
[New Thread 0x7fff9d20a700 (LWP 14717)]
[New Thread 0x7fff83fff700 (LWP 14718)]
[New Thread 0x7fff767fc700 (LWP 14719)]
[New Thread 0x7fff75ffb700 (LWP 14720)]
[Thread 0x7fff76ffd700 (LWP 14713) exited]
[Thread 0x7fff777fe700 (LWP 14714) exited]
[Thread 0x7fff80ffd700 (LWP 14716) exited]
[Thread 0x7fff9d20a700 (LWP 14717) exited]
[Thread 0x7fff77fff700 (LWP 14715) exited]
[Thread 0x7fff83fff700 (LWP 14718) exited]
[Thread 0x7fff767fc700 (LWP 14719) exited]
[Thread 0x7fff75ffb700 (LWP 14720) exited]
[New Thread 0x7fff75ffb700 (LWP 14721)]
[New Thread 0x7fff767fc700 (LWP 14722)]
[New Thread 0x7fff83fff700 (LWP 14723)]
[New Thread 0x7fff9d20a700 (LWP 14724)]
[New Thread 0x7fff80ffd700 (LWP 14725)]
[New Thread 0x7fff77fff700 (LWP 14726)]
[New Thread 0x7fff777fe700 (LWP 14727)]
[New Thread 0x7fff76ffd700 (LWP 14728)]
[Thread 0x7fff75ffb700 (LWP 14721) exited]
[Thread 0x7fff767fc700 (LWP 14722) exited]
[Thread 0x7fff83fff700 (LWP 14723) exited]
[Thread 0x7fff9d20a700 (LWP 14724) exited]
[Thread 0x7fff80ffd700 (LWP 14725) exited]
[Thread 0x7fff77fff700 (LWP 14726) exited]
[Thread 0x7fff777fe700 (LWP 14727) exited]
[Thread 0x7fff76ffd700 (LWP 14728) exited]
[New Thread 0x7fff76ffd700 (LWP 14729)]
[New Thread 0x7fff777fe700 (LWP 14730)]
[New Thread 0x7fff77fff700 (LWP 14731)]
[New Thread 0x7fff80ffd700 (LWP 14732)]
[New Thread 0x7fff9d20a700 (LWP 14733)]
[New Thread 0x7fff83fff700 (LWP 14734)]
[Thread 0x7fff77fff700 (LWP 14731) exited]
[Thread 0x7fff80ffd700 (LWP 14732) exited]
[Thread 0x7fff777fe700 (LWP 14730) exited]
[Thread 0x7fff76ffd700 (LWP 14729) exited]
[Thread 0x7fff83fff700 (LWP 14734) exited]
[Thread 0x7fff9d20a700 (LWP 14733) exited]
[New Thread 0x7fff83fff700 (LWP 14735)]
ASSERT (krita): "hash != KeyTraits::NullHash" in file /home/deevad/sources/krita/src/libs/image/3rdparty/lock_free_map/leapfrog.h, line 161

Thread 51 "Thread (pooled)" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff83fff700 (LWP 14735)]
__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 bt
                                                                     
Thread 51 (Thread 0x7fff83fff700 (LWP 14735)):                           
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51     
#1  0x00007ffff2dba801 in __GI_abort () at abort.c:79                              
#2  0x00007ffff37a2fb7 in QMessageLogger::fatal(char const*, ...) const ()             
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5                                          
#3  0x00007ffff5065589 in kis_assert_common (
    assertion=assertion@entry=0x7ffff599175b "hash != KeyTraits::NullHash", 
    file=file@entry=0x7ffff59916e0 "/home/deevad/sources/krita/src/libs/image/3rdparty/lock_free_map/leapfrog.h", line=line@entry=161, throwException=throwException@entry=false, 
    isIgnorable=isIgnorable@entry=false)
    at /home/deevad/sources/krita/src/libs/global/kis_assert.cpp:90
#4  0x00007ffff506569a in kis_assert_recoverable (
    assertion=assertion@entry=0x7ffff599175b "hash != KeyTraits::NullHash", 
    file=file@entry=0x7ffff59916e0 "/home/deevad/sources/krita/src/libs/image/3rdparty/lock_free_map/leapfrog.h", line=line@entry=161)
    at /home/deevad/sources/krita/src/libs/global/kis_assert.cpp:103
#5  0x00007ffff5740158 in Leapfrog<ConcurrentMap<unsigned int, KisTile*, DefaultKeyTraits<unsigned int>, DefaultValueTraits<KisTile*> > >::find (table=0x5555644fb9d0, hash=0)
    at /home/deevad/sources/krita/src/libs/image/3rdparty/lock_free_map/leapfrog.h:161
#6  ConcurrentMap<unsigned int, KisTile*, DefaultKeyTraits<unsigned int>, DefaultValueTraits<KisTile*> >::Mutator::Mutator (key=0, map=..., this=0x7fff83ffe750)
    at /home/deevad/sources/krita/src/libs/image/3rdparty/lock_free_map/concurrent_map.h:86
#7  ConcurrentMap<unsigned int, KisTile*, DefaultKeyTraits<unsigned int>, DefaultValueTraits<KisTile*> >::erase (key=0, this=0x555564502c70)
    at /home/deevad/sources/krita/src/libs/image/3rdparty/lock_free_map/concurrent_map.h:293
#8  KisTileHashTableTraits2<KisTile>::erase (this=this@entry=0x555564502c70, 
    idx=idx@entry=0)
    at /home/deevad/sources/krita/src/libs/image/tiles3/kis_tile_hash_table2.h:172
#9  0x00007ffff573b257 in KisTileHashTableTraits2<KisTile>::deleteTile (row=-16777216, 
    col=-16777216, this=0x555564502c70)
    at /home/deevad/sources/krita/src/libs/image/tiles3/kis_tile_hash_table2.h:409
#10 KisTiledDataManager::clear (this=this@entry=0x5555644fb8a0, clearRect=..., 
    clearPixel=<optimized out>, 
    clearPixel@entry=0x7fff83ffe978 "\300\315\335\377\033\271\377\377p\253\006\210\377\177")
    at /home/deevad/sources/krita/src/libs/image/tiles3/kis_tiled_data_manager.cc:372
#11 0x00007ffff573b50a in KisTiledDataManager::clear (this=this@entry=0x5555644fb8a0, 
---Type <return> to continue, or q <return> to quit---
    mized out>, y=y@entry=-1073741824, w=w@entry=2147483647, h=h@entry=1073741824,            
    clearPixel=clearPixel@entry=0x7fff83ffe978 "\300\315\335\377\033\271\377\377p\253\006\210\377\177")
    at /home/deevad/sources/krita/src/libs/image/tiles3/kis_tiled_data_manager.cc:425           
#12 0x00007ffff58e0ba0 in KisDataManager::clear (                                                
    def=0x7fff83ffe978 "\300\315\335\377\033\271\377\377p\253\006\210\377\177", h=1073741824,      
    w=2147483647, y=-1073741824, x=<optimized out>, this=0x5555644fb8a0)                           
    at /home/deevad/sources/krita/src/libs/image/kis_datamanager.h:200                              
#13 KisPaintDevice::Private::KisPaintDeviceStrategy::fill (this=0x555563f5f710, rc=...,              
    fillPixel=0x7fff83ffe978 "\300\315\335\377\033\271\377\377p\253\006\210\377\177")                 
    at /home/deevad/sources/krita/src/libs/image/kis_paint_device_strategies.h:82                     
#14 0x00007ffff58d03ae in KisPaintDevice::fill (this=<optimized out>, x=x@entry=-1073741824,            
    y=y@entry=-1073741824, w=w@entry=2147483647, h=h@entry=1073741824,                                  
    fillPixel=fillPixel@entry=0x7fff83ffe978 "\300\315\335\377\033\271\377\377p\253\006\210\377\177")
    at /home/deevad/sources/krita/src/libs/image/kis_paint_device.cc:1485
#15 0x00007ffff581d206 in KisFillPainter::fillRect (this=this@entry=0x7fff83ffea30, x1=-1073741824, 
    y1=-1073741824, w=2147483647, h=1073741824, kc=..., opacity=255 '\377')
    at /home/deevad/sources/krita/src/libs/image/kis_fill_painter.cc:107
#16 0x00007fffc4eb7c27 in KisFillPainter::fillRect (c=..., rc=..., this=0x7fff83ffea30)
    at /home/deevad/sources/krita/src/libs/image/kis_fill_painter.h:247
#17 KisColorGenerator::generate (this=<optimized out>, dstInfo=..., size=..., config=..., 
    progressUpdater=0x0)
    at /home/deevad/sources/krita/src/plugins/generators/solid/colorgenerator.cpp:98
#18 0x00007ffff57aa37a in KisGenerator::generate (this=0x555557d2ebe0, dst=..., size=..., config=...)
    at /home/deevad/sources/krita/src/libs/image/generator/kis_generator.cpp:46
#19 0x00007ffff57ab0dd in KisGeneratorLayer::update (this=0x555563d703a0)
    at /home/deevad/sources/krita/src/libs/image/generator/kis_generator_layer.cpp:124
#20 0x00007ffff582a64d in KisRecalculateGeneratorLayerJob::run (this=0x555566836450)
    at /home/deevad/sources/krita/src/libs/image/kis_recalculate_generator_layer_job.cpp:49
#21 0x00007ffff599025d in non-virtual thunk to KisUpdateJobItem::run() ()
   from /home/deevad/sources/krita/inst/lib/x86_64-linux-gnu/libkritaimage.so.18
#22 0x00007ffff37b52b2 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007ffff37b817d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007fffecb6c6db in start_thread (arg=0x7fff83fff700) at pthread_create.c:463
#25 0x00007ffff2e9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7fff9ffff700 (LWP 14688)):
#0  0x00007fffecb72ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, 
    reltime=0x7fff9fffec40, expected=0, futex_word=0x7fff98007070)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7fff9fffed00, mutex=0x7fff98007020, cond=0x7fff98007048)
    at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=0x7fff98007048, mutex=0x7fff98007020, abstime=0x7fff9fffed00)
    at pthread_cond_wait.c:667
#3  0x00007ffff37b9468 in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff37b553d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff37b817d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffecb6c6db in start_thread (arg=0x7fff9ffff700) at pthread_create.c:463
#7  0x00007ffff2e9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
---Type <return> to continue, or q <return> to quit---

Thread 11 (Thread 0x7fffa4cbb700 (LWP 14687)):
#0  0x00007ffff2e8ebf9 in __GI___poll (fds=0x7fff98004b40, nfds=2, timeout=134749)
    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffeb4265c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffeb4266dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff39ef99f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff3994a1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff37b323a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff37b817d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffecb6c6db in start_thread (arg=0x7fffa4cbb700) at pthread_create.c:463
#8  0x00007ffff2e9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fffa62bf700 (LWP 14684)):
#0  0x00007ffff2e8ebf9 in __GI___poll (fds=0x7fffa0003ce0, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffeb4265c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffeb4266dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff39ef99f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff3994a1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff37b323a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffd74426f5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007ffff37b817d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffecb6c6db in start_thread (arg=0x7fffa62bf700) at pthread_create.c:463
#9  0x00007ffff2e9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fffb92a5700 (LWP 14683)):
#0  0x00007ffff2e5e9d0 in __GI___nanosleep (requested_time=0x7fffb92a4dc0, remaining=0x7fffb92a4dc0)
    at ../sysdeps/unix/sysv/linux/nanosleep.c:28
#1  0x00007ffff39ef32d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffff575826a in KisTileDataSwapper::run (
    this=0x7ffff5c51e00 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder+64>)
    at /home/deevad/sources/krita/src/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:97
#3  0x00007ffff37b817d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fffecb6c6db in start_thread (arg=0x7fffb92a5700) at pthread_create.c:463
#5  0x00007ffff2e9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fffb9aa6700 (LWP 14682)):
#0  0x00007fffecb72ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, 
    reltime=0x7fffb9aa5bc0, expected=0, futex_word=0x555560768440)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  __pthread_cond_wait_common (abstime=0x7fffb9aa5c80, mutex=0x5555607683f0, cond=0x555560768418)
    at pthread_cond_wait.c:533
#2  __pthread_cond_timedwait (cond=0x555560768418, mutex=0x5555607683f0, abstime=0x7fffb9aa5c80)
    at pthread_cond_wait.c:667
---Type <return> to continue, or q <return> to quit---
#3  0x00007ffff37b9468 in QWaitCondition::wait(QMutex*, unsigned long) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff37b1e6f in QSemaphore::tryAcquire(int, int) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5738bfb in KisTileDataPooler::waitForWork (
    this=0x7ffff5c51dc0 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder>)
    at /home/deevad/sources/krita/src/libs/image/tiles3/kis_tile_data_pooler.cc:162
#6  0x00007ffff57394aa in KisTileDataPooler::run (
    this=0x7ffff5c51dc0 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder>)
    at /home/deevad/sources/krita/src/libs/image/tiles3/kis_tile_data_pooler.cc:186
#7  0x00007ffff37b817d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffecb6c6db in start_thread (arg=0x7fffb9aa6700) at pthread_create.c:463
#9  0x00007ffff2e9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fffbb0e0700 (LWP 14681)):
#0  0x00007ffff2e8ebf9 in __GI___poll (fds=0x7fffb4004740, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffeb4265c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffeb4266dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff39ef99f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff3994a1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff37b323a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff37b817d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffecb6c6db in start_thread (arg=0x7fffbb0e0700) at pthread_create.c:463
#8  0x00007ffff2e9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fffdedd9700 (LWP 14680)):
#0  0x00007ffff2e8ebf9 in __GI___poll (fds=0x7fffdedd8ca8, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffea6bb747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fffea6bd36a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fffe17422a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007ffff37b817d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fffecb6c6db in start_thread (arg=0x7fffdedd9700) at pthread_create.c:463
#6  0x00007ffff2e9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fffd3b23700 (LWP 14677)):
#0  0x00007ffff2e8ebf9 in __GI___poll (fds=0x7fffcc019710, nfds=4, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffeb4265c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffeb4266dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff39ef99f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff3994a1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff37b323a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fffecd99d45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
---Type <return> to continue, or q <return> to quit---
#7  0x00007ffff37b817d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffecb6c6db in start_thread (arg=0x7fffd3b23700) at pthread_create.c:463
#9  0x00007ffff2e9b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ffff7fa0640 (LWP 14670)):
#0  0x00007ffff2e7de57 in sched_yield () at ../sysdeps/unix/syscall-template.S:78
#1  0x00007fffe851954b in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.107
#2  0x00007fffe851a775 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.107
#3  0x00007fffe847ff3f in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.107
#4  0x00007fffe84d5b39 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.107
#5  0x00007fffe80b976c in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.107
#6  0x00007fffe81c4d80 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.107
#7  0x00007fffe81b362a in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.107
#8  0x00007fffe81b7076 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.107
#9  0x00007fffe81b76d0 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.340.107
#10 0x00007ffff6b87cd3 in QOpenGLFunctions::glTexSubImage2D (pixels=<optimized out>, 
    type=<optimized out>, format=<optimized out>, height=1, width=<optimized out>, yoffset=0, 
    xoffset=<optimized out>, level=0, target=3553, this=<optimized out>)
    at /usr/include/x86_64-linux-gnu/qt5/QtGui/qopenglfunctions.h:1074
#11 KisTextureTile::update (this=0x55556209e570, updateInfo=..., 
    blockMipmapRegeneration=blockMipmapRegeneration@entry=false)
    at /home/deevad/sources/krita/src/libs/ui/opengl/kis_texture_tile.cpp:282
#12 0x00007ffff6b81d17 in KisOpenGLImageTextures::recalculateCache (this=0x555561b9ae50, info=..., 
    blockMipmapRegeneration=false)
    at /home/deevad/sources/krita/src/libs/ui/opengl/kis_opengl_image_textures.cpp:276
#13 0x00007ffff6b74a0e in KisOpenGLCanvas2::updateCanvasProjection (this=0x555561c1e910, info=...)
    at /home/deevad/sources/krita/src/libs/ui/opengl/kis_opengl_canvas2.cpp:993
#14 0x00007ffff6981d25 in KisCanvasWidgetBase::updateCanvasProjection (this=0x555561c1e948, 
    infoObjects=...) at /home/deevad/sources/krita/src/libs/ui/canvas/kis_canvas_widget_base.cpp:252
#15 0x00007ffff6b7c021 in KisOpenGLCanvas2::updateCanvasProjection (this=<optimized out>, 
    infoObjects=...) at /home/deevad/sources/krita/src/libs/ui/opengl/kis_opengl_canvas2.cpp:1014
#16 0x00007ffff698b96e in KisCanvas2::<lambda(const QVector<KisSharedPtr<KisUpdateInfo> >&)>::operator()
    (infoObjects=..., __closure=<synthetic pointer>)
    at /home/deevad/sources/krita/src/libs/ui/canvas/kis_canvas2.cpp:811
#17 KisCanvas2::updateCanvasProjection (this=0x555561ba5760)
    at /home/deevad/sources/krita/src/libs/ui/canvas/kis_canvas2.cpp:857
#18 0x00007ffff39c5665 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007ffff507c089 in KisSignalCompressor::start (this=0x555561d10ea0)
    at /home/deevad/sources/krita/src/libs/global/kis_signal_compressor.cpp:95
#20 0x00007ffff39c61d2 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007ffff471483c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007ffff471c104 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007ffff6cdec07 in KisApplication::notify (this=<optimized out>, receiver=0x555561d10ea0, 
    event=0x7fff85017c90) at /home/deevad/sources/krita/src/libs/ui/KisApplication.cpp:653
#24 0x00007ffff39969e8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#25 0x00007ffff399915d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007ffff39f0373 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007fffeb426417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fffeb426650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fffeb4266dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007ffff39ef99f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007ffff3994a1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007ffff399dac4 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x0000555555e4d51d in main (argc=<optimized out>, argv=0x7fffffffe408)
    at /home/deevad/sources/krita/src/krita/main.cc:546
(gdb)
Comment 1 Halla Rempt 2019-05-28 10:34:07 UTC
Does this always happen, or only sometimes? I tried to reproduce with a simple image, but didn't manage yet.
Comment 2 David REVOY 2019-05-28 10:44:55 UTC
Here is how I can reproduce and get a consistent crash on git~master and appimage (Note: Krita needs to be in 'subwindows' mode):

1. Open Krita, Create a new blank document
1. Download https://www.peppercarrot.com/extras/temp/2015-02-09_philosophy_04-open-source.kra, open it in same instance of Krita.
2. Window → Tile (to put the two documents side by side)
3. Drag'n'Drop the layer group "2019_refactor" to the canvas of the blank document.

Here it produces a crash on mouse release. True, it is not happening with a regular group (with only paint layers in it) I saw it only now too and I thought it was the case when I reported, sorry about that.
Comment 3 Halla Rempt 2019-05-28 10:48:01 UTC
Yes, with that file I can confirm the issue.
Comment 4 Tiar 2019-07-09 18:21:51 UTC
Git commit df5a97efdac6cd08bf4c6d60576c2750c8b4de51 by Agata Cacko.
Committed on 09/07/2019 at 18:18.
Pushed by tymond into branch 'master'.

Fix drag'n'drop of Fill layers between opened files

Before this commit, that would result in crash if you drop
the layer or the group with the layer on the canvas of another file
(in the subwindows mode). This commit contains a fix so now it works
as expected.

M  +1    -0    libs/image/kis_selection_based_layer.cpp

https://invent.kde.org/kde/krita/commit/df5a97efdac6cd08bf4c6d60576c2750c8b4de51
Comment 5 Halla Rempt 2019-07-10 07:50:03 UTC
Git commit 50168c41f698d9735a5cf57501ed7383591e4ef6 by Boudewijn Rempt, on behalf of Agata Cacko.
Committed on 10/07/2019 at 07:49.
Pushed by rempt into branch 'krita/4.2'.

Fix drag'n'drop of Fill layers between opened files

Before this commit, that would result in crash if you drop
the layer or the group with the layer on the canvas of another file
(in the subwindows mode). This commit contains a fix so now it works
as expected.

M  +1    -0    libs/image/kis_selection_based_layer.cpp

https://invent.kde.org/kde/krita/commit/50168c41f698d9735a5cf57501ed7383591e4ef6