Bug 185741 - plasma crashes and can't be restarted due to geometry change
Summary: plasma crashes and can't be restarted due to geometry change
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 185858 186056 186390 186421 186427 186503 186521 186559 186614 186777 186861 186987 187133 187164 187168 187229 187391 188498 190047 190178 193120 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-27 20:28 UTC by Jon Nelson
Modified: 2009-05-20 15:16 UTC (History)
27 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 Jon Nelson 2009-02-27 20:28:22 UTC
Version:            (using KDE 4.2.0)
Installed from:    SuSE RPMs


This is the rpm I am using:
kdebase4-workspace-4.2.0-206.1
built for openSUSE 11.1.


I've been using 4.2.something without incident for a few days when I had to take my laptop to another location. While there, things worked great but I was using the laptop's built-in display (1920x1200) instead of the (physically larger if fewer pixels) external LCD monitor which is 1600x1050.

When I got back home and tried to use the external LCD plasma would crash on startup, and could not be restarted, and KDE could not be logged out of except with 'killall startkde'.

After obtaining a traceback (3 or 4 crashes later as I needed to install the appropriate debug packages), I latched on to part of the traceback that seemed to indicate a geometry issue with the panel.

A quick grep led me to a few files which had strange settings in them regarding the geometry.

I do not know *which* of the following 3 files was responsible for the change, but I changed all three.

The file .kde4/share/config/systemsettingsrc had *two* Height and *two* Width entries under the MainWindow section:


  [MainWindow]
  Height 1050=808
  Height 1200=844
  MenuBar=Disabled
  Width 1680=850
  Width 1920=860

I removed the Height 1200 and the Width 1920 entries. I do not know if this matters.

The second file I modified is:
.kde4/share/config/plasma-overlay-appletsrc

I removed the 'geometry' line which read:

geometry=0,0,1920,1200

The last file I modified, and the one I think is ultimately responsible for the issue, had several sections modified:

.kde4/share/config/plasma-appletsrc

under the [Containments][1]

I removed the geometry entry which read:

geometry=0,0,1920,1200

Under the [Containments][3][Configuration] section I removed the
maximumSize and minimumSize entries, which read:

maximumSize=1920,39
minimumSize=1920,39



As I see it, there are (at least) 2 issues:

1. plasma should not *crash* if the geometry it was using is no longer appropriate

2. if plasma crashes at startup, it should be able to be re-run. I have had plasma crash several minutes into a session and it was restartable then, but in this case it refused to restart citing some type of dbus error.


Lastly, I hope somebody can explain the meaning of entries like 'Width 1680=850' to me. I don't think this is an issue I just want to understand.




Application: Plasma Workspace (plasma), signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
0x00007f29286b4ce1 in nanosleep () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f292df22790 (LWP 5861))]

Thread 3 (Thread 0x7f290e316950 (LWP 5862)):
#0  0x00007f29290f0d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f2929361f29 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f292cbdc66c in ?? () from /usr/lib64/libQtNetwork.so.4
#3  0x00007f2929360f72 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f29290ed070 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f29286e610d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f290d6b6950 (LWP 5863)):
#0  0x00007f29286df662 in select () from /lib64/libc.so.6
#1  0x00007f2929429366 in ?? () from /usr/lib64/libQtCore.so.4
#2  0x00007f2929360f72 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f29290ed070 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f29286e610d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f292df22790 (LWP 5861)):
[KCrash Handler]
#5  0x00007f29294634e1 in QTimer::stop() () from /usr/lib64/libQtCore.so.4
#6  0x00007f292dc1cc80 in PanelView::updatePanelGeometry (this=0xc81b90) at /usr/src/debug/kdebase-workspace-4.2.0/plasma/shells/desktop/panelview.cpp:543
#7  0x00007f292dc1e255 in PanelView::pinchContainment (this=0xc81b90, screenGeom=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.2.0/plasma/shells/desktop/panelview.cpp:689
#8  0x00007f292dc1f409 in PanelView (this=0xc81b90, panel=<value optimized out>, id=<value optimized out>, parent=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.2.0/plasma/shells/desktop/panelview.cpp:243
#9  0x00007f292dc23a82 in PlasmaApp::createView (this=0x6217e0, containment=0x7504b0) at /usr/src/debug/kdebase-workspace-4.2.0/plasma/shells/desktop/plasmaapp.cpp:619
#10 0x00007f292dc23c61 in PlasmaApp::containmentAdded (this=0x0, containment=0x7504b0) at /usr/src/debug/kdebase-workspace-4.2.0/plasma/shells/desktop/plasmaapp.cpp:663
#11 0x00007f292dc25de7 in PlasmaApp::qt_metacall (this=0x6217e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3606ad60)
    at /usr/src/debug/kdebase-workspace-4.2.0/build/plasma/shells/desktop/plasmaapp.moc:96
