Bug 304233

Summary: The panel window opens empty (not a crash). Console error: krusader(3404)/kdecore (KLibrary)...
Product: [Applications] krusader Reporter: Alejandro Jakubi <jakubi>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: bushido76, jan_lepper, krusader-bugs-null
Priority: NOR    
Version First Reported In: 2.4.0-beta1 "Migration"   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of Krusader panel
debug output to terminal with all kdebugdialog options set

Description Alejandro Jakubi 2012-07-29 08:32:43 UTC
On Ubuntu 12.04 Krusader 2.4.0-beta1 "Migration" suddenly began failing on start (after working more or less fine for two months or so). The failure is that the panel windows appears empty. It is not a crash. The menu is visible and all the other windows seem to work fine, including Help, Settings and UserActions.
Launched from the console, the error message appears:
krusader(7997)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkonsolepart.so"

This behaviot is fully reproducible now. Even after a cool reboot. The only change is the PID. After a while (a timeout I guess), more error messages appear in the console like:

krusader(7926) KWidgetItemDelegateEventListener::eventFilter: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets! 
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x4c00034
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x4c00034
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x4c00047
krusader(7926)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkonsolepart.so"

Closing from the window (pressing "X" button) also works. And if launched from the console, the prompt returns. 




Reproducible: Always

Steps to Reproduce:
1.Start Krusader in whatever form: from the console, etc
2.
3.
Actual Results:  
The panel window opens empty (see above).

Expected Results:  
The panel window opens correctly as before.

