Bug 186612 - Crash on open remote document
Summary: Crash on open remote document
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 189744 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-09 02:16 UTC by Sven Langkamp
Modified: 2009-08-18 15:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Langkamp 2009-03-09 02:16:26 UTC
Version:           2.0 beta-7 (using 4.1.3 (KDE 4.1.3) "release 55.2", KDE:KDE4:Factory:Desktop / openSUSE_11.0)
Compiler:          gcc
OS:                Linux (i686) release 2.6.25.20-0.1-pae

To reproduce:
-open a remote image
-close the image
-open it from recents documents

Backtrace:
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb4b23900 in raise () from /lib/libc.so.6
#2  0xb4b25238 in abort () from /lib/libc.so.6
#3  0xb7d7f8c5 in qt_message_output () from /usr/lib/libQtCore.so.4
#4  0xb7d7f9a2 in qFatal () from /usr/lib/libQtCore.so.4
#5  0xb7d7fa35 in qt_assert () from /usr/lib/libQtCore.so.4
#6  0xb7b31ea7 in KisSharedPtr<KisImage>::operator-> (this=0xbf89e030) at /home/sven/kde/src/koffice/krita/image/kis_shared_ptr.h:191
#7  0xb7b92e0f in KisCanvasResourceProvider::setCanvasResourceProvider (this=0x91b47d8, resourceProvider=0x91a0d00) at /home/sven/kde/src/koffice/krita/ui/kis_canvas_resource_provider.cpp:56
#8  0xb7c23467 in KisView2 (this=0x826d3a0, doc=0x8251308, parent=0x8266d98) at /home/sven/kde/src/koffice/krita/ui/kis_view2.cpp:199
#9  0xb7ba9e94 in KisDoc2::createViewInstance (this=0x8251308, parent=0x8266d98) at /home/sven/kde/src/koffice/krita/ui/kis_doc2.cc:457
#10 0xb65bc75b in KoDocument::createView (this=0x8251308, parent=0x8266d98) at /home/sven/kde/src/koffice/libs/main/KoDocument.cpp:341
#11 0xb65e82ae in KoMainWindow::setRootDocument (this=0x824d640, doc=0x8251308) at /home/sven/kde/src/koffice/libs/main/KoMainWindow.cpp:463
#12 0xb65bd2b2 in KoDocument::deleteOpenPane (this=0x8251308) at /home/sven/kde/src/koffice/libs/main/KoDocument.cpp:2642
#13 0xb65bd343 in KoDocument::openExistingFile (this=0x8251308, url=@0xbf89e4b8) at /home/sven/kde/src/koffice/libs/main/KoDocument.cpp:2576
#14 0xb7ba9590 in KisDoc2::openExistingFile (this=0x8251308, url=@0xbf89e4b8) at /home/sven/kde/src/koffice/krita/ui/kis_doc2.cc:160
#15 0xb7ba9a56 in KisDoc2::qt_metacall (this=0x8251308, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf89e37c) at /home/sven/kde/build/koffice/krita/ui/kis_doc2.moc:76
#16 0xb7e8c730 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0xb7e8d4b2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#18 0xb6639388 in KoOpenPane::openExistingFile (this=0x828ca68, _t1=@0xbf89e4b8) at /home/sven/kde/build/koffice/libs/main/KoOpenPane.moc:96
#19 0xb6639688 in KoOpenPane::qt_metacall (this=0x828ca68, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf89e46c) at /home/sven/kde/build/koffice/libs/main/KoOpenPane.moc:79
#20 0xb7e8c730 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#21 0xb7e8d4b2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#22 0xb663f508 in KoDetailsPane::openUrl (this=0x827f5a0, _t1=@0xbf89e4b8) at /home/sven/kde/build/koffice/libs/main/KoDetailsPane.moc:97
#23 0xb6645606 in KoRecentDocumentsPane::openFile (this=0x827f5a0, index=@0x8303468) at /home/sven/kde/src/koffice/libs/main/KoRecentDocumentsPane.cpp:182
#24 0xb663f87a in KoDetailsPane::qt_metacall (this=0x827f5a0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbf89e5cc) at /home/sven/kde/build/koffice/libs/main/KoDetailsPane.moc:85
#25 0xb664540c in KoRecentDocumentsPane::qt_metacall (this=0x827f5a0, _c=QMetaObject::InvokeMetaMethod, _id=32, _a=0xbf89e5cc) at /home/sven/kde/build/koffice/libs/main/KoRecentDocumentsPane.moc:68
#26 0xb7e8c730 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#27 0xb7e8d4b2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#28 0xb6280b33 in QAbstractItemView::doubleClicked () from /usr/lib/libQtGui.so.4
#29 0xb62cc310 in QTreeView::mouseDoubleClickEvent () from /usr/lib/libQtGui.so.4
#30 0xb5e168a2 in QWidget::event () from /usr/lib/libQtGui.so.4
#31 0xb614ddd3 in QFrame::event () from /usr/lib/libQtGui.so.4
#32 0xb61e48ff in QAbstractScrollArea::viewportEvent () from /usr/lib/libQtGui.so.4
#33 0xb628fb1f in QAbstractItemView::viewportEvent () from /usr/lib/libQtGui.so.4
#34 0xb62c7784 in QTreeView::viewportEvent () from /usr/lib/libQtGui.so.4
#35 0xb61e6ea5 in ?? () from /usr/lib/libQtGui.so.4
#36 0xb7e76c3a in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4
#37 0xb5dbe80a in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#38 0xb5dc7081 in QApplication::notify () from /usr/lib/libQtGui.so.4
#39 0xb756a2ed in KApplication::notify () from /usr/lib/libkdeui.so.5
#40 0xb7e77a61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#41 0xb5dc630e in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#42 0xb5e30736 in ?? () from /usr/lib/libQtGui.so.4
#43 0xb5e2fadd in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#44 0xb5e581bc in ?? () from /usr/lib/libQtGui.so.4
#45 0xb4a6d2d9 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
Comment 1 Sven Langkamp 2009-03-15 03:20:31 UTC
The problem is that remote documents are loaded asynchronously. So the view gets created before the image is there and some parts of the view expect the image to be available.
Comment 2 Sven Langkamp 2009-05-30 13:32:18 UTC
*** Bug 189744 has been marked as a duplicate of this bug. ***
Comment 3 Jonathan Thomas 2009-06-07 22:57:14 UTC
This crash is still present in Krita 2.0 final. We received a downstream report about the crash here:
https://launchpad.net/bugs/361943

