Bug 281534 - Krusader/KrViewer crashes when opening an ical file
Summary: Krusader/KrViewer crashes when opening an ical file
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 5.1.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 310909 330767 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-07 11:00 UTC by marko.mahnic
Modified: 2016-09-29 06:15 UTC (History)
6 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 marko.mahnic 2011-09-07 11:00:20 UTC
Application: krusader (2.3.0-beta1 "New Horizons")
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-11-generic i686
Distribution: Ubuntu 11.04

-- Information about the crash:
* Select an ical file (created by KOrganizer) in the pane
* Press F3 (internal viewer)

The crash can be reproduced every time.

-- Backtrace:
Application: Krusader (krusader), signal: Segmentation fault
[Current thread is 1 (Thread 0xb77de710 (LWP 27345))]

Thread 3 (Thread 0xb5617b70 (LWP 27346)):
#0  0x048f07af in __pthread_mutex_unlock_usercnt (mutex=0x911cf2c, decr=1) at pthread_mutex_unlock.c:77
#1  0x077b1656 in pthread_mutex_unlock (mutex=0x911cf2c) at forward.c:184
#2  0x02ed254c in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x01aa6577 in QEventDispatcherGlib::processEvents (this=0x911cbd8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x01a78289 in QEventLoop::processEvents (this=0xb5617290, flags=...) at kernel/qeventloop.cpp:149
#5  0x01a78522 in QEventLoop::exec (this=0xb5617290, flags=...) at kernel/qeventloop.cpp:201
#6  0x019822a0 in QThread::exec (this=0x911aef8) at thread/qthread.cpp:492
#7  0x01a59fdb in QInotifyFileSystemWatcherEngine::run (this=0x911aef8) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x01984da2 in QThreadPrivate::start (arg=0x911aef8) at thread/qthread_unix.cpp:320
#9  0x048ece99 in start_thread (arg=0xb5617b70) at pthread_create.c:304
#10 0x077a373e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb3cf4b70 (LWP 27347)):
#0  0x076e9c6f in __i686.get_pc_thunk.bx () from /lib/i386-linux-gnu/libc.so.6
#1  0x077b15eb in pthread_mutex_lock (mutex=0x93622c4) at forward.c:182
#2  0x02ed0802 in g_main_context_release () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x02ed204f in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x02ed2524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0x01aa6577 in QEventDispatcherGlib::processEvents (this=0x91c8d40, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x01a78289 in QEventLoop::processEvents (this=0xb3cf4290, flags=...) at kernel/qeventloop.cpp:149
#7  0x01a78522 in QEventLoop::exec (this=0xb3cf4290, flags=...) at kernel/qeventloop.cpp:201
#8  0x019822a0 in QThread::exec (this=0x9382e60) at thread/qthread.cpp:492
#9  0x01a59fdb in QInotifyFileSystemWatcherEngine::run (this=0x9382e60) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x01984da2 in QThreadPrivate::start (arg=0x9382e60) at thread/qthread_unix.cpp:320
#11 0x048ece99 in start_thread (arg=0xb3cf4b70) at pthread_create.c:304
#12 0x077a373e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb77de710 (LWP 27345)):
[KCrash Handler]
#7  operator& (this=0x0) at ../../include/QtCore/../../src/corelib/global/qglobal.h:2211
#8  windowType (this=0x0) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:924
#9  isWindow (this=0x0) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:932
#10 QWidget::window (this=0x0) at kernel/qwidget.cpp:4253
#11 0x040a75e9 in topLevelWidget (this=0x9421360, parentWidget=0x0, parent=0x9423050, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/include/qt4/QtGui/qwidget.h:318
#12 KOrganizerPart::KOrganizerPart (this=0x9421360, parentWidget=0x0, parent=0x9423050, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at ../../korganizer/korganizer_part.cpp:53
#13 0x040a7f12 in KPluginFactory::createPartInstance<KOrganizerPart> (parentWidget=0x0, parent=0x9423050, args=...) at /usr/include/kpluginfactory.h:479
#14 0x003af104 in KPluginFactory::create (this=0x94508b8, iface=0x94051f0 "KParts::ReadOnlyPart", parentWidget=0x0, parent=0x9423050, args=..., keyword=...) at ../../kdecore/util/kpluginfactory.cpp:203
#15 0x08187ba1 in create (this=0x9423050, mimetype=...) at /usr/include/kpluginfactory.h:351
#16 PanelViewer::createPart (this=0x9423050, mimetype=...) at /build/buildd/krusader-2.3.0~beta1/krusader/KViewer/panelviewer.cpp:292
#17 0x0818873f in PanelViewerBase::getPart (this=0x9423050, mimetype=...) at /build/buildd/krusader-2.3.0~beta1/krusader/KViewer/panelviewer.cpp:99
#18 0x08189466 in PanelViewer::getDefaultPart (this=0x9423050, url=..., mimetype=..., isBinary=false) at /build/buildd/krusader-2.3.0~beta1/krusader/KViewer/panelviewer.cpp:191
#19 0x0818986e in PanelViewer::openUrl (this=0x9423050, url=..., mode=KrViewer::Default) at /build/buildd/krusader-2.3.0~beta1/krusader/KViewer/panelviewer.cpp:236
#20 0x080cdb8d in PanelPopup::update (this=0x93f23b0, vf=0x91b1b00) at /build/buildd/krusader-2.3.0~beta1/krusader/Panel/panelpopup.cpp:572
#21 0x080ce57c in PanelPopup::tabSelected (this=0x93f23b0, id=3) at /build/buildd/krusader-2.3.0~beta1/krusader/Panel/panelpopup.cpp:540
#22 0x080ce809 in PanelPopup::show (this=0x93f23b0) at /build/buildd/krusader-2.3.0~beta1/krusader/Panel/panelpopup.cpp:447
#23 0x080cb4aa in ListPanel::togglePanelPopup (this=0x9119650) at /build/buildd/krusader-2.3.0~beta1/krusader/Panel/listpanel.cpp:519
#24 0x080d47d8 in ListPanel::qt_metacall (this=0x9119650, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfdbedf8) at /build/buildd/krusader-2.3.0~beta1/obj-i686-linux-gnu/krusader/Panel/moc_listpanel.cpp:162
#25 0x01a7f6ba in QMetaObject::metacall (object=0x9119650, cl=QMetaObject::InvokeMetaMethod, idx=42, argv=0xbfdbedf8) at kernel/qmetaobject.cpp:237
#26 0x01a8f4ff in QMetaObject::activate (sender=0x90e3ab0, m=0x19043f8, local_signal_index=1, argv=0xbfdbedf8) at kernel/qobject.cpp:3287
#27 0x00fca8d9 in QAction::triggered (this=0x90e3ab0, _t1=true) at .moc/release-shared/moc_qaction.cpp:263
#28 0x00fcab38 in QAction::activate (this=0x90e3ab0, event=QAction::Trigger) at kernel/qaction.cpp:1257
#29 0x00fcace8 in QAction::event (this=0x90e3ab0, e=0xbfdbf318) at kernel/qaction.cpp:1183
#30 0x008565b3 in KAction::event (this=0x90e3ab0, event=0xbfdbf318) at ../../kdeui/actions/kaction.cpp:131
#31 0x00fd1d24 in QApplicationPrivate::notify_helper (this=0x8fcd3f8, receiver=0x90e3ab0, e=0xbfdbf318) at kernel/qapplication.cpp:4462
#32 0x00fd68ce in QApplication::notify (this=0xbfdc0468, receiver=0x90e3ab0, e=0xbfdbf318) at kernel/qapplication.cpp:3862
#33 0x009493ca in KApplication::notify (this=0xbfdc0468, receiver=0x90e3ab0, event=0xbfdbf318) at ../../kdeui/kernel/kapplication.cpp:311
#34 0x01a790bb in QCoreApplication::notifyInternal (this=0xbfdc0468, receiver=0x90e3ab0, event=0xbfdbf318) at kernel/qcoreapplication.cpp:731
#35 0x01008997 in sendEvent (this=0x8fcd4a4, e=0xbfdbf794) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#36 QShortcutMap::dispatchEvent (this=0x8fcd4a4, e=0xbfdbf794) at kernel/qshortcutmap.cpp:879
#37 0x01009e57 in QShortcutMap::tryShortcutEvent (this=0x8fcd4a4, o=0x91389b0, e=0xbfdbf794) at kernel/qshortcutmap.cpp:364
#38 0x00fd86f1 in QApplication::notify (this=0xbfdc0468, receiver=0x91389b0, e=0xbfdbf794) at kernel/qapplication.cpp:3904
#39 0x009493ca in KApplication::notify (this=0xbfdc0468, receiver=0x91389b0, event=0xbfdbf794) at ../../kdeui/kernel/kapplication.cpp:311
#40 0x01a790bb in QCoreApplication::notifyInternal (this=0xbfdc0468, receiver=0x91389b0, event=0xbfdbf794) at kernel/qcoreapplication.cpp:731
#41 0x00fcfb3e in sendSpontaneousEvent (receiver=0x91389b0, event=0xbfdbf794) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#42 qt_sendSpontaneousEvent (receiver=0x91389b0, event=0xbfdbf794) at kernel/qapplication.cpp:5456
#43 0x010840cd in QKeyMapper::sendKeyEvent (keyWidget=0x91389b0, grab=false, type=QEvent::KeyPress, code=16777237, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=116, nativeVirtualKey=65364, nativeModifiers=8) at kernel/qkeymapper_x11.cpp:1866
#44 0x0108451e in QKeyMapperPrivate::translateKeyEvent (this=0x8ff78b0, keyWidget=0x91389b0, event=0xbfdbfe5c, grab=false) at kernel/qkeymapper_x11.cpp:1836
#45 0x0105bf08 in QApplication::x11ProcessEvent (this=0xbfdc0468, event=0xbfdbfe5c) at kernel/qapplication_x11.cpp:3573
#46 0x010885f4 in x11EventSourceDispatch (s=0x8fd07a8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#47 0x02ed1aa8 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#48 0x02ed2270 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#49 0x02ed2524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#50 0x01aa653c in QEventDispatcherGlib::processEvents (this=0x8fcd3d8, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#51 0x010881e5 in QGuiEventDispatcherGlib::processEvents (this=0x8fcd3d8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#52 0x01a78289 in QEventLoop::processEvents (this=0xbfdc0124, flags=...) at kernel/qeventloop.cpp:149
#53 0x01a78522 in QEventLoop::exec (this=0xbfdc0124, flags=...) at kernel/qeventloop.cpp:201
#54 0x01a7cecc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#55 0x00fcf8e7 in QApplication::exec () at kernel/qapplication.cpp:3736
#56 0x080932bb in main (argc=0, argv=<value optimized out>) at /build/buildd/krusader-2.3.0~beta1/krusader/main.cpp:322

