Version: 1.6.1 (using KDE 3.5.6, Kubuntu (edgy) 4:3.5.6-0ubuntu1~edgy1) Compiler: Target: x86_64-linux-gnu OS: Linux (x86_64) release 2.6.17-10-generic This is probably a stupid way to achieve what I want, but I figured it shouldn't crash. Do like this: 1. Open a image (a jpg in my case) 2. Select a portion of that image (any selection tool) 3. Cut out that portion from the layer (using the scissors button) 4. Delete the layer (Rightclick -> remove) 5. Paste the previously cut selection (as a new layer, I used rightclick menu) Krita crashes for me directly after nr 5. The backtrace doesn't make any sense to me: Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 47169873641216 (LWP 26799)] 0x00002ae6939fac71 in nanosleep () from /lib/libc.so.6 #0 0x00002ae6939fac71 in nanosleep () from /lib/libc.so.6 #1 0x00002ae6939faa94 in sleep () from /lib/libc.so.6 #2 0x00002ae694191325 in KCrash::startDrKonqi (argv=0x7fff17846de0, argc=18) at /root/kde356/kdelibs/kdelibs-3.5.6/./kdecore/kcrash.cpp:312 #3 0x00002ae6941a51a7 in KCrash::defaultCrashHandler (sig=394555072) at /root/kde356/kdelibs/kdelibs-3.5.6/./kdecore/kcrash.cpp:229 #4 0x00002ae693996510 in killpg () from /lib/libc.so.6 #5 0x0000000000000000 in ?? () / Fredrik
Nope, shouldn't crash & should work really. It's quite a good catch, I'll investigate a fix tomorrow (if Cyrille doesn't beat me to it).
*** Bug 141407 has been marked as a duplicate of this bug. ***
*** Bug 148891 has been marked as a duplicate of this bug. ***
I just tried to reproduce this bug and it doesn't seem as if the "paste to new layer" functionality is still there in KOffice2 (trunk r875799). Am I missing something or is this yet to be implemented?
Actually, 1.6 didn't have paste-as-new layer in the right click-menu too. Just paste, pastes as a new layer. In 2.0, this doesn't lead to a crash anymore, but also doesn't seem to create a new layer, so it's still a bug.
Looking at KisSelectionManager::paste(), this code has to crash if there is no activeLayer: img->addNode(layer , m_view->activeLayer()->parent(), m_view->activeLayer().data()); So the active layer is wrong.
SVN commit 880563 by berger: don't crash and do the pasting when there is no layer in the layer stack BUG:141536 M +7 -2 kis_selection_manager.cc WebSVN link: http://websvn.kde.org/?view=rev&revision=880563
You need to log in before you can comment on or make changes to this bug.