#12 0x00007f292945d454 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#13 0x00007f292d8b672f in Plasma::Corona::containmentAdded(Plasma::Containment*) () from /usr/lib64/libplasma.so.3
#14 0x00007f292d8b81bb in Plasma::Corona::loadLayout(QString const&) () from /usr/lib64/libplasma.so.3
#15 0x00007f292d8b8f02 in Plasma::Corona::initializeLayout(QString const&) () from /usr/lib64/libplasma.so.3
#16 0x00007f292dc22838 in PlasmaApp::corona (this=0x6217e0) at /usr/src/debug/kdebase-workspace-4.2.0/plasma/shells/desktop/plasmaapp.cpp:517
#17 0x00007f292dc249a5 in PlasmaApp::setupDesktop (this=0x6217e0) at /usr/src/debug/kdebase-workspace-4.2.0/plasma/shells/desktop/plasmaapp.cpp:255
#18 0x00007f292dc25e08 in PlasmaApp::qt_metacall (this=0x6217e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3606b1a0)
    at /usr/src/debug/kdebase-workspace-4.2.0/build/plasma/shells/desktop/plasmaapp.moc:94
#19 0x00007f292945d454 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#20 0x00007f29294636ff in ?? () from /usr/lib64/libQtCore.so.4
#21 0x00007f2929457da3 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#22 0x00007f2929b2f1bd in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#23 0x00007f2929b36f8a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#24 0x00007f292c32ec6b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#25 0x00007f2929449091 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#26 0x00007f29294751c0 in ?? () from /usr/lib64/libQtCore.so.4
#27 0x00007f292947158d in ?? () from /usr/lib64/libQtCore.so.4
#28 0x00007f2925aef0db in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f2925af28ad in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f2925af2a6b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f29294714ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#32 0x00007f2929bbf9bf in ?? () from /usr/lib64/libQtGui.so.4
#33 0x00007f29294479a2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#34 0x00007f2929447b2d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#35 0x00007f2929449ffd in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#36 0x00007f292dc1475b in kdemain (argc=1, argv=0x7fff3606bf08) at /usr/src/debug/kdebase-workspace-4.2.0/plasma/shells/desktop/main.cpp:54
#37 0x00007f2928631586 in __libc_start_main () from /lib64/libc.so.6
#38 0x0000000000400819 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 1 Dario Andres 2009-03-02 00:50:48 UTC
*** Bug 185858 has been marked as a duplicate of this bug. ***
Comment 2 andrew 2009-03-02 04:37:27 UTC
I am having this exact same issue.  The same error code also comes up whenever Plasma is restarted manually.
Comment 3 Aaron J. Seigo 2009-03-04 00:41:40 UTC
already fixed in trunk and the branch, will be in 4.3.0 and 4.2.2; in the meantime you can remove the geometry settings in plasmarc
Comment 4 Aaron J. Seigo 2009-03-05 01:20:25 UTC
*** Bug 186056 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2009-03-06 20:44:57 UTC
*** Bug 186197 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2009-03-07 00:12:25 UTC
*** Bug 186390 has been marked as a duplicate of this bug. ***
Comment 7 Gerard 2009-03-07 02:14:19 UTC
I arrived there from a link from the other plasma crash bug in wich i commented and I dont understand how Plasma can't be restarted. Plasma restart is System Restart? I only have the plasma crash after login but if I end sesion with Ctrl Alt <-- and choose Restart I can do it. This is what it means?

