Bug 181164 - Plasma crashes when configuring autostart application
Summary: Plasma crashes when configuring autostart application
Status: RESOLVED WORKSFORME
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-18 12:05 UTC by Ruchir Brahmbhatt
Modified: 2009-05-23 17:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Autostart app icon (4.37 KB, image/jpeg)
2009-02-03 06:13 UTC, Ruchir Brahmbhatt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruchir Brahmbhatt 2009-01-18 12:05:48 UTC
Version:           4.1.96-48.7 (using Devel)
Installed from:    Compiled sources

OS: opensuse 11.1
KDE: 4.2 RC1 (using opensuse factory desktop repository)

Steps to reproduce:
1. Open configure desktop.
2. Go to Advanced.
3. Click Autostart.
4. Click Add program.
5. Select evolution.
6. This opens properties of evolution.desktop.
7. Go to Application tab.
8. Click Advanced Options.
9. Select place in system tray.
10. Save settings. 
11. Restart kde.
12. A new cashew icon appears in system tray with tooltip "Qt subapplication".
13. Click this icon.

Expected result:
Clicking this icon should show/hide evolution.

Actual result:
Plasma panel crashes/hides without backtrace and doesn't restart until kde is restarted.
Comment 1 Aaron J. Seigo 2009-01-18 23:38:01 UTC
we'll need a backtrace:

http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 2 Ruchir Brahmbhatt 2009-01-19 10:15:50 UTC
Unfortunately it doesn't generate backtrace. Panel just disappears. 
Comment 3 Dario Andres 2009-01-19 12:46:19 UTC
Does the desktop dissappear too ? (so it's a Plasma crash).. or only the panel is hidden ? Look at https://bugs.kde.org/show_bug.cgi?id=180873#c7 to know howto generate a backtrace in this case. Thanks
Comment 4 Ruchir Brahmbhatt 2009-01-19 15:03:30 UTC
I'm not able to catch the backtrace. When I follow steps mentioned on that link. After starting plasma using gdb, clicking cashew icon opens some junk window and doesn't crash plasma. I tried closing evolution and then following steps again but in that case it doesn't start evolution in systray and doesn't show icon.
Comment 5 Ruchir Brahmbhatt 2009-02-01 07:35:18 UTC
Following those steps doesn't reproduce it. However clicking system tray icon has no effect. When I right click, it see 2 menus. Clicking hide/restore in them has no effect.
Comment 6 Dario Andres 2009-02-02 22:39:21 UTC
Where are you clicking in the SystemTray plasmoid? Over an Icon? (in that case, which icon), or over another place of the plasmoid ?
Is the icon from Evolution ? Does this happen if Evolution isn't started ?
Comment 7 Ruchir Brahmbhatt 2009-02-03 06:13:58 UTC
Created attachment 30890 [details]
Autostart app icon

I'm clicking the icon appearing for autostart app as highlighted in screenshot.
It shows plasmoid icon instead of evolution. This happens only if I keep evolution configured to start automatically minimized to tray and I click that icon. This doesn't happen with other icons. Only happens in case of autostart application with systray setting.
Comment 8 Dario Andres 2009-02-03 17:35:52 UTC
Does this only happen with Evolution ? Can you test with another application during a normal run (without gdb...)... to check if it crashes too ?
Thanks
Comment 9 Ruchir Brahmbhatt 2009-02-03 18:48:09 UTC
I tried firefox instead of evolution and got same results. 
Comment 10 Ruchir Brahmbhatt 2009-03-12 08:11:01 UTC
I tried a lot to reproduce the issue and get backtrace but when I run plasma from gdb, it is not properly reproduced. It can be produced in normal run only.
Comment 11 Ruchir Brahmbhatt 2009-04-21 19:15:03 UTC
Reproducible on trunk(revision 956964).
Comment 12 Ruchir Brahmbhatt 2009-04-24 17:59:53 UTC
Further I noticed that plasma-desktop is not crashed in this case. Just panel disappears. After reproducing this bug, I checked in konsole and found that plasma-desktop was running. I had to kill and start plasma-desktop again to get panel back. I have following widgets on panel.

kickoff icon
show desktop
device notifier
taskbar
systemtray
digital clock

Following widgets on desktop.
Analog clock
notes
battery monitor
lock/logout
Comment 13 FiNeX 2009-04-26 16:12:05 UTC
On current trunk I've a crash of ksystraycmd and the configured application doesn't start.

Here is the backtrace:


Application: KSysTrayCmd (ksystraycmd), signal SIGSEGV
0x00007f214a919fd0 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7f214da49750 (LWP 6127)):
[KCrash Handler]
#5  NETRootInfo::update (this=0x268cd28, dirty_props=<value optimized out>) at /home/test/KDE4/src/kdelibs/kdeui/windowmanagement/netwm.cpp:2150
#6  0x00007f214d598d6d in KWindowSystemPrivate::activate (this=0x268cd00) at /home/test/KDE4/src/kdelibs/kdeui/windowmanagement/kwindowsystem_x11.cpp:122
#7  0x00007f214d59c3ab in KWindowSystem::connectNotify (this=0x268cb00, signal=0x4061df "2windowAdded(WId)") at /home/test/KDE4/src/kdelibs/kdeui/windowmanagement/kwindowsystem_x11.cpp:348
#8  0x00007f214c53bddf in QObject::connect () from /usr/lib/libQtCore.so.4
#9  0x0000000000403b50 in KSysTrayCmd::startClient (this=0x7fff55a7e770) at /usr/include/QtCore/qobject.h:308
#10 0x000000000040471d in KSysTrayCmd::start (this=0x268cd28) at /home/test/KDE4/src/kdebase/workspace/ksystraycmd/ksystraycmd.cpp:81
#11 0x0000000000405d5f in main (argc=2, argv=0x7fff55a7ed88) at /home/test/KDE4/src/kdebase/workspace/ksystraycmd/main.cpp:132
Comment 14 Ruchir Brahmbhatt 2009-04-26 17:30:45 UTC
@FiNeX: You're on which revision? I'm on 958058. The application starts for me but when I click systray icon, panel is gone but plasma-desktop process still live.
Comment 15 FiNeX 2009-04-26 18:03:55 UTC
I've just tried on r959568 (compiled some minutes ago) and the application doesn't start. I've only the crash on comment #13.