It sounds to me like some configuration has changed, so that some component is no longer found. But I cannot identify any cause for such a change.
Comment 1 Jan Lepper 2012-09-24 15:22:14 UTC
Could you please provide a screenshot of how it looks ?
Also you can get more output on the termial by enabling 'krusader' in kdebugdialog (in case you didn't do that already).
Comment 2 Alejandro Jakubi 2012-09-25 04:08:44 UTC
Created attachment 74152 [details]
Screenshot of Krusader panel
Comment 3 Alejandro Jakubi 2012-09-25 04:12:06 UTC
Comment on attachment 74152 [details]
Screenshot of Krusader panel

As you see, the panel window opens empty.
Comment 4 Alejandro Jakubi 2012-09-25 04:13:28 UTC
Comment on attachment 74152 [details]
Screenshot of Krusader panel

As you see, the panel window opens empty.
Comment 5 Alejandro Jakubi 2012-09-25 04:48:16 UTC
Created attachment 74153 [details]
debug output to terminal  with all kdebugdialog options set

No, I have not made any debugging with kdebugdialog yet. Actually, I have stopped using this Ubuntu installation shortly after this problem appeared (I am using Linux Mint 13 now in another partition).
Comment 6 Jan Lepper 2012-09-25 08:52:04 UTC
On Tue, 25 Sep 2012 04:48:16 +0000
Alejandro Jakubi <jakubi@df.uba.ar> wrote:

> https://bugs.kde.org/show_bug.cgi?id=304233
> 
> --- Comment #5 from Alejandro Jakubi <jakubi@df.uba.ar> ---
> Created attachment 74153 [details]
>   --> https://bugs.kde.org/attachment.cgi?id=74153&action=edit
> debug output to terminal  with all kdebugdialog options set
> 
> No, I have not made any debugging with kdebugdialog yet. Actually, I
> have stopped using this Ubuntu installation shortly after this
> problem appeared (I am using Linux Mint 13 now in another partition).
> 

Unfortunately the debug output doesn't give any hints - although it
made me aware an unrelated problem - thanks for that ;-).
On the screenshot the menubar isn't shown as you said in your first
comment.
But if I understand you correctly, this doesn't happen anymore on your
current system ?
Comment 7 Alejandro Jakubi 2012-09-25 09:42:05 UTC
(In reply to comment #6)
> But if I understand you correctly, this doesn't happen anymore on your
> current system ?

No, it is not correct, this problem happens right now. The screenshot and debug log were produced a few hours ago at your request. 

This system has several partitions with multiple boot (by grub). Ubuntu 12.04 was the first Linux distro installed in one of them. But I have stopped using it, mainly because of this problem with Krusader. So, for now, I have switched my main use to Linux Mint 13, installed in another partition (and some more distros are planed for installation). 

is there any other test that could be more informative?  If I were to bet, I would say that it is something related to X-Windows, the .Xdefaults file, X-fonts, or something like that. But it is just a guess...
Comment 8 Jan Lepper 2012-09-25 10:27:20 UTC
On Tue, 25 Sep 2012 09:42:05 +0000
Alejandro Jakubi <jakubi@df.uba.ar> wrote:

> https://bugs.kde.org/show_bug.cgi?id=304233
> 
> --- Comment #7 from Alejandro Jakubi <jakubi@df.uba.ar> ---
> (In reply to comment #6)
> > But if I understand you correctly, this doesn't happen anymore on
> > your current system ?
> 
> No, it is not correct, this problem happens right now. The screenshot
> and debug log were produced a few hours ago at your request. 
> 
> This system has several partitions with multiple boot (by grub).
> Ubuntu 12.04 was the first Linux distro installed in one of them. But
> I have stopped using it, mainly because of this problem with
> Krusader. So, for now, I have switched my main use to Linux Mint 13,
> installed in another partition (and some more distros are planed for
> installation). 
> 
> is there any other test that could be more informative?  If I were to
> bet, I would say that it is something related to X-Windows,
> the .Xdefaults file, X-fonts, or something like that. But it is just
> a guess...
> 

What comes to my mind:

different video driver
different qt style
export QT_GRAPHICSSYSTEM=raster
test if it happens under a different user account
Comment 9 Alejandro Jakubi 2012-09-27 05:40:27 UTC
I have created a fresh user account, where the Krusader panel window started OK (after the initial setting screens). It seems to me that this verification rules out graphics driver issues, while confirming that something in the configuration screwed up. 
Do you agree? If so, what differences would you suggest start looking at?
Comment 10 Alejandro Jakubi 2012-09-27 05:44:16 UTC
By the way, I have not observed so far any other application affected by a similar problem.
Comment 11 Jan Lepper 2012-09-27 09:15:57 UTC
Yes, it seems to be a configuration issue.
I suggest the following tests:
rename ~/.kde/share/config/krusaderrc
rename ~/.kde/share/apps/krusader/
rename ~/.kde/
If you haven't done so, test if other Qt(or KDE) applications misbehave
too.
Comment 12 Alejandro Jakubi 2012-09-29 01:49:03 UTC
No similar misbehavior occurs with e.g. QtOctave or KWrite.
I have renamed  ~/.kde/share/config/krusaderrc, started Krusader and the panel window started OK (after the initial setting screens). So, what to look at in this file?
Comment 13 Jan Lepper 2012-09-29 09:40:03 UTC
On Sat, 29 Sep 2012 01:49:03 +0000
Alejandro Jakubi <jakubi@df.uba.ar> wrote:

> https://bugs.kde.org/show_bug.cgi?id=304233
> 
> --- Comment #12 from Alejandro Jakubi <jakubi@df.uba.ar> ---
> No similar misbehavior occurs with e.g. QtOctave or KWrite.
> I have renamed  ~/.kde/share/config/krusaderrc, started Krusader and
> the panel window started OK (after the initial setting screens). So,
> what to look at in this file?
> 

Delete the 'Startup' section (this stores which tabs were opened and
their browsing history) - ignore possible warnings about the config file
being binary.
Comment 14 Jan Lepper 2012-09-29 09:44:43 UTC
On Sat, 29 Sep 2012 11:40:09 +0200
jan <jan_lepper@gmx.de> wrote:

> On Sat, 29 Sep 2012 01:49:03 +0000
> Alejandro Jakubi <jakubi@df.uba.ar> wrote:
> 
> > https://bugs.kde.org/show_bug.cgi?id=304233
> > 
> > --- Comment #12 from Alejandro Jakubi <jakubi@df.uba.ar> ---
> > No similar misbehavior occurs with e.g. QtOctave or KWrite.
> > I have renamed  ~/.kde/share/config/krusaderrc, started Krusader and
> > the panel window started OK (after the initial setting screens). So,
> > what to look at in this file?
> > 
> 
> Delete the 'Startup' section (this stores which tabs were opened and
> their browsing history) - ignore possible warnings about the config
> file being binary.

PS: you need to delete ALL sections of the form [Startup][foo][bar].
Comment 15 Alejandro Jakubi 2012-09-30 08:06:47 UTC
OK. I have deleted the [Startup] and [Startup][foo][bar] sections (no warning from the nano editor, called by mc). Then, I have started Krusader and the panel window opened fine, almost as it was before this problem began (likely the diferences arising because some default is being used instead of the deleted configured items).

So, what could be said about the origin of the problem at this point?
Comment 16 Jan Lepper 2012-10-02 10:08:19 UTC
On Sun, 30 Sep 2012 08:06:47 +0000
Alejandro Jakubi <jakubi@df.uba.ar> wrote:

> https://bugs.kde.org/show_bug.cgi?id=304233
> 
> --- Comment #15 from Alejandro Jakubi <jakubi@df.uba.ar> ---
> OK. I have deleted the [Startup] and [Startup][foo][bar] sections (no
> warning from the nano editor, called by mc). Then, I have started
> Krusader and the panel window opened fine, almost as it was before
> this problem began (likely the diferences arising because some
> default is being used instead of the deleted configured items).
> 
> So, what could be said about the origin of the problem at this point?
> 

OK, now we know something in the Startup section is at fault.
Next I would try only deleting entries directly under [Startup] and
leaving [Startup][...].
If that doesn't fix it, delete [Startup][Left/Right Tab
Bar][Tabs][TabX] and sub-sections one after the other to
identify the tab at fault.
Comment 17 Tom 2012-10-03 07:42:24 UTC
Hello,

I can confirm this issue in 2.40. I experienced this problem several times in the last year. At the moment I can start krusader as root but not with my other user account. Renaming the krusaderrc file "solved" the problem. So it is definately problem in the config file or in reading the config at startup. Please tell me how could I support your analysis. It would be great to solve the problem in 2.50... ;)