(In reply to comment #3)
> already fixed in trunk and the branch, will be in 4.3.0 and 4.2.2; in the
> meantime you can remove the geometry settings in plasmarc

Besides aaron says is fixed in trunk and the branch. As Im not a programmer and HERE I dont find a definition of this technical terms means I search in internet and find this definition from Stackoverflow: http://stackoverflow.com/questions/16142/what-does-branch-tag-and-trunk-really-mean:

<Hmm, not sure I agree with Nick re tag being similar to a branch. A tag is just a marker

Trunk 
would be the main body of development, originating from the the start of the project until the present.

Branch 
will be a copy of code derived from a certain point in the trunk that is used for applying major changes to the code while preserving the integrity of the code in the trunk. If the major changes work according to plan, they are usually merged back into the trunk. 

Tag 
will be a point in time on the trunk or a branch that you wish to preserve. The two main reasons for preservation would be that either this is a major release of the software, whether alpha, beta, RC or RTM, or this is the most stable point of the software before major revisions on the trunk were applied.

In open source projects, major branches that are not accepted into the trunk by the project stakeholders can become the bases for forks -- e.g., totally separate projects that share a common origin with other source code.>

So according to this the major change would be done to the BRANCH in order to preserve the integrity of the code in the trunk. So why Aaron did it to the TRUNK too ? Is for he tested it and worked? mm..
Comment 8 Musikolo 2009-03-07 10:31:15 UTC
Hi, 

I have had the very same problem too ( https://bugs.kde.org/show_bug.cgi?id=186390 ). After some trial and error, I have found a way to fix it. The problem was in the ~/.kde4/share/config/plasma-appletsrc file. What I have done is to replace the wrong resolution settings for the new ones. Since I used to have 1280x1024 and now 1024x800, I have issued the next couple of commands:

sed -i's/1024/800/g' ~/.kde4/share/config/plasma-appletsrc
sed -i's/1280/1024/g' ~/.kde4/share/config/plasma-appletsrc

ยก...and voila!

I think KDE should ask the user that new resolution settings have been detected. Then if the user wants KDE to change it, proceed.

Best regards! ;-)
Comment 9 Dario Andres 2009-03-07 14:23:06 UTC
*** Bug 186421 has been marked as a duplicate of this bug. ***
Comment 10 Chani 2009-03-07 22:17:19 UTC
*** Bug 186427 has been marked as a duplicate of this bug. ***
Comment 11 Chani 2009-03-07 22:21:57 UTC
gerard: "trunk and branch" here means both the unreleased (what will be 4.3)
and released (4.2.x) versions of kde. when we say "branch" we usually mean "the
latest stable branch" :)
...like aaron said, "will be in 4.3.0 and 4.2.2"
Comment 12 Gerard 2009-03-08 03:19:42 UTC
CHANI, as you can see in this post I didnt wrote ALL IN CAPS ! only 1 word.. XD

Correct me please if Im mistaken: 

branch=KDE 4.2.X
trunk=KDE 4.3.X
Comment 13 Chani 2009-03-08 08:05:15 UTC
*** Bug 186503 has been marked as a duplicate of this bug. ***
Comment 14 Gerard 2009-03-08 09:41:16 UTC
THANKX CHANI YOU EXPLAIN VERY WELL MAN! I UNDERSTAND YOU !! YOURE ALL KINDNESS !! UH? YOUR SO FUSSY MAN...
Comment 15 Dario Andres 2009-03-08 14:31:09 UTC
(In reply to comment #12)
> CHANI, as you can see in this post I didnt wrote ALL IN CAPS ! only 1 word.. XD
> 
> Correct me please if Im mistaken: 
> 
> branch=KDE 4.2.X
> trunk=KDE 4.3.X

You are right.
I'm not really sure about your last comment to Chani. (comment 14) . Comment 13 from chani is an automatically generated comment.
Comment 16 Dario Andres 2009-03-08 15:17:56 UTC
*** Bug 186521 has been marked as a duplicate of this bug. ***
Comment 17 Dario Andres 2009-03-08 16:10:32 UTC
*** Bug 186559 has been marked as a duplicate of this bug. ***
Comment 18 Gerard 2009-03-09 01:34:35 UTC
I said that as Chani didnt answer me and said that line that sometimes you say. I didnt know that was autogenerated and didnt knopw how kdebugs system works so SORRY CHANI AND THANX DARIO (I say that in CAPs only for really FEEL SORRY ;))...
Comment 19 Gerard 2009-03-09 01:39:12 UTC
Besides Im FOOL cause u answer perfectly me this here: https://bugs.kde.org/show_bug.cgi?id=186324#c8 so , again SORRY! sorry, iM STUPID.., god..SHAME ON ME...
Comment 20 Christophe Marin 2009-03-09 09:14:23 UTC
*** Bug 186614 has been marked as a duplicate of this bug. ***
Comment 21 Dario Andres 2009-03-10 23:57:43 UTC
*** Bug 186777 has been marked as a duplicate of this bug. ***
Comment 22 Armin Berres 2009-03-11 11:33:09 UTC
We are hit by this bug in Debian, and it is quite nasty.

Are there isolated svn commits we can backport to our 4.2.1 packages? If yes, which revisions?
Comment 23 Armin Berres 2009-03-11 11:36:26 UTC
Oh, and FWIW deleting ~/.kde4/share/config/plasma-appletsrc just helps once. When plasma is restarted with the appletsrc it just created it crashes again. Using my external monitor with the larger resolution works though ;)
Comment 24 mbonertz 2009-03-11 15:40:17 UTC
I am still unable to find a work around when logging in using NX. It doesn't seem to matter what files I remove from .kde it just plain won't come up.

