Bug 240047 - Plasma Crash with VLC media player
Summary: Plasma Crash with VLC media player
Status: RESOLVED DUPLICATE of bug 241509
Alias: None
Product: plasma4
Classification: Plasma
Component: scriptengines (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-30 08:04 UTC by Anna
Modified: 2010-09-07 06:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
VLC with taskbar icon option activated (174.85 KB, image/jpeg)
2010-06-04 01:16 UTC, Anna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anna 2010-05-30 08:04:11 UTC
Application: plasma-desktop (0.3)
KDE Platform Version: 4.4.3 (KDE 4.4.3)
Qt Version: 4.7.0
Operating System: Linux 2.6.32-22-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
Whenever I launch VLC media Player, I get the main window and a secondary window which only shows the "close" button and a big "X" on the title. If I close the program by clicking in the "close" button of the main window, it closes ok, but if I click on the "close" button of this strange secondary window, I get a Plasma crash.

This is what Konsole shows:

VLC media player 1.0.6 Goldeneye
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 10 (X_UnmapWindow)
  Resource id:  0x3800037
X Error: RenderBadPicture (invalid Picture parameter) 172
  Extension:    152 (RENDER)
  Minor opcode: 7 (RenderFreePicture)
  Resource id:  0x15a
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x3800037
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 4 (X_DestroyWindow)
  Resource id:  0x3800037

-------------------------



The crash can be reproduced every time.

 -- Backtrace:
Application: Área de trabajo de Plasma (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f11eee18760 (LWP 3647))]

Thread 3 (Thread 0x7f11c4afa710 (LWP 3650)):
#0  0x00007f11ebdb9f53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f11e87604a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f11e87608fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f11ed3fd996 in QEventDispatcherGlib::processEvents (this=0x252c730, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f11ed3d0f72 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f11ed3d134c in QEventLoop::exec (this=0x7f11c4af9db0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f11ed2dcb6b in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:495
#7  0x00007f11ed3b0df8 in QInotifyFileSystemWatcherEngine::run (this=0x264a3e0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f11ed2dfa4e in QThreadPrivate::start (arg=0x264a3e0) at thread/qthread_unix.cpp:266
#9  0x00007f11ed04d9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f11ebdc66cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f11c0303710 (LWP 3660)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f11ed2e062b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x1f00e30, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1f00e30, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f11c9e0adbb in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtCore.so
#4  0x00007f11caa8b030 in PyEval_EvalFrameEx () from /usr/lib/libpython2.6.so.1.0
#5  0x00007f11caa8cd60 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#6  0x00007f11caa12d60 in ?? () from /usr/lib/libpython2.6.so.1.0
#7  0x00007f11ca9e52e3 in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#8  0x00007f11ca9f6cef in ?? () from /usr/lib/libpython2.6.so.1.0
#9  0x00007f11ca9e52e3 in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#10 0x00007f11caa85193 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.6.so.1.0
#11 0x00007f11c9b51d3b in ?? () from /usr/lib/pymodules/python2.6/sip.so
#12 0x00007f11c9df8080 in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtCore.so
#13 0x00007f11c9e2a372 in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtCore.so
#14 0x00007f11ed2dfa4e in QThreadPrivate::start (arg=0x2049180) at thread/qthread_unix.cpp:266
#15 0x00007f11ed04d9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#16 0x00007f11ebdc66cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#17 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f11eee18760 (LWP 3647)):
[KCrash Handler]
#5  0x00007f11caaab772 in Py_Finalize () from /usr/lib/libpython2.6.so.1.0
#6  0x00007f11cae48eb5 in ?? () from /usr/lib/kde4/kpythonpluginfactory.so
#7  0x00007f11ed3ebd2a in QObjectCleanupHandler::clear (this=0x1d5ec20) at kernel/qobjectcleanuphandler.cpp:140
#8  0x00007f11ed3ebd74 in ~QObjectCleanupHandler (this=0x1, __in_chrg=<value optimized out>) at kernel/qobjectcleanuphandler.cpp:86
#9  0x00007f11ebd19262 in __run_exit_handlers (status=1) at exit.c:78
#10 *__GI_exit (status=1) at exit.c:100
#11 0x00007f11ec5b1b78 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:745
#12 0x00007f11ed936298 in KApplication::xioErrhandler (this=0x193c190, dpy=0x195e360) at ../../kdeui/kernel/kapplication.cpp:408
#13 0x00007f11ee25a7fe in _XIOError () from /usr/lib/libX11.so.6
#14 0x00007f11ee262355 in ?? () from /usr/lib/libX11.so.6
#15 0x00007f11ee262c07 in _XEventsQueued () from /usr/lib/libX11.so.6
#16 0x00007f11ee24b40b in XEventsQueued () from /usr/lib/libX11.so.6
#17 0x00007f11ec5ecbfc in x11EventSourceCheck (s=0x195bf00) at kernel/qguieventdispatcher_glib.cpp:87
#18 0x00007f11e875fb0a in g_main_context_check () from /lib/libglib-2.0.so.0
#19 0x00007f11e87604c3 in ?? () from /lib/libglib-2.0.so.0
#20 0x00007f11e87608fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#21 0x00007f11ed3fd943 in QEventDispatcherGlib::processEvents (this=0x18cdd70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#22 0x00007f11ec5eca3e in QGuiEventDispatcherGlib::processEvents (this=0x1, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#23 0x00007f11ed3d0f72 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#24 0x00007f11ed3d134c in QEventLoop::exec (this=0x7fffda06c270, flags=) at kernel/qeventloop.cpp:201
#25 0x00007f11ed3d6359 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#26 0x00007f11de2adfb2 in kdemain () from /usr/lib/libkdeinit4_plasma-desktop.so
#27 0x00000000004070f3 in launch (argc=1, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=0, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x40a4f9 "0") at ../../kinit/kinit.cpp:717
#28 0x0000000000407cb0 in handle_launcher_request (sock=8, who=<value optimized out>) at ../../kinit/kinit.cpp:1209
#29 0x000000000040823a in handle_requests (waitForPid=0) at ../../kinit/kinit.cpp:1402
#30 0x0000000000408e22 in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at ../../kinit/kinit.cpp:1845

