Bug 185336 - crash if right click in a split view
Summary: crash if right click in a split view
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: 1.9.8
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
: 197998 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-23 13:54 UTC by Elián Hanisch
Modified: 2009-06-27 22:09 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 Elián Hanisch 2009-02-23 13:54:30 UTC
Version:           2.0 beta-6 (using 4.1.2 (KDE 4.1.2), Kubuntu packages)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-23-generic

1. start a new blank doc
2. split views
3. right click in the left view. crash
(clicking in the right view doesn't crash)

backtrace

Application: KWord (kword), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0xb59ee6c0 (LWP 2832)]
[KCrash handler]
#6  0xb7b73451 in KXMLGUIFactory::container ()
   from /usr/lib/kde4/lib/libkdeui.so.5
#7  0xb42c123e in KWView::popupContextMenu (this=0x8519a90, 
    globalPosition=@0xbfb7e1f4, actions=@0xbfb7dcd4)
    at /home/m4v-kde3/dev/kde/src/koffice/trunk/kword/part/KWView.cpp:1166
#8  0xb42b3911 in KWCanvas::mousePressEvent (this=0x87c1b38, e=0xbfb7e1dc)
    at /home/m4v-kde3/dev/kde/src/koffice/trunk/kword/part/KWCanvas.cpp:168
#9  0xb703ce34 in QWidget::event () from /usr/lib/libQtGui.so.4
#10 0xb6fe4f9c in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#11 0xb6fea125 in QApplication::notify () from /usr/lib/libQtGui.so.4
#12 0xb7a76483 in KApplication::notify () from /usr/lib/kde4/lib/libkdeui.so.5
#13 0xb6bb90b9 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#14 0xb6fe7661 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#15 0xb705152d in ?? () from /usr/lib/libQtGui.so.4
#16 0xb704fee1 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#17 0xb7078c2a in ?? () from /usr/lib/libQtGui.so.4
#18 0xb5d2dcc6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0xb5d31083 in ?? () from /usr/lib/libglib-2.0.so.0
#20 0xb5d3163e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#21 0xb6be49f8 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#22 0xb7078a25 in ?? () from /usr/lib/libQtGui.so.4
#23 0xb6bb833d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#24 0xb6bb84cd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#25 0xb6bba74d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#26 0xb6fe4897 in QApplication::exec () from /usr/lib/libQtGui.so.4
#27 0xb7f72e52 in kdemain (argc=1, argv=0xbfb7ea94)
    at /home/m4v-kde3/dev/kde/src/koffice/trunk/kword/part/main.cpp:38
#28 0x08048706 in main (argc=0, argv=0x31)
    at /home/m4v-kde3/dev/kde/build/koffice/trunk/kword/part/kword_dummy.cpp:3
#0  0xb7f77410 in __kernel_vsyscall ()
Comment 1 Thomas Zander 2009-02-28 23:09:17 UTC
SVN commit 933431 by zander:

Fixes: Crash if right click in a split view
BUG:185336
Details: In the KOffice1 days we used KParts to do what flake does now and there
    we handled right clicks on another kpart by the surrounding kpart.
    This, however, means that right clicking on a splitted view calls into a non-active
    view and that causes a crash because the factory is zero.
    So lets remove this old code and be happy.

 M  +0 -4      KoMainWindow.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=933431
Comment 2 Dario Andres 2009-06-26 22:12:20 UTC
@Thomas: could bug 197998 be related to this ?. Regards
Comment 3 Frank Osterfeld 2009-06-27 22:09:09 UTC
*** Bug 197998 has been marked as a duplicate of this bug. ***