Bug 218922 - kdeinit4.exe crashes while using KDE applications on windows
Summary: kdeinit4.exe crashes while using KDE applications on windows
Status: RESOLVED FIXED
Alias: None
Product: kde-windows
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KDE-Windows
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-16 14:03 UTC by Guillaume DE BURE
Modified: 2010-03-01 15:07 UTC (History)
15 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Error message from kioslave (15.67 KB, image/jpeg)
2010-02-26 08:18 UTC, Nicolas Brisset
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume DE BURE 2009-12-16 14:03:43 UTC
Version:           3.3.4 (using 4.3.4 (KDE 4.3.4), MS Visual Studio 2008 SP1)
Compiler:          cl.exe
OS:                Microsoft Windows (unknown) release 5.2 (XP Professional x64 Edition)

I'm using kate on windows at work, because Windows is the only OS authorized here, and because kate is such an awesome text editor :)

Anyway, updated today to 4.3.4, and everytime I launch kate, I have a windows (not KDE) error message saying kdeinit4.exe crashed. This message is also displayed whenever attempting to make a file operation (open or save)

Thanks for providing the best KDE Desktop tools to a less capable OS ;)
Comment 1 Guillaume DE BURE 2009-12-16 14:47:22 UTC
Reading again my bug description, I realize I forgot to mention that kate is functional once the message closed, it's just very annoying that it appears on every file open / save.
Comment 2 Andrius 2009-12-16 16:27:13 UTC
It's happening also with mingw, after updating kde to 4.3.4. ( in home machine this does not happen, in work machine it's the first time I install kde in a non-'c:' drive, but it is not happening only with kate, but several other apps such as konqueror, etc.. )

same behaviour, kdeinit fails but apps work normally after that, work machine is also windows XP, but 32 bits ( home machine is vista )
Comment 3 Guillaume DE BURE 2009-12-17 10:07:00 UTC
Thanks for the precision. I updated the bug title to show it's not kate specific.
Comment 4 Olivier Trichet 2009-12-24 21:33:45 UTC
Hello,
This seems like the same bug as bug#219066
Comment 5 Yew Ming Chen 2010-01-04 07:19:59 UTC
I can confirm this too. I have tried both MinGW and MSVC in WinXP. Both have the same kdeinit4.exe problem.

Also, even if ignore the error and Kate launch properly, there is an error dialog that shows: "Could not start process Cannot talk to klauncher: The name org.kde.klauncher was not provided by any .service files."
Comment 6 Thomas Braun 2010-01-14 16:18:54 UTC
Same here with XP and SP3.

How can I help to fix this problem?
Comment 7 Patrick Spendrin 2010-01-14 16:52:23 UTC
looking at it there are some questions I'd have:
Please close down KDE completely, then open dbgview and a console:
What happens if you do run kdeinit4 with any of the options:
*kdeinit4 --verbose (this would just start kdeinit4, dbus and kded)
*kdeinit4 --list (this should give you some output in dbgview)
*kdeinit4 --shutdown (after you started it)
*kdeinit4 --terminate (after you started it)
Comment 8 Guillaume DE BURE 2010-01-18 11:51:38 UTC
Hmm... Is there anything I need to do to get some outputs in dbgview ? 
I just started it, then started a console, launched the specified commands. Everytime, I get the kdeinit4.exe error message, but I never get anything in dbgview.

Am I doing something wrong ?
Comment 9 Thomas Braun 2010-01-18 17:20:52 UTC
Same result here. I think I don'T have the debug version of the kde/qt libs installed. I have searched the package manager but there I haven't found debug packages.
Btw I'm using the msvc32 build.
Comment 10 Ralf Habacker 2010-01-18 18:53:51 UTC
> debug packages 

One more topic for the coming KDE on Windows developer sprint.
Comment 11 Stas 2010-01-19 10:23:59 UTC
In detailed error message it is said something about AMD, while I have Intel CPU on this computer. Is it possible that release was just compiled with some AMD64 optimizations and fails because of this?
Comment 12 Guillaume DE BURE 2010-01-19 10:49:02 UTC
Also Intel CPU here (Xeon), maybe this is a track to follow ?

