Summary: | Remaining tools need to be ported to the strokes framework | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Cyrille Berger <cberger> |
Component: | Tools | Assignee: | Dmitry Kazakov <dimula73> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugs_kde_org2, dimula73, halla |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | patch for this bug. |
Description
Cyrille Berger
2011-10-19 12:21:17 UTC
Hm, I cannot reproduce. I'm confident that the attached patch will fix the crash -- I'm not sure what will happen to the canvas update, though. Created attachment 64701 [details]
patch for this bug.
If it helps, I got a similar crash when rotating to 90, will test the patch later tonight. With opengl enabled, I do get a crash when rotating, though not with cropping. The backtrace is different, though: Thread 1 (Thread 0x7f652fde2760 (LWP 32705)): [KCrash Handler] #6 0x00007f652ee1bbe6 in KisTextureTile::update (this=0xefcc610, updateInfo=...) at /home/boud/kde/src/calligra/krita/ui/opengl/kis_texture_tile.cpp:88 #7 0x00007f652ee119d8 in KisOpenGLImageTextures::recalculateCache (this=0x7f6508fddfa0, info=<value optimized out>) at /home/boud/kde/src/calligra/krita/ui/opengl/kis_opengl_image_textures.cpp:249 #8 0x00007f652ec015d0 in KisCanvas2::updateCanvasProjection (this=0x98b2b80, info=<value optimized out>) at /home/boud/kde/src/calligra/krita/ui/canvas/kis_canvas2.cpp:456 #9 0x00007f652ec028e5 in KisCanvas2::qt_metacall (this=0x98b2b80, _c=<value optimized out>, _id=8, _a=<value optimized out>) at /home/boud/kde/build/calligra/krita/ui/kis_canvas2.moc:123 #10 0x00007f652f5497aa in QObject::event (this=0x98b2b80, e=<value optimized out>) at kernel/qobject.cpp:1226 #11 0x00007f6528378264 in QApplicationPrivate::notify_helper (this=0x7aee80, receiver=0x98b2b80, e=0x84e7bf0) at kernel/qapplication.cpp:4481 #12 0x00007f652838081a in QApplication::notify (this=<value optimized out>, receiver=0x98b2b80, e=0x84e7bf0) at kernel/qapplication.cpp:4360 #13 0x00007f6528fe0346 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5 #14 0x00007f652f5357cc in QCoreApplication::notifyInternal (this=0x7fffb0c2ad80, receiver=0x98b2b80, event=0x84e7bf0) at kernel/qcoreapplication.cpp:787 #15 0x00007f652f538fc5 in sendEvent (receiver=0x0, event_type=0, data=0x60b400) at kernel/qcoreapplication.h:215 #16 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60b400) at kernel/qcoreapplication.cpp:1428 #17 0x00007f652f563820 in QEventDispatcherUNIX::processEvents (this=0x610e10, flags=...) at kernel/qeventdispatcher_unix.cpp:905 #18 0x00007f652841efcc in QEventDispatcherX11::processEvents (this=0x610e10, flags=...) at kernel/qeventdispatcher_x11.cpp:152 #19 0x00007f652f534c22 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149 #20 0x00007f652f534e35 in QEventLoop::exec (this=0x7fffb0c2ad30, flags=...) at kernel/qeventloop.cpp:201 #21 0x00007f652f53927b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064 #22 0x00007f652f91f87d in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/boud/kde/src/calligra/krita/main.cc:71 #23 0x00007f6526d75bfd in __libc_start_main () from /lib64/libc.so.6 #24 0x0000000000400929 in _start () at ../sysdeps/x86_64/elf/start.S:113 Well before your patch: * crop/undo/redo and rotate image => assert with the first backtrace After the patch: * crop/undo/redo => no crash * rotate image => crash with the same backtrace as #4 Yes, there's definitely something very wrong :-( This is a pretty serious bug and if we don't find a fix, we'll probably have to disable opengl for 2.4. Git commit 724d50b6497f935a7c77fcb4f218ec3ccfcf35fa by Dmitry Kazakov. Committed on 23/10/2011 at 19:51. Pushed by dkazakov into branch 'master'. Added NO_UI_UPDATES parameter to the processing applicator This parameter should be used when the action emits other signals which update the UI's projection like sigImageSizeChanged. CCBUG:284457 We probably shouldn't close this bug, because rotate, shear and other actions are still vulnerable as they have not been ported to processings yet. M +22 -3 krita/image/kis_image.cc M +3 -0 krita/image/kis_image.h M +3 -0 krita/image/kis_image_interfaces.h M +34 -0 krita/image/kis_processing_applicator.cpp M +1 -0 krita/image/kis_processing_applicator.h M +32 -0 krita/image/tests/kis_processing_applicator_test.cpp M +1 -0 krita/image/tests/kis_processing_applicator_test.h http://commits.kde.org/calligra/724d50b6497f935a7c77fcb4f218ec3ccfcf35fa Sorry for the noise. There is no crash here now. I will set the severity to Normal and leave this bug as a reminder that the rest of the methods of KisImage should be ported to strokes. Dmitry, can you append a list to this bug of all the actions that still need to be ported? *** Bug 251389 has been marked as a duplicate of this bug. *** Gradient tool is fixed, so we're done with this. |