with the following backtrace:

Application: Krita (krita), signal SIGSEGV
 0x00007f4e140fcd21 in nanosleep () from /lib/libc.so.6
 Current language: auto; currently c
Thread 1 (Thread 0x7f4e1cae7760 (LWP 6973)):
 [KCrash Handler]
 #5 KisImage::colorSpace (this=0x0) at /build/buildd/koffice2-2.0.0/krita/image/kis_image.cc:1049
 #6 0x00007f4e1c1a88ee in KisOpenGLImageTextures::imageCanShareTextures (image={d = 0x7fff24cbf570}) at /build/buildd/koffice2-2.0.0/krita/ui/opengl/kis_opengl_image_textures.cpp:163
 #7 0x00007f4e1c1ab7d0 in KisOpenGLImageTextures::getImageTextures (image={d = 0x7fff24cbf650}, monitorProfile=0x312d620)
     at /build/buildd/koffice2-2.0.0/krita/ui/opengl/kis_opengl_image_textures.cpp:135
 #8 0x00007f4e1c090ec8 in KisCanvas2::createOpenGLCanvas (this=0x3d09410) at /build/buildd/koffice2-2.0.0/krita/ui/canvas/kis_canvas2.cpp:254
 #9 0x00007f4e1c0913ac in KisCanvas2::createCanvas (this=0x3d09410) at /build/buildd/koffice2-2.0.0/krita/ui/canvas/kis_canvas2.cpp:272
 #10 0x00007f4e1c09196b in KisCanvas2 (this=0x3d09410, viewConverter=<value optimized out>, view=0x3c4ef60, sc=<value optimized out>)
     at /build/buildd/koffice2-2.0.0/krita/ui/canvas/kis_canvas2.cpp:105
 #11 0x00007f4e1c16b479 in KisView2 (this=0x3c4ef60, doc=0x20c8e10, parent=<value optimized out>) at /build/buildd/koffice2-2.0.0/krita/ui/kis_view2.cpp:195
 #12 0x00007f4e1c0f5f84 in KisDoc2::createViewInstance (this=0x20c8e10, parent=0x2108b40) at /build/buildd/koffice2-2.0.0/krita/ui/kis_doc2.cc:457
 #13 0x00007f4e195c1cfa in KoDocument::createView (this=0x0, parent=0x3ff91c0) at /build/buildd/koffice2-2.0.0/libs/main/KoDocument.cpp:341
 #14 0x00007f4e195e7177 in KoMainWindow::setRootDocument (this=0x20e8970, doc=0x20c8e10) at /build/buildd/koffice2-2.0.0/libs/main/KoMainWindow.cpp:453
 #15 0x00007f4e195c50a3 in KoDocument::deleteOpenPane (this=0x20c8e10) at /build/buildd/koffice2-2.0.0/libs/main/KoDocument.cpp:2645
 #16 0x00007f4e1c0f59da in KisDoc2::openExistingFile (this=0x20c8e10, url=@0x7fff24cbfbf0) at /build/buildd/koffice2-2.0.0/krita/ui/kis_doc2.cc:160
 #17 0x00007f4e1c0f5bd1 in KisDoc2::qt_metacall (this=0x20c8e10, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff24cbfab0)
     at /build/buildd/koffice2-2.0.0/obj-x86_64-linux-gnu/krita/ui/kis_doc2.moc:77
 #18 0x00007f4e1c5c08d2 in QMetaObject::activate (sender=0x214a770, from_signal_index=<value optimized out>, to_signal_index=27, argv=0x3ff91c0) at kernel/qobject.cpp:3120
 #19 0x00007f4e196456a2 in KoOpenPane::openExistingFile (this=0x0, _t1=<value optimized out>) at /build/buildd/koffice2-2.0.0/obj-x86_64-linux-gnu/libs/main/KoOpenPane.moc:98
 #20 0x00007f4e19645a44 in KoOpenPane::qt_metacall (this=0x214a770, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff24cbfbd0)
     at /build/buildd/koffice2-2.0.0/obj-x86_64-linux-gnu/libs/main/KoOpenPane.moc:80
 #21 0x00007f4e1c5c08d2 in QMetaObject::activate (sender=0x21cfd50, from_signal_index=<value optimized out>, to_signal_index=27, argv=0x3ff91c0) at kernel/qobject.cpp:3120
 #22 0x00007f4e1965a572 in KoExistingDocumentPane::openExistingUrl (this=0x0, _t1=<value optimized out>) at /build/buildd/koffice2-2.0.0/obj-x86_64-linux-gnu/libs/main/KoExistingDocumentPane.moc:83
 #23 0x00007f4e1965a5fa in KoExistingDocumentPane::onAccepted (this=0x21cfd50) at /build/buildd/koffice2-2.0.0/libs/main/KoExistingDocumentPane.cpp:62
 #24 0x00007f4e1965a66d in KoExistingDocumentPane::qt_metacall (this=0x21cfd50, _c=QMetaObject::InvokeMetaMethod, _id=67080640, _a=0x7fff24cbfcd0)
     at /build/buildd/koffice2-2.0.0/obj-x86_64-linux-gnu/libs/main/KoExistingDocumentPane.moc:71
 #25 0x00007f4e1c5c08d2 in QMetaObject::activate (sender=0x2219630, from_signal_index=<value optimized out>, to_signal_index=31, argv=0x3ff91c0) at kernel/qobject.cpp:3120
 #26 0x00007f4e1120e0aa in KFileWidget::slotOk (this=0x2219630) at /build/buildd/kde4libs-4.2.4/kfile/kfilewidget.cpp:960
 #27 0x00007f4e1120da29 in KFileWidget::slotOk (this=0x2219630) at /build/buildd/kde4libs-4.2.4/kfile/kfilewidget.cpp:875
 #28 0x00007f4e1120c222 in KFileWidget::qt_metacall (this=0x2219630, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff24cc0750)
     at /build/buildd/kde4libs-4.2.4/obj-x86_64-linux-gnu/kfile/kfilewidget.moc:124
 #29 0x00007f4e1c5c08d2 in QMetaObject::activate (sender=0x221bb90, from_signal_index=<value optimized out>, to_signal_index=30, argv=0x3ff91c0) at kernel/qobject.cpp:3120
 #30 0x00007f4e15c78ac7 in QAbstractButton::clicked (this=0x0, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:200
 #31 0x00007f4e159d3d7b in QAbstractButtonPrivate::emitClicked (this=0x2e48ab0) at widgets/qabstractbutton.cpp:543
 #32 0x00007f4e159d59d2 in QAbstractButtonPrivate::click (this=0x2e48ab0) at widgets/qabstractbutton.cpp:536
 #33 0x00007f4e159d5c25 in QAbstractButton::mouseReleaseEvent (this=0x221bb90, e=0x7fff24cc0f20) at widgets/qabstractbutton.cpp:1115
 #34 0x00007f4e1567edef in QWidget::event (this=0x221bb90, event=0x7fff24cc0f20) at kernel/qwidget.cpp:7521
 #35 0x00007f4e1562db9d in QApplicationPrivate::notify_helper (this=0x18404f0, receiver=0x221bb90, e=0x7fff24cc0f20) at kernel/qapplication.cpp:4057
 #36 0x00007f4e1563654a in QApplication::notify (this=<value optimized out>, receiver=0x221bb90, e=0x7fff24cc0f20) at kernel/qapplication.cpp:3759
 #37 0x00007f4e1681384b in KApplication::notify (this=0x7fff24cc2e20, receiver=0x221bb90, event=0x7fff24cc0f20) at /build/buildd/kde4libs-4.2.4/kdeui/kernel/kapplication.cpp:307
 #38 0x00007f4e1c5aadfc in QCoreApplication::notifyInternal (this=0x7fff24cc2e20, receiver=0x221bb90, event=0x7fff24cc0f20) at kernel/qcoreapplication.cpp:610
 #39 0x00007f4e15635798 in QApplicationPrivate::sendMouseEvent (receiver=0x221bb90, event=0x7fff24cc0f20, alienWidget=0x0, nativeWidget=0x221bb90, buttonDown=<value optimized out>,
     lastMouseReceiver=@0x7f4e1608f010) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
 #40 0x00007f4e1569f789 in QETWidget::translateMouseEvent (this=0x221bb90, event=<value optimized out>) at kernel/qapplication_x11.cpp:4448
 #41 0x00007f4e1569e7f5 in QApplication::x11ProcessEvent (this=0x7fff24cc2e20, event=0x7fff24cc2aa0) at kernel/qapplication_x11.cpp:3566
 #42 0x00007f4e156c6f84 in x11EventSourceDispatch (s=0x18443a0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
 #43 0x00007f4e137a520a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
 #44 0x00007f4e137a88e0 in ?? () from /usr/lib/libglib-2.0.so.0
 #45 0x00007f4e137a8a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
 #46 0x00007f4e1c5d452f in QEventDispatcherGlib::processEvents (this=0x182cbe0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
 #47 0x00007f4e156c670f in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
 #48 0x00007f4e1c5a96a2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 617360784}) at kernel/qeventloop.cpp:149
 #49 0x00007f4e1c5a9a6d in QEventLoop::exec (this=0x7fff24cc2dd0, flags={i = 617360864}) at kernel/qeventloop.cpp:200
 #50 0x00007f4e1c5abd34 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
 #51 0x00007f4e1c8a2905 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/koffice2-2.0.0/krita/main.cc:44
 #52 0x00007f4e140735a6 in __libc_start_main (main=0x400980 <main>, argc=1, ubp_av=0x7fff24cc2fb8, init=0x4009b0 <__libc_csu_init>, fini=<value optimized out>, rtld_fini=<value optimized out>,
     stack_end=0x7fff24cc2fa8) at libc-start.c:220
 #53 0x00000000004008b9 in _start () at ../sysdeps/x86_64/elf/start.S:113