FWIW, Installed unstable 4.3.90, and the bug is also there.
Comment 13 Steffen Schloenvoigt 2010-01-19 13:24:10 UTC
I have the same issue here since upgrading to 4.3.4.
I removed all configurations and KDE related files and tried again but it still crashes. 
Unfortunately there is no change with the UNSTABLE packages, they crash too!
I'm on intel (Core 2 Duo), too.
When I downgrade to 4.3.3 I don't have this problem.
Comment 14 Stas 2010-01-19 13:26:18 UTC
Maybe let's vote for this issue?
Comment 15 Thomas Braun 2010-01-19 18:45:32 UTC
I'm also using a Intel Core2 Duo CPU T9600.
Comment 16 confused 2010-01-19 21:17:32 UTC
I have this issue since I upgraded the package kdelibs from 4.3.4 to 4.3.4-1.
(After I upgraded the whole installation to 4.3.4 I noticed (one day later) that there was a new version of kdelibs.)
I'm using an Intel processor, WinXP(SP3) and the msvc32 build.
Comment 17 Thomas Braun 2010-01-20 11:27:32 UTC
From https://bugs.kde.org/show_bug.cgi?id=218922#c13:
>When I downgrade to 4.3.3 I don't have this problem.

The same here. Downgrading to 4.3.3 from 4.3.4 solved it.
Comment 18 Eric Francis 2010-01-22 00:23:57 UTC
(XP 64-bit, currently using 4.3.90 but I experienced the same thing in 4.3.4) 
I did some digging and found that the org.kde.klauncher.service file doesn't exist.  I'm not familiar with how exactly dbus works, but I assume that it should go in <KDEInstallDir>\share\dbus-1\service\ (where I found similarly-named files).  I also noticed that other files in that directories show paths to incorrect locations (c:\kde\kde-<somedir>\bin rather than <KDEInstallDir>\bin).
Comment 19 Eric Francis 2010-01-22 16:52:01 UTC
Never mind my previous comment - downgrading to 4.3.3 reveals that those files are practically the same (the only difference being the line endings - \r\n in 4.3.3 and \n in 4.3.90 - which upon changing may have fixed this issue, but resulted in dolphin and konqueror failing to start after several kdeinit4 crashes and other error dialogs and plasma-desktop showing a blank desktop with a couple of X buttons for failed widgets)
Comment 20 Chad 2010-02-03 20:43:22 UTC
I believe his is the same bug as bug#219066
Comment 21 Paul Hartman 2010-02-08 18:41:09 UTC
Same here, XP SP3, Core 2 Duo E6600 processor. Most of KDE4win apps fail with this error.
Comment 22 Stas 2010-02-15 10:17:28 UTC
Just reproduced the same with 4.4.0 version.
Comment 23 Christoph Cullmann 2010-02-17 10:39:05 UTC
Nothing Kate specific here, if many apps fail with this.
Comment 24 Andrew Manson 2010-02-19 12:23:56 UTC
i tried the suggestion to use the debug viewer and run kdeinit from the command line but the debug viewer doesn't show anything... all I get is my post mortem debugger asking if I want to use visual studio to debug the problem. 

Can I attach it to sources/symbols to find out where the error is or is the binary disassembly any use to anyone here? 

Sorry... Also confirm 4.4 with this issue on windows XP
Comment 25 Steffen Schloenvoigt 2010-02-23 11:56:34 UTC
The problem seems still to exist. I can confirm that, unfortunately.
This makes KDE on windows unusable for me and for a great amount of users for about 10 weeks now :(
If the problem was just introduced with 4.3.4 (It didn't occur before), it can't be that hard to find out the reasons. But this bug is still marked as "NEW" and doesn't seem to be overtaken by someone.

Hope that it get's fixed soon now...
Comment 26 Andrew Manson 2010-02-23 12:03:14 UTC
Myself and Patrick Spendrin are looking at the issue, which mostly means that Patrick is looking into it ;) the newest piece of the puzzle is this backtrace: 

>	ntdll.dll!_RtlLengthSid@4()  + 0x8 bytes	
 	kdeinit4.exe!0040196c() 	
 	[Frames below may be incorrect and/or missing, no symbols loaded for kdeinit4.exe]	
 	kernel32.dll!_LocalFree@4()  + 0x2b bytes	
 	45ffffff()

if anyone knows why there would be an unknown exception thrown with this backtrace then they know how to fix this bug. the exact message is: 

Unhandled exception at 0x7c9131a6 in kdeinit4.exe: 0xC0000005: Access violation reading location 0x00000001.

I'm not sure if what we're looking into warrants changing the bug status from New to Assigned or Needs Info but we are working on it.
Comment 27 Steffen Schloenvoigt 2010-02-23 14:14:18 UTC
Hi, thanks for your investigation. I really appreciate knowing that someone is working on this issue :)

