You are not logged in.

#1 2012-06-19 23:23:32

caco3john
Member
Registered: 2011-11-29
Posts: 12

Best way to debug KDE process crashes

I've got a relatively fresh install of ARCH with KDE running.  However every time I reboot and log in I immediately get 2 pop-ups stating that KMix and a KDE Deamon closed unexpectedly.  The "executable" for both is listed as kdenitit4.  I'm assuming that is the app that started the failed process?  Checking the PIDs for each in the process list before closing the pop-ups show kmix and kded4 as the actual stopped processes.

Question then, what is the best way to debug this.  I know there are system logs but I'm really not that familiar with where or what to look for and really want to learn and also fix the crashes :-)   What is the best way to start.  Thanks,

John.........

Offline

#2 2012-06-20 01:21:21

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Best way to debug KDE process crashes

Are you sure it says kdenitit4? kdeinit4 would make more sense...

ls /var/logs
ls ~/.xsession-errors
ps ax | grep kdeinit4
man kdeinit4

How are you starting KDE?

I'm getting crashes from KDE at the moment - mostly kwin. These sometimes occur on login, mostly later.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2012-06-20 02:16:22

caco3john
Member
Registered: 2011-11-29
Posts: 12

Re: Best way to debug KDE process crashes

Your correct, its kdeinit4.

Looking at the man for kdeinit4 also now makes more sense as a process launcher.  Was only guessing before.  Looking at .xsession-errors it is huge and doesn't have timestamps. 

So I did a

grep -ir kdeinit4 ~/.xession-errors
grep -ir kded4 ~/.xession-errors

and only got the following:

    kdeinit4: hcontrol.c:764: snd_hctl_handle_event: Assertion `elem' failed.

    KCrash: Attempting to start /usr/bin/kded4 from kdeinit
    KCrash: Application 'kded4' crashing...

Any suggestions on what to look for?  Same thing goes for /var/logs.  Lots of files but not sure where to start looking.

Also running 'ps ax | grep kdeinit4' yields the following:

  791 ?        Ss     0:00 kdeinit4: kdeinit4 Running...                  
  792 ?        S      0:00 kdeinit4: klauncher [kdeinit] --fd=9           
  798 ?        S      0:00 kdeinit4: kglobalaccel [kdeinit]               
  824 ?        Sl     0:00 kdeinit4: ksmserver [kdeinit]                  
  900 ?        Sl     1:49 kdeinit4: plasma-desktop [kdeinit]             
  942 ?        S      0:00 kdeinit4: kaccess [kdeinit]                    
  949 ?        Sl     0:01 kdeinit4: krunner [kdeinit]                    
  950 ?        Sl     0:00 kdeinit4: nepomukserver [kdeinit]              
  961 ?        Sl     0:00 kdeinit4: kmix [kdeinit]                       
  965 ?        S      0:00 kdeinit4: klipper [kdeinit]                    
 1025 ?        Sl     0:00 kdeinit4: kded4 [kdeinit] --nocrashhandler     
 1393 ?        Rl     0:10 kdeinit4: konsole [kdeinit]                    
 1435 ?        Sl     0:01 kdeinit4: dolphin [kdeinit] --icon system-file-manager -caption Dolphin
 1600 pts/1    S+     0:00 grep kdeinit4

Again not really sure what to do with info.  Thanks so much,

John.........

Last edited by caco3john (2012-06-20 10:33:16)

Offline

#4 2012-06-20 22:25:41

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Best way to debug KDE process crashes

Look at the lines before the KCrash lines in the log. Maybe that will give you a hint as to what's causing it?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2012-06-20 23:45:07

caco3john
Member
Registered: 2011-11-29
Posts: 12

Re: Best way to debug KDE process crashes

Here is some of the lines around the 2 KCrash errors:

Known subscriber "AkonadiAgentServer" subscribes again 
void Akonadi::NotificationSource::addClientServiceName(const QString&) Notification source "AkonadiAgentServer" now serving: (":1.48", ":1.47") 
Known subscriber "AkonadiAgentServer" subscribes again 
void Akonadi::NotificationSource::addClientServiceName(const QString&) Notification source "AkonadiAgentServer" now serving: (":1.48", ":1.47", ":1.49") 
Database "akonadi" opened using driver "QMYSQL" 
Database "akonadi" opened using driver "QMYSQL" 
Known subscriber "AkonadiAgentServer" subscribes again 
void Akonadi::NotificationSource::addClientServiceName(const QString&) Notification source "AkonadiAgentServer" now serving: (":1.48", ":1.47", ":1.49", ":1.46") 
plasma-desktop(889)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
 >> KCrash: Attempting to start /usr/bin/kded4 from kdeinit
knotify(887)/phonon (KDE plugin): QDBusError("org.freedesktop.DBus.Error.NoReply", "Message did not receive a reply (timeout by message bus)") 
korgac(944)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "The name org.kde.kded was not provided by any .service files" 

knotify(887)/phonon (KDE plugin): QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name org.kde.kded was not provided by any .service files") 
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kdeinit4: hcontrol.c:764: snd_hctl_handle_event: Assertion `elem' failed.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
 >> KCrash: Application 'kded4' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
[0x2853108] main input error: ES_OUT_RESET_PCR called
KCrash: Application 'kmix' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
Known subscriber "akonadi_maildispatcher_agent" subscribes again 
Known subscriber "akonadi_maildispatcher_agent" subscribes again 
Agent instance created in separate process. 

I marked the original two KCrash's with >> to make them easier to find.  Looking a few lines down from the 2nd one I also see a KCrash for 'kmix' which is also part of the problem.  Don't really see anything else interesting.  Open to ideas.  Thanks,

John...........

Offline

#6 2012-06-21 00:43:26

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Best way to debug KDE process crashes

I suggest googling some of the more obvious strings. For example:

hcontrol.c:764: snd_hctl_handle_event: Assertion `elem' failed.
main input error: ES_OUT_RESET_PCR called

CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB