Bug 142494 - Drag and Drop on Firefox Add-ons window crashes Konqueror And/Or Firefox
Summary: Drag and Drop on Firefox Add-ons window crashes Konqueror And/Or Firefox
Status: RESOLVED REMIND
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 142493 144763 149062 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-04 04:33 UTC by Patrice Tremblay
Modified: 2008-07-23 07:49 UTC (History)
3 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 Patrice Tremblay 2007-03-04 04:33:51 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          GCC 4.1.1 
OS:                Linux

Drag and drop on Firefox windows is more broken than usual these days. I was trying to drop a firefox-theme.jar on firefox's add-ons window and kdesktop crashed. Then a second try from a konqueror (file management profile) window and firefox crashed. Then another try with a restarted firefox crashed konqueror. The only reliable way to drop a theme on firefox add-ons window is to drag it from a konqueror window directly to the add-ons window, without passing over firefox main window. Also, sometimes Firefox would just ignore the drop, spitting this error in .xsession-errors. :

(firefox-bin:4463): Gtk-CRITICAL **: gtk_drag_get_data: assertion `GTK_IS_WIDGET (widget)' failed

So, this lead me to investigate gtk and firefox first. After going through their respective bugzillas, it seems gtk had some sort API change (how nice) in 2.10.7. This change triggered a bug in firefox gtk2 layer which prevented drag and drop from working correctly. (See ref.1)

ref.1: https://bugzilla.mozilla.org/show_bug.cgi?id=367203

So... now the bug is fixed in firefox 2.0.0.2. But is it? Some posts on the web suggests that it might not be fixed after all:

https://bugzilla.mozilla.org/show_bug.cgi?id=355248#c19
http://www.mail-archive.com/freebsd-questions%40freebsd.org/msg159519.html

Anyway, this bug (it seems) crashes konqueror/kdesktop and i guess it is not unreasonable to think that a bug in some app should never crash a kde app...

Here are 2 different backtraces i got from 2 consecutive crashes:

(no debugging symbols found)
[KCrash handler]
#6  0x00000000 in ?? ()
#7  0xb74f8f47 in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#8  0xb74f9ed0 in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#9  0xb7b88dfe in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#10 0xb74880a9 in QETWidget::translateMouseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#11 0xb74871fd in QApplication::x11ProcessEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#12 0xb749c1f5 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#13 0xb7512591 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#14 0xb74f8a6f in QApplication::enter_loop () from /opt/qt/lib/libqt-mt.so.3
#15 0xb74994b8 in QDragManager::drag () from /opt/qt/lib/libqt-mt.so.3
#16 0xb7509586 in QDragObject::drag () from /opt/qt/lib/libqt-mt.so.3
#17 0xb7509347 in QDragObject::drag () from /opt/qt/lib/libqt-mt.so.3
#18 0xb773b3a5 in QIconView::startDrag () from /opt/qt/lib/libqt-mt.so.3
#19 0xb7741271 in QIconView::contentsMouseMoveEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#20 0xb6991b73 in KonqIconViewWidget::contentsMouseMoveEvent ()
   from /opt/kde/lib/libkonq.so.4
#21 0xb768e02f in QScrollView::viewportMouseMoveEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#22 0xb768bf5a in QScrollView::eventFilter () from /opt/qt/lib/libqt-mt.so.3
#23 0xb773a29f in QIconView::eventFilter () from /opt/qt/lib/libqt-mt.so.3
#24 0xb75626e6 in QObject::activate_filters () from /opt/qt/lib/libqt-mt.so.3
#25 0xb756274b in QObject::event () from /opt/qt/lib/libqt-mt.so.3
#26 0xb759d89c in QWidget::event () from /opt/qt/lib/libqt-mt.so.3
#27 0xb74f8f47 in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#28 0xb74fa0e8 in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#29 0xb7b88dfe in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#30 0xb74880a9 in QETWidget::translateMouseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#31 0xb74871fd in QApplication::x11ProcessEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#32 0xb749c1f5 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#33 0xb7512591 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#34 0xb7512446 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#35 0xb74f8aff in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#36 0xb6736945 in kdemain () from /opt/kde/lib/libkdeinit_konqueror.so
#37 0xb72d74b4 in kdeinitmain () from /opt/kde/lib/kde3/konqueror.so
#38 0x0804e107 in ?? ()

And another one (pasted too because it does not look the same to me):

(no debugging symbols found)
[KCrash handler]
#6  0xb7509cf6 in QDragObject::source () from /opt/qt/lib/libqt-mt.so.3
#7  0xb7498c34 in QDragManager::move () from /opt/qt/lib/libqt-mt.so.3
#8  0xb749944b in QDragManager::drag () from /opt/qt/lib/libqt-mt.so.3
#9  0xb7509586 in QDragObject::drag () from /opt/qt/lib/libqt-mt.so.3
#10 0xb7509347 in QDragObject::drag () from /opt/qt/lib/libqt-mt.so.3
#11 0xb773b3a5 in QIconView::startDrag () from /opt/qt/lib/libqt-mt.so.3
#12 0xb7741271 in QIconView::contentsMouseMoveEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#13 0xb6991b73 in KonqIconViewWidget::contentsMouseMoveEvent ()
   from /opt/kde/lib/libkonq.so.4
#14 0xb768e02f in QScrollView::viewportMouseMoveEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#15 0xb768bf5a in QScrollView::eventFilter () from /opt/qt/lib/libqt-mt.so.3
#16 0xb773a29f in QIconView::eventFilter () from /opt/qt/lib/libqt-mt.so.3
#17 0xb75626e6 in QObject::activate_filters () from /opt/qt/lib/libqt-mt.so.3
#18 0xb756274b in QObject::event () from /opt/qt/lib/libqt-mt.so.3
#19 0xb759d89c in QWidget::event () from /opt/qt/lib/libqt-mt.so.3
#20 0xb74f8f47 in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#21 0xb74fa0e8 in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#22 0xb7b88dfe in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#23 0xb74880a9 in QETWidget::translateMouseEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#24 0xb74871fd in QApplication::x11ProcessEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#25 0xb749c1f5 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#26 0xb7512591 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#27 0xb7512446 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#28 0xb74f8aff in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#29 0xb6736945 in kdemain () from /opt/kde/lib/libkdeinit_konqueror.so
#30 0xb72d74b4 in kdeinitmain () from /opt/kde/lib/kde3/konqueror.so
#31 0x0804e107 in ?? ()

All this happens on:
branches/KDE/3.5 checkout 2006-02-25;
Qt 3.3.7;
Xorg 7.2;
GTK 2.10.9;
Firefox 2.0.0.2;
Style: QtCurve (both KDE and GTK2).

If you need more detailed backtraces, i guess i could rebuild my kde with debugging enabled... bye!
Comment 1 A S Alam 2007-03-04 06:14:33 UTC
bug it duplicate for #142493
Comment 2 Michael Pyne 2007-03-04 07:21:31 UTC
Looks like the reporter already closed 142493 as it also duplicates this one.  If the bug is actually fixed then the reporter should close this one as well.
Comment 3 Stefan Monov 2007-03-04 08:01:33 UTC
*** Bug 142493 has been marked as a duplicate of this bug. ***
Comment 4 Patrice Tremblay 2007-03-04 17:19:34 UTC
Here is the backtrace with Qt, kdelibs and kdebase with full debug on:

Note that it is not triggered that easily. Here is a reliable way to make it crash:

Open Firefox,

Open Tools/Add-ons,

Open Konqueror and go to the directory containing your .jar file,

Copy this .jar on the desktop,

Now drag the jar from the desktop to the add-ons window, and make sure you pass over Firefox main window; the add-ons window will not accept the drop event.

Now drag the .jar from konqueror's window to Firefox add-ons window, making sure you DO NOT pass over Firefox's main window, it will again not accept the drop event.

Now close the Add-ons window, it should crash Firefox.

Restart Firefox, and drag again the file from the desktop to firefox add-ons window (passing over the main window); the drop will again be refused.

Now drag the file again from konqueror to the add-ons window (without passing over firefox's main windows...). Boom! Konq should crash giving this:


Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1230960944 (LWP 1555)]
[KCrash handler]
#6  0x00000000 in ?? ()
#7  0xb755bbde in QApplication::internalNotify (this=0xbfe24934, 
    receiver=0x83f3ae0, e=0xbfe235c4) at kernel/qapplication.cpp:2636
#8  0xb755d9fb in QApplication::notify (this=0xbfe24934, receiver=0x83f3ae0, 
    e=0xbfe235c4) at kernel/qapplication.cpp:2359
#9  0xb7bd6e1d in KApplication::notify (this=0xbfe24934, receiver=0x83f3ae0, 
    event=0xbfe235c4) at kapplication.cpp:551
#10 0xb74efdaf in QApplication::sendSpontaneousEvent (receiver=0x83f3ae0, 
    event=0xbfe235c4) at ../include/qapplication.h:523
#11 0xb74eea49 in QETWidget::translateMouseEvent (this=0x835c3d8, 
    event=0xbfe239f8) at kernel/qapplication_x11.cpp:4304
#12 0xb74ecfca in QApplication::x11ProcessEvent (this=0xbfe24934, 
    event=0xbfe239f8) at kernel/qapplication_x11.cpp:3481
#13 0xb750376e in QEventLoop::processEvents (this=0x806e2a0, flags=4)
    at kernel/qeventloop_x11.cpp:192
#14 0xb757611d in QEventLoop::enterLoop (this=0x806e2a0)
    at kernel/qeventloop.cpp:198
#15 0xb755d6f5 in QApplication::enter_loop (this=0xbfe24934)
    at kernel/qapplication.cpp:2794
#16 0xb750034c in QDragManager::drag (this=0x83ec4d0, o=0x83e1118, 
    mode=QDragObject::DragDefault) at kernel/qdnd_x11.cpp:1803
#17 0xb756f98e in QDragObject::drag (this=0x83e1118, 
    mode=QDragObject::DragDefault) at kernel/qdragobject.cpp:550
#18 0xb756cc92 in QDragObject::drag (this=0x83e1118)
    at kernel/qdragobject.cpp:472
#19 0xb77ac6d1 in QIconView::startDrag (this=0x835bbb8)
    at iconview/qiconview.cpp:5495
#20 0xb77b072f in QIconView::contentsMouseMoveEvent (this=0x835bbb8, 
    e=0xbfe23d7c) at iconview/qiconview.cpp:4714
#21 0xb69e26f6 in KonqIconViewWidget::contentsMouseMoveEvent (this=0x835bbb8, 
    e=0xbfe23d7c) at konq_iconviewwidget.cc:1234
#22 0xb76f838d in QScrollView::viewportMouseMoveEvent (this=0x835bbb8, 
    e=0xbfe24274) at widgets/qscrollview.cpp:1784
#23 0xb76f9b8a in QScrollView::eventFilter (this=0x835bbb8, obj=0x835c3d8, 
    e=0xbfe24274) at widgets/qscrollview.cpp:1511
#24 0xb77ab9a4 in QIconView::eventFilter (this=0x835bbb8, o=0x835c3d8, 
    e=0xbfe24274) at iconview/qiconview.cpp:5730
#25 0xb75c31fa in QObject::activate_filters (this=0x835c3d8, e=0xbfe24274)
    at kernel/qobject.cpp:903
#26 0xb75c3278 in QObject::event (this=0x835c3d8, e=0xbfe24274)
    at kernel/qobject.cpp:735
#27 0xb75fa50a in QWidget::event (this=0x835c3d8, e=0xbfe24274)
    at kernel/qwidget.cpp:4678
#28 0xb755bbde in QApplication::internalNotify (this=0xbfe24934, 
    receiver=0x835c3d8, e=0xbfe24274) at kernel/qapplication.cpp:2636
#29 0xb755dd81 in QApplication::notify (this=0xbfe24934, receiver=0x835c3d8, 
    e=0xbfe24274) at kernel/qapplication.cpp:2422
#30 0xb7bd6e1d in KApplication::notify (this=0xbfe24934, receiver=0x835c3d8, 
    event=0xbfe24274) at kapplication.cpp:551
#31 0xb74efdaf in QApplication::sendSpontaneousEvent (receiver=0x835c3d8, 
    event=0xbfe24274) at ../include/qapplication.h:523
#32 0xb74eea49 in QETWidget::translateMouseEvent (this=0x835c3d8, 
    event=0xbfe246a8) at kernel/qapplication_x11.cpp:4304
#33 0xb74ecfca in QApplication::x11ProcessEvent (this=0xbfe24934, 
    event=0xbfe246a8) at kernel/qapplication_x11.cpp:3481
#34 0xb750376e in QEventLoop::processEvents (this=0x806e2a0, flags=4)
    at kernel/qeventloop_x11.cpp:192
#35 0xb757611d in QEventLoop::enterLoop (this=0x806e2a0)
    at kernel/qeventloop.cpp:198
#36 0xb7575f3e in QEventLoop::exec (this=0x806e2a0)
    at kernel/qeventloop.cpp:145
#37 0xb755d777 in QApplication::exec (this=0xbfe24934)
    at kernel/qapplication.cpp:2759
#38 0xb6763783 in kdemain (argc=2, argv=0x808ad70) at konq_main.cc:206
#39 0xb72c74b4 in kdeinitmain (argc=2, argv=0x808ad70) at konqueror_dummy.cc:3
#40 0x0804e49b in launch (argc=2, _name=0x8076eb4 "konqueror", 
    args=<value optimized out>, cwd=0x0, envc=1, 
    envs=0x8076ecc "DISPLAY=:0.0", reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x8051444 "0") at kinit.cpp:673
#41 0x0804f187 in handle_launcher_request (sock=9) at kinit.cpp:1240
#42 0x0804f6d1 in handle_requests (waitForPid=0) at kinit.cpp:1443
#43 0x0804fed1 in main (argc=5, argv=0xbfe25304, envp=0xbfe2531c)
    at kinit.cpp:1909


With xorg 7.2, Qt 3.3.8, kdelibs/kdebase 3.5.6 (svn 2006-03-04), gtk 2.10.9, firefox 2.0.0.2, kde qtcurve, gtk default style.
Comment 5 Patrice Tremblay 2007-03-04 17:23:37 UTC
Hmm... you might have noticed that 2006-03-04 should be replace with 2007-03-04...
Comment 6 Tommi Tervo 2007-04-27 20:47:39 UTC
*** Bug 144763 has been marked as a duplicate of this bug. ***
Comment 7 Tommi Tervo 2007-08-21 11:33:25 UTC
*** Bug 149062 has been marked as a duplicate of this bug. ***
Comment 8 Eduardo Robles Elvira 2008-06-06 01:06:59 UTC
Is it still happening to you in any recent version of KDE? We won't fix KDE 3.5 anymore, so please test with KDE 4.0.5 or KDE 4.1 when it's out.
Comment 9 A. Spehr 2008-07-23 07:49:16 UTC
No response, closing.

I also suspect that all these libraries have changed enough that this is gone. Otherwise, please reopen if you have more information. Thanks!