Thanks, Steffen
Comment 28 Sergey Stolyarov 2010-02-25 05:36:04 UTC
Problem also occurs on my PC on my account, but on fresh account error doesn't occur. Maybe this helps. I've removed all non-standard paths from PATH variable, but didn't help.
Comment 29 Sergey Stolyarov 2010-02-25 07:02:22 UTC
And some more. Problem doesn't occur on local system account, and do occur on account from AD domain.
Comment 30 Patrick Spendrin 2010-02-25 10:33:44 UTC
Ok, Andrew and I came near to the spot where the error is, we do have a workaround now, but I hope to be able to work on a real solution this afternoon. I will make updates available in the coming (2-3) days.
Comment 31 Guillaume DE BURE 2010-02-25 13:25:48 UTC
(In reply to comment #30)
> Ok, Andrew and I came near to the spot where the error is, we do have a
> workaround now, but I hope to be able to work on a real solution this
> afternoon. I will make updates available in the coming (2-3) days.

Thanks =D ! will test as soon as available.
Comment 32 Patrick Spendrin 2010-02-25 17:44:48 UTC
After looking a bit, we also found a fix now. I will provide updated packages for 4.4.0 for both compilers tonight (these can be found on winkde.org mirror) and nightly builds will update as soon as they do work again.
Comment 33 Patrick Spendrin 2010-02-25 23:43:36 UTC
Ok, please everybody: (update to 4.4.0) and or download this http://winkde.org/pub/kde/ports/win32/releases/stable/latest/kdelibs-mingw4-4.4.0-1-bin.tar.bz2 package for mingw4 or this package http://winkde.org/pub/kde/ports/win32/releases/stable/latest/kdelibs-vc90-4.4.0-1-bin.tar.bz2 for vc90(msvc) compiler. Unpack this directly into your KDE installation directory after having closed all running KDE processes.
After that please simply retry what I wrote above: kdeinit4 --verbose, kdeinit4 --list etc.
If this fixes the issues, please give a short note.
Comment 34 Sergey Stolyarov 2010-02-26 05:29:29 UTC
Working fine for me. Bug seems to be fixed.
Comment 35 Nicolas Brisset 2010-02-26 08:10:56 UTC
Great! That problem was really making KDE on Windows unusable for me. I have just tried the fix and after unpacking with WinZip (cygwin's tar created unusable files for some reason), it works *much better*. When I browse with dolphin, I no longer get zillions of error messages. I can actually see the files and open them. Wow!

However, there is an error every now and then (haven't yet figured out whether it is linked with any specific action). I will attach the error message.
And the management of network drives still is very unintuitive. But that's a different point...
Comment 36 Nicolas Brisset 2010-02-26 08:18:52 UTC
Created attachment 41126 [details]
Error message from kioslave
Comment 37 Patrick Spendrin 2010-02-26 18:18:57 UTC
SVN commit 1096439 by sengels:

fix crashes in kdeinit4 when using Active Directory

BUG: 218922

 M  +19 -1     kdecore/util/kuser_win.cpp  
 M  +12 -1     kinit/kinit_win.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1096439
Comment 38 Patrick Spendrin 2010-02-26 18:23:45 UTC
SVN commit 1096444 by sengels:

backport r1096439
CCBUG: 218922

 M  +19 -1     kdecore/util/kuser_win.cpp  
 M  +12 -1     kinit/kinit_win.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1096444
Comment 39 confused 2010-02-27 16:26:15 UTC
This fixes the bug for me. Thanks for the fix!
Comment 40 Guillaume DE BURE 2010-03-01 13:52:58 UTC
Thanks for the correction, and keep up the good work :)
Comment 41 Steffen Schloenvoigt 2010-03-01 15:07:12 UTC
Hi, just tested it today and it works! Thank you very much for your great work!