Tom
Comment 18 Tom 2012-10-03 07:57:46 UTC
Hello guys,

I narrowed the problem down. 

It's caused by the config-parameter "Show Terminal Emulator=true" in the section "[Startup]". When I remove the entry in the krusaderrc-file, everything is fine again.

Tom
Comment 19 Alejandro Jakubi 2012-10-03 10:00:36 UTC
I can confirm that removing the line:
Show Terminal Emulator=true
from the section [Startup] solved the problem for my krusaderrc file. 

I guess that I have set this option while experimenting on options because of the other bug that the terminal emulator could not be set for a user action.
Comment 20 Jan Lepper 2013-02-09 17:29:43 UTC
On Wed, 03 Oct 2012 10:00:36 +0000
Alejandro Jakubi <jakubi@df.uba.ar> wrote:

> https://bugs.kde.org/show_bug.cgi?id=304233
> 
> --- Comment #19 from Alejandro Jakubi <jakubi@df.uba.ar> ---
> I can confirm that removing the line:
> Show Terminal Emulator=true
> from the section [Startup] solved the problem for my krusaderrc file. 
> 
> I guess that I have set this option while experimenting on options
> because of the other bug that the terminal emulator could not be set
> for a user action.
> 

Sorry for the delay.
I think I have nailed down the cause: different
config sections are used for saving and loading of the splitter sizes.
Also there is no proper check against invalid values.
If you still have the config file which triggers the bug, could you
please tell me the value of [Private]: "Terminal Emulator Splitter
Sizes" (in case it exists) ?
Comment 21 Jan Lepper 2013-02-27 17:11:16 UTC
Git commit 9a6e4ab904fb70fbcd449a8d596e0261ab3f39ef by Jan Lepper.
Committed on 27/02/2013 at 18:10.
Pushed by janlepper into branch 'master'.

FIXED: [ 304233 ] empty main view on startup / FIXED: main view splitter sizes are not restored
use config group passed to KrusaderView::start() for loading splitter sizes instead of "Private"
also add better checks against invalid values

M  +2    -0    ChangeLog
M  +15   -8    krusader/krusaderview.cpp

http://commits.kde.org/krusader/9a6e4ab904fb70fbcd449a8d596e0261ab3f39ef