I'm also using:
Qt 4.5.0
X.Org 1.6.1
Nvidia driver 180.44
Comment 16 Aaron J. Seigo 2009-04-27 04:22:53 UTC
can on of those who can replicate the bug give a step by step method to reproduce this that doesn't involved restarting the desktop session? as it is, i can't reproduce the crash (though ksystraycmd seems to behave rather buggy in svn .. hum)
Comment 17 FiNeX 2009-04-27 10:06:27 UTC
This is what I've done:
1) start "systemsettigs"
2) go to "advanced"
3) select "autostart"
4) click on "add program..."
5) Select "firefox"
6) Go to "application"
7) Click onm "Advanced Options"
8) Check "place in system tray"
9) Click OK and OK again for save the new settings
10) Restart KDE

On my system nothing started and I've got a crash of "ksystraycmd" (comment #13)
Comment 18 Aaron J. Seigo 2009-04-27 22:27:34 UTC
as i noted: "that doesn't involved restarting the desktop session?"

there are too many other bugs of a more pressing nature for me to spend my time waiting through repeated log out / log in cycles.

so unless someone can find a way to replicate this without restarting the desktop for me, it'll have to wait until someone else takes it on or i find time to mess around with this.

note that the crash in comment #13 is not in plasma.
Comment 19 Ruchir Brahmbhatt 2009-04-28 09:06:13 UTC
I tried if restarting plasma-desktop helps reproducing the bug but it seems it doesn't take effect until logout/login. 

Anyone have idea where autostart program saved and can be started directly instead of logout/login?

BTW I'm going to try again after installing qt 4.5.1 and current trunk.
Comment 20 Ruchir Brahmbhatt 2009-04-28 14:58:54 UTC
I just upgraded to qt 4.5.1 and latest trunk.
Qt: 4.5.1
KDE: 4.2.70 (KDE 4.2.70 (KDE 4.3 >= 20090415))
Plasma Workspace: 0.3
kdebase: r960293
kdelibs: r960298

Now plasma or ksystraycmd is not crashing but clicking systray icon of that application toggles desktop effects(strange). 

Still the main purpose is not solved though. Which is on clicking the systray icon, the application should show/hide.
Comment 21 Aaron J. Seigo 2009-04-30 16:56:44 UTC
*** Bug 191145 has been marked as a duplicate of this bug. ***
Comment 22 Dario Andres 2009-05-23 17:42:47 UTC
As the original crash is gone I'm marking this as WORKSFORME. Thanks