Possible duplicates by query: bug 281501, bug 281402, bug 281088, bug 281038, bug 280908.

Reported using DrKonqi
Comment 1 Matthias H 2011-10-23 12:46:13 UTC
Problem persists with:

Application: krusader (2.4.0-beta1 "Migration")
KDE Platform Version: 4.7.1 (4.7.1)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic i686
Distribution: Ubuntu 11.10
Comment 2 Jan Lepper 2011-12-19 11:36:24 UTC
apparently a bug in the korganizr kpart
Comment 3 Jekyll Wu 2014-02-04 21:39:17 UTC
*** Bug 330767 has been marked as a duplicate of this bug. ***
Comment 4 Jekyll Wu 2014-02-04 21:42:07 UTC
*** Bug 310909 has been marked as a duplicate of this bug. ***
Comment 5 Denis Kurz 2016-09-24 18:54:20 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of korganizer (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 6 marko.mahnic 2016-09-27 07:37:47 UTC
The internal viewer now opens ical files as plain text with syntax highlighting.

Krusader
Version 2.4.0-beta3 "Single Step"
Using KDE Development Platform 4.14.16

KDE - Be Free!
Platform Version 4.14.16

Kubuntu
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

KOrganizer
Version 5.1.3
Using:
KDE Frameworks 5.18.0
Qt 5.5.1 (built against 5.5.1)
The xcb windowing system
Comment 7 Denis Kurz 2016-09-28 16:43:31 UTC
If I understand you correctly, this is fixed (and imho, was actually a Krusader bug?). I close here for now. If this is wrong, please report back, and tell us what you expect Krusader to do when you open a KOrganizer-exported ical file with KrViewer, and optionally, why you think that this is a KOrganizer bug.
Comment 8 marko.mahnic 2016-09-29 06:15:33 UTC
Actually I think it is a KOrganizer KPart 4.x bug. What I think is happening now is that Krusader can't work with KOrganizer 5.x so it displays ical files as plain text.

But as it is, Krusader no longer crashes when opening ical files.

I just found a fix in the report of the bug 205713 which fixes the use of an unverified pointer in KOrganizerPart constructor. This bug explains the stack trace of thread 1 above (stack frame #10).