[Bug 294385] New: nspluginviewer block konqueror and takes 100% CPU
https://bugzilla.novell.com/show_bug.cgi?id=294385 Summary: nspluginviewer block konqueror and takes 100% CPU Product: openSUSE 10.3 Version: Alpha 6 Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: KDE AssignedTo: kde-maintainers@suse.de ReportedBy: silviu_marin-caea@otpbank.ro QAContact: qa@suse.de Found By: --- This happens after latest factory update. I didn't observe it with alpha6. rpm -q flash-player kdelibs3 kdebase3 flash-player-9.0.48.0-3 kdelibs3-3.5.7-32 kdebase3-3.5.7-33 top - 08:31:57 up 15:36, 3 users, load average: 1.18, 1.06, 1.02 Tasks: 110 total, 4 running, 106 sleeping, 0 stopped, 0 zombie Cpu(s): 50.2%us, 0.2%sy, 0.0%ni, 49.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 1027300k total, 847116k used, 180184k free, 50468k buffers Swap: 393584k total, 0k used, 393584k free, 567724k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5895 silviu_m 25 0 66884 13m 11m R 100 1.4 505:58.82 nspluginviewer 6946 silviu_m 15 0 16688 1232 896 R 0 0.1 0:00.02 top 1 root 18 0 808 320 256 S 0 0.0 0:01.76 init 2 root 10 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.01 migration/0 4 root 34 19 0 0 0 S 0 0.0 0:00.01 ksoftirqd/0 5 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/1 6 root 34 19 0 0 0 S 0 0.0 0:00.01 ksoftirqd/1 7 root 10 -5 0 0 0 S 0 0.0 0:00.04 events/0 8 root 10 -5 0 0 0 S 0 0.0 0:00.01 events/1 9 root 11 -5 0 0 0 S 0 0.0 0:00.00 khelper 30 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/0 31 root 10 -5 0 0 0 S 0 0.0 0:00.01 kblockd/1 32 root 17 -5 0 0 0 S 0 0.0 0:00.00 kacpid 33 root 17 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 113 root 11 -5 0 0 0 S 0 0.0 0:00.00 cqueue/0 114 root 12 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 115 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 145 root 16 0 0 0 0 S 0 0.0 0:00.00 pdflush 146 root 15 0 0 0 0 S 0 0.0 0:00.32 pdflush 147 root 11 -5 0 0 0 S 0 0.0 0:00.00 kswapd0 148 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/0 149 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/1 383 root 11 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 450 root 10 -5 0 0 0 S 0 0.0 0:00.06 ata/0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=294385#c1
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=294385#c2
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c3
--- Comment #3 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c4
--- Comment #4 from Silviu Marin-Caea
https://bugzilla.novell.com/show_bug.cgi?id=294385#c5
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c6
Silviu Marin-Caea
https://bugzilla.novell.com/show_bug.cgi?id=294385
Silviu Marin-Caea
https://bugzilla.novell.com/show_bug.cgi?id=294385#c7
--- Comment #7 from Daniel Gollub
https://bugzilla.novell.com/show_bug.cgi?id=294385#c8
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=294385#c9
--- Comment #9 from Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=294385#c10
--- Comment #10 from Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=294385#c11
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=294385#c12
Federico Mena Quintero
https://bugzilla.novell.com/show_bug.cgi?id=294385
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=294385#c13
--- Comment #13 from Warren Stockton
https://bugzilla.novell.com/show_bug.cgi?id=294385#c14
--- Comment #14 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c15
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=294385#c16
--- Comment #16 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c17
--- Comment #17 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=294385#c18
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c19
--- Comment #19 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=294385#c20
--- Comment #20 from Federico Mena Quintero
https://bugzilla.novell.com/show_bug.cgi?id=294385#c21
--- Comment #21 from Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=294385#c22
--- Comment #22 from Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=294385#c23
--- Comment #23 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c24
--- Comment #24 from Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=294385#c25
--- Comment #25 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c26
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=294385#c27
Will Stephenson
https://bugzilla.novell.com/show_bug.cgi?id=294385#c28
--- Comment #28 from Federico Mena Quintero
https://bugzilla.novell.com/show_bug.cgi?id=294385#c29
--- Comment #29 from Federico Mena Quintero
https://bugzilla.novell.com/show_bug.cgi?id=294385#c30
--- Comment #30 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c31
--- Comment #31 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=294385#c32
--- Comment #32 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=294385#c33
Dimitri Rizek
https://bugzilla.novell.com/show_bug.cgi?id=294385#c34
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c35
--- Comment #35 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=294385#c36
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c37
--- Comment #37 from Will Stephenson
https://bugzilla.novell.com/show_bug.cgi?id=294385#c38
--- Comment #38 from Stephan Binner
https://bugzilla.novell.com/show_bug.cgi?id=294385#c39
Bjoern Bendix
https://bugzilla.novell.com/show_bug.cgi?id=294385#c40
Sebastian Turzański
https://bugzilla.novell.com/show_bug.cgi?id=294385#c41
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c42
Darren Clarke
https://bugzilla.novell.com/show_bug.cgi?id=294385#c43
Will Stephenson
https://bugzilla.novell.com/show_bug.cgi?id=294385#c44
--- Comment #44 from Benjamin Weber
https://bugzilla.novell.com/show_bug.cgi?id=294385#c45
--- Comment #45 from Federico Mena Quintero
https://bugzilla.novell.com/show_bug.cgi?id=294385#c46
--- Comment #46 from Benjamin Weber
https://bugzilla.novell.com/show_bug.cgi?id=294385#c47
--- Comment #47 from Will Stephenson
https://bugzilla.novell.com/show_bug.cgi?id=294385#c48
Stephan Binner
https://bugzilla.novell.com/show_bug.cgi?id=294385#c49
--- Comment #49 from Will Stephenson
https://bugzilla.novell.com/show_bug.cgi?id=294385#c50
--- Comment #50 from Federico Mena Quintero
Assuming it's Flash, go to Configure Konqueror->Plugins and check that "Enabled plugins globally" in Global Settings is checked, and click the "Scan for plugins" button, then check that libflashplayer is found on the Plugins tab.
Huh... I go to the Settings / Configure Konqueror window, and there's no "Plugins" item. I only get "Behavior", "Appearance", "Previews & Meta-Data", and "Performance". How can I show the Plugins options? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=294385#c51
--- Comment #51 from Stephan Binner
https://bugzilla.novell.com/show_bug.cgi?id=294385#c52
--- Comment #52 from Will Stephenson
https://bugzilla.novell.com/show_bug.cgi?id=294385#c53
Steven Beattie
https://bugzilla.novell.com/show_bug.cgi?id=294385#c54
--- Comment #54 from Federico Mena Quintero
How did you set your KDE session? Not via selecting the KDE pattern? Do you have the kdebase3-nsplugin package installed?
(In reply to comment #52 from Will Stephenson)
I guess Stephan meant to say "How did you install your KDE session".
Installing the "KDE Base System" pattern should be sufficient.
That's what I did when installing my box, I think. I'll reinstall those packages. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=294385#c55
--- Comment #55 from Federico Mena Quintero
https://bugzilla.novell.com/show_bug.cgi?id=294385#c56
--- Comment #56 from Benjamin Weber
I'll just include the patch mentioned in comment #44; it's a hack, but there's no way for us to fix libflashplayer for real.
Presumably this won't fix opera though. Why does the problem only occur with new glib/gtk? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=294385#c57
--- Comment #57 from Dirk Mueller
But gtk_clipboard_get() fails, as gtk_init() hasn't been called first. This > is a bug in libflashplayer.
Why do you think so? What the code's intention is that it tries to figure out if gtk_init() has been called already. There are two uses: a) in gtk+ based firefox, where gtk_init() has already been called and b) in konqueror, which is not gtk+ based and therefore doesn't initialize gtk. the code above tries to figure out if it needs to call gtk_init(). it does that by calling a function that only works if gtk_init() was already called before, and if that one fails, it calls gtk_init(). the debug message "Adobe FlashPlayer: gtk_clipboard_get(GDK_SELECTION_PRIMARY); failed. Trying to call gtk_init(0,0);" is saying that, and Mike Melanson from Adobe Flash Player team has confirmed the intention of this code. However, given that it has been always that way with any version of gtk, why is it suddenly a bug in flash player that glib2 produces an endless loop? The real question was already in comment #19, and it is still unanswered: 21:15 < coolo> 215 g_cond_wait (g_once_cond, g_once_mutex); 21:15 < coolo> that loop is never exited 21:16 < coolo> IA__g_once_init_enter_impl (value_location=0xb5a8c98c) at gthread.c:214 21:18 < coolo> (gdb) print g_once_init_list->next->data 21:18 < coolo> $17 = (gpointer) 0xb5a8c98c -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=294385#c58
--- Comment #58 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c59
--- Comment #59 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=294385#c60
--- Comment #60 from Will Stephenson
https://bugzilla.novell.com/show_bug.cgi?id=294385#c61
Stephan Binner
https://bugzilla.novell.com/show_bug.cgi?id=294385#c62
--- Comment #62 from Federico Mena Quintero
What the code's intention is that it tries to figure out if gtk_init() has been called already.
Ah, but no app should need to do this. gtk_init() and friends are idempotent; calls subsequent to the first one are no-ops. Flash player should simply call gtk_init() unconditionally. Since we cannot fix it, we can simply use the patch to call gtk_init() from nspluginviewer always.
the code above tries to figure out if it needs to call gtk_init(). it does that by calling a function that only works if gtk_init() was already called before, and if that one fails, it calls gtk_init().
This is the wrong way to do things on several levels: - No code needs to know if GTK+ is initialized, as it can always call gtk_init() with no ill results. - Calling any GTK+ functions before gtk_init() is called is *documented* to be wrong. With an older glib, this will almost certainly print a warning (or it would crash if your glib was compiled with --disable-debug, or it would crash if you were running a development version of GNOME, since those make critical warnings crash automatically to catch bugs sooner - see http://mail.gnome.org/archives/desktop-devel-list/2005-November/msg00051.htm... about this). - This is like watching for EBADFD to say, "oh, I guess I should have opened the file first" :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=294385#c63
Stephan Binner
https://bugzilla.novell.com/show_bug.cgi?id=294385#c64
--- Comment #64 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=294385#c66
--- Comment #66 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=294385#c67
Rob Robster
Thanks. Updating gtk2 works fine for me. :-)
(In reply to comment #63 from Stephan Binner)
Added a patch to fix it like discussed in the upstream bug report. Verified that it fixes the problem with both Opera and Konqueror and that a GNOME desktop still works.
Hi, what shall I do to fix the bug? Where can I download the patch? Could you tell me please step by step instructions? Thank you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=294385#c68
--- Comment #68 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=294385#c69
--- Comment #69 from Rob Robster
I have submitted a patch for Online Update.
Please tell me where can I download it from! Regards. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=294385#c70
--- Comment #70 from Federico Mena Quintero
https://bugzilla.novell.com/show_bug.cgi?id=294385#c71
--- Comment #71 from Nikolay Derkach
Hi,
what shall I do to fix the bug? Where can I download the patch?
Could you tell me please step by step instructions?
Thank you.
The current factory contains fixed packages (version 2.11.6-19), note that you also have to update gtk2-32bit package if you are using x86_64. And yes, don't tell anyone, looks like this is a top-secret ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=294385#c72
Christian Boltz
participants (1)
-
bugzilla_noreply@novell.com