Bug 159116 - Crash when loading flash content in konqueror from KDE4
Summary: Crash when loading flash content in konqueror from KDE4
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: nspluginviewer (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 158012 159915 165032 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-11 02:28 UTC by Vincenzo Di Massa
Modified: 2010-08-30 13:15 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
This shows where the bug gets triggered. (5.07 KB, text/plain)
2008-03-11 02:29 UTC, Vincenzo Di Massa
Details
Look yourself, I'm executing the right nspluginviewer and it looks linked correctly (3.16 KB, text/plain)
2008-03-11 11:47 UTC, Vincenzo Di Massa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincenzo Di Massa 2008-03-11 02:28:15 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

I'll attach a gdb session later...
All I can say about the bug is that nspluginviewer seems to destroy its memory (the stack as well) when it tries to setup the display.

Is that a flash bug? How does konqui4 trigger it?
Comment 1 Vincenzo Di Massa 2008-03-11 02:29:00 UTC
Created attachment 23862 [details]
This shows where the bug gets triggered.
Comment 2 Tommi Tervo 2008-03-11 08:32:14 UTC
You have messed your installation, KDE4 doesn't use qt3 libraries:

Program received signal SIGSEGV, Segmentation fault.
0xb10c9464 in QMutexPool::get ()/usr/lib/libqt-mt.so.3
Comment 3 Vincenzo Di Massa 2008-03-11 11:45:06 UTC
Well, there can/must be something wrong in my installation, but nonetheless I did not "messed" it on purpose...

I'd like to understand what is going on and how to fix it.

From what I can tell nothing is linked against Qt3 (well, that would not link at all). 

Where does that Qt3 lib link come from?


Comment 4 Vincenzo Di Massa 2008-03-11 11:47:28 UTC
Created attachment 23864 [details]
Look yourself, I'm executing the right nspluginviewer and it looks linked correctly
Comment 5 Vincenzo Di Massa 2008-03-11 13:06:08 UTC
The bug is subtle... thiago _Brandon_ and dfaure helped me to trak it down.

The problem is that if you have gtk-qt-engine installed and configured than the flash plugin will use it.

But gtk-qt-engine is linked against qt3... that causes the problem.

I guess nspluginviewer could prevent plugins loading gtk-qt-engine: it could be possible to reconfigure gtk from nspluginviewer at runtime, before plugins use it.

Feel free to mark the bug as invalid if what I say is wrong :-)

Vincenzo
Comment 6 Vincenzo Di Massa 2008-03-11 14:24:03 UTC
I report more problems here. I don't open another bug report since the first thing that causes the bug is known, bu there is another problem around :-( 

It seems related to
http://bugs.kde.org/show_bug.cgi?id=132138

I paste the short gdb output here:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1241315648 (LWP 14871)]
0xb73fafd7 in XtRemoveTimeOut () from /usr/lib/libXt.so.6
(gdb) bt
#0  0xb73fafd7 in XtRemoveTimeOut () from /usr/lib/libXt.so.6
#1  0xb421bdb1 in ?? () from /usr/lib/mozilla/plugins/flashplugin-alternative.so
#2  0xb4211338 in ?? () from /usr/lib/mozilla/plugins/flashplugin-alternative.so
#3  0xb420a181 in ?? () from /usr/lib/mozilla/plugins/flashplugin-alternative.so
#4  0xb420e937 in ?? () from /usr/lib/mozilla/plugins/flashplugin-alternative.so
#5  0x0816bbd0 in ?? ()
#6  0xbfa7b9a0 in ?? ()
#7  0xbfa7b9ac in ?? ()
#8  0xb73d0930 in ?? () from /media/sdb6/kde4_install/qt/lib/libQt3Support.so.4
#9  0x0805e080 in ?? () at /home/hawk/stanzino/kde/build/4/KDE/kdebase/apps/nsplugins/viewer/nsplugins_callback_interface.moc:52
#10 0xb73d0930 in ?? () from /media/sdb6/kde4_install/qt/lib/libQt3Support.so.4
#11 0xbfa7b9b8 in ?? ()
#12 0x080559cf in NSPluginInstance::destroy (this=0x816bbd0) at /home/hawk/stanzino/kde/src/4/KDE/kdebase/apps/nsplugins/viewer/nsplugin.cpp:690
Comment 7 Maksim Orlovich 2008-03-11 17:10:58 UTC
Odd. Which version of KDE is that? The XtRemoveTimeout crash is a bug inside flash, but any 4.x version should have a workaround.
Comment 8 Vincenzo Di Massa 2008-03-11 21:00:42 UTC
I'm on KDE4 head, updated up to revision 784588.
Comment 9 Anne Wilson 2008-06-08 14:07:01 UTC
Also present in Mandriva's 4.0.4.
Comment 10 Anne Wilson 2008-06-08 14:08:17 UTC
Also present in Mandriva's 4.0.4.
Comment 11 Lubos Lunak 2008-06-13 19:24:59 UTC
*** Bug 159915 has been marked as a duplicate of this bug. ***
Comment 12 Lubos Lunak 2008-06-13 19:26:12 UTC
*** Bug 158012 has been marked as a duplicate of this bug. ***
Comment 13 FiNeX 2008-06-26 23:04:34 UTC
*** Bug 165032 has been marked as a duplicate of this bug. ***
Comment 14 Vincenzo Di Massa 2008-06-27 10:33:15 UTC
It has been working for some time now... but my lazyness (busy-ness ?) prevented me from reporting.
Comment 15 snvv101 2010-08-30 13:15:48 UTC
This bug still exists in Debian sid 64 bit (sidux).
I use gnash flash polugin.
Iceweasel and chromium works without problems

The error that I get is...
nspluginviewer PID 3116: Signal 6 (Aborted)

Starting konqueror from a cell I get the following messages

konqueror(5936)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkhtmlpart.so"
konqueror(5936)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkhtmlpart.so"
konqueror(5936)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/libkhtmlpart.so" does not offer a qt_plugin_instance function.
konqueror(5936)/kparts KParts::StatusBarExtension::removeStatusBarItem: StatusBarExtension::removeStatusBarItem. Widget not found :  ClickIconLabel(0x5472960) 
konqueror(5936)/kparts KParts::StatusBarExtension::removeStatusBarItem: StatusBarExtension::removeStatusBarItem. Widget not found :  KUrlLabel(0x5272c00) 
Pattern: ^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$ was rewritten to: ^[^<]*(<[\w\W]*([\w\W])>)[^>]*$|^#([\w-]+)$
konqueror(5936)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libnsplugin.so"
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QWidget::repaint: Recursive repaint detected
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QWidget::repaint: Recursive repaint detected
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QWidget::repaint: Recursive repaint detected
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QWidget::repaint: Recursive repaint detected
ERROR: Can't get window object
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
KCrash: Application 'nspluginviewer' crashing...
sock_file=/home/snvv/.kde/socket-siduxbox/kdeinit4__0

Please reopen that bug
Thank you
snvv