Are we to assume that this will be fixed in the next version?
Comment 25 Armin Berres 2009-03-11 15:47:31 UTC
Apparently this is fixed in the 4.2.2 branch. See svn revisions 185736, and #185736.

for Debian users this will be fixed with a -2 upload of kdebase-workspace.
Comment 26 Tomas 2009-03-11 22:51:18 UTC
(In reply to comment #25)
> Apparently this is fixed in the 4.2.2 branch. See svn revisions 185736, and
> #185736.
> 
> for Debian users this will be fixed with a -2 upload of kdebase-workspace.

I hope one day SUSE will show same speed of implementation of proper SVN changes. I'm impressed.
Comment 27 Dario Andres 2009-03-11 23:22:00 UTC
*** Bug 186861 has been marked as a duplicate of this bug. ***
Comment 28 jamese 2009-03-12 00:54:30 UTC
In comment 25, That should be SVN rev 934863

http://websvn.kde.org/?view=rev&revision=934863
Comment 29 Dario Andres 2009-03-14 13:05:16 UTC
*** Bug 186987 has been marked as a duplicate of this bug. ***
Comment 30 Dario Andres 2009-03-14 22:09:06 UTC
*** Bug 187133 has been marked as a duplicate of this bug. ***
Comment 31 Dario Andres 2009-03-14 22:28:39 UTC
*** Bug 187164 has been marked as a duplicate of this bug. ***
Comment 32 Dario Andres 2009-03-14 22:32:49 UTC
*** Bug 187168 has been marked as a duplicate of this bug. ***
Comment 33 Dario Andres 2009-03-15 15:54:32 UTC
*** Bug 187229 has been marked as a duplicate of this bug. ***
Comment 34 Dario Andres 2009-03-17 15:48:39 UTC
*** Bug 187391 has been marked as a duplicate of this bug. ***
Comment 35 Dario Andres 2009-03-30 23:24:43 UTC
*** Bug 188498 has been marked as a duplicate of this bug. ***
Comment 36 Pino Toscano 2009-04-19 12:34:54 UTC
*** Bug 190047 has been marked as a duplicate of this bug. ***
Comment 37 Dario Andres 2009-04-21 17:23:47 UTC
*** Bug 190178 has been marked as a duplicate of this bug. ***
Comment 38 Glenn Tanner 2009-05-20 15:16:47 UTC
*** Bug 193120 has been marked as a duplicate of this bug. ***