Possible duplicates by query: bug 240042, bug 219186.

Reported using DrKonqi
Comment 1 Aaron J. Seigo 2010-06-02 04:17:15 UTC
when you see this "strange secondary window", if you run xwininfo from a konsole window and then click on that window, what is the output?
Comment 2 Anna 2010-06-02 04:38:30 UTC
(In reply to comment #1)

Hi

First of all, thanks for the quick reply

This is the output I get:

xwininfo: Window id: 0x1e00de2 "plasma-desktop"

  Absolute upper-left X:  0
  Absolute upper-left Y:  994
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1680
  Height: 56
  Depth: 32
  Visual: 0x23
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x1e00001 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+994  -0+994  -0-0  +0-0
  -geometry 1680x56+0-0
Comment 3 Anna 2010-06-03 00:50:35 UTC
I should add more information:

Two days ago I installed KDE 4.4.80 (KDE 4.5 Beta1) and the problem remains. I also uninstalled (completely) VLC and its plugins and re-insnstalled, and it's still the same.

I'm also experiencing the same problem with Banshee.

Please let me know if you need any additional information or screenshots.

Thanks a lot
Comment 4 Aaron J. Seigo 2010-06-03 19:18:38 UTC
i just installed vlc to hopefully replicate this ... and i'm not seeing it. screenshots would be great, and any additional information as to how to reproduce the issue would be more than welcome.

on the off chance it is system tray related: when vlc starts, is there an entry for it in the system tray? if you turn off "Show system tray window" in the Preferences dialog (under the Tools menu) and restart vlc, does the "mystery window" persist?
Comment 5 Anna 2010-06-04 01:16:10 UTC
Created attachment 47654 [details]
VLC with taskbar icon option activated
Comment 6 Anna 2010-06-04 01:26:03 UTC
Hi

Please dismiss my previous comment. I was trying to attach the screenshots not knowing that by uploading them, a comment was posted automatically.

Your off chance was absolutely correct. I disabled the system tray icon option in both applications and the strange window went away.

Anyways, here I leave you the links for the screenshots I took. My system is in Spanish, so I have pointed out the menu options just in case.

1) VLC with system tray icon option activated and the strange secondary window: http://h.imagehost.org/0309/Screen_1.jpg

2) VLC with system tray icon option disabled: http://h.imagehost.org/0536/Screen_2.jpg

3) Banshee with system tray icon option activated and the strange secondary window: http://h.imagehost.org/0936/Screen_3.jpg

4) Banshee with system tray icon option disabled:http://a.imagehost.org/0241/Screen_4.jpg

Thanks a lot for your help!

regards
Comment 7 Aaron J. Seigo 2010-06-04 01:38:33 UTC
ok, so it is related to the system tray. (huzzah for wild guess, hm? ;) and it only happens with certain applications. are you using kwin for the window manager? what's interesting is that in both cases the icon also has an incorrect background in the system tray. something is failing in the embedding of those trays .....
Comment 8 Anna 2010-06-04 02:19:16 UTC
Well... this is embarrassing... 

I am certain that I'm using Kwin and that I don't have compiz installed on my system. I tried to double check it, but with the new distribution of options in System Settings, I just can't find it... so we'll have to take my word on this.

Regarding the issues with the system tray, I used to have a similar problem with emesene 1.6-dev PPA-r1991 (KDE 4.4.3). When the system tray icon option was enabled, it showed there, but instead of the regular icon, I just saw a white square which didn't respond if I clicked on it. First I "fixed" it by downgrading to the previous version, but then (like a month after) I removed it and re-installed it and the problem was fixed.

Is this a general bug or did I just break something?

thanks
Comment 9 Marco Martin 2010-06-14 18:02:53 UTC
also, the bt seems related to python.
what plasmoids do you run? default ones or also something else? (python based i suppose)
Comment 10 Anna 2010-06-15 02:40:36 UTC
Back then when I reported this issue, I was using the following plasmoids:

- System Tray 1.0 (Alexander Rodin) [Embeded In lower panel]
- Task Manger 1.0 (Christina Mollekopf) [Embeded In lower panel]
- Lancelor Launcher 1.9.5 (Ivan Cukic) [Embeded In lower panel]
- System Monitor 1.0 (Petri Damsten)
- Show Desktop 1.0 (Petri Damsten) [Embeded In lower panel]
- Trashbin 1.0 (Marco Martin) [Embeded In lower panel]
- Plasma Pyweather 1.6 (Hardik Mehta)
- Digital Clock 1.0 (Riccardo Laconeli) [Embeded In lower panel]
- Wifi Signal Strenght Meter 0.2 (Mark Jaroski)

I say "back then" because after the update I downloaded yesterday from Kubuntu Beta Backports, this is the least of my problems...
Now all those plasmoids which weren't embeded are gone, no matter if I restore them after login, they just go away after  loging out. I also have no sound and I can't connect to the internet unless I launch knetworkmanager as root.

But this is expected, since I downloaded beta versions. Regarding these new issues, I'll just wait and learn.

About the issue that concerns us here, I also saw it happen with Kmplayer but only when opening a media file and it kept happening even with the system tray icon option disabled.

Thanks for your help

Regards!
Comment 11 Aaron J. Seigo 2010-09-07 06:59:30 UTC

*** This bug has been marked as a duplicate of bug 241509 ***