Plasma 5 crashes to SDDM when rebooting or shuting down

Hi all,

I’m having the following issue: Every time I reboot or shutdown from the Plasma 5 workspace it seems that Plasma “crashes”, I’m suspecting this because I’m redirected to SDDM (instead of shutting down). Also, when this happens my session is not saved.

After this, I see the following error on dmesg:

   185.369365] kactivitymanage[1461]: segfault at 7ff42f180d10 ip 00007ff42f3c469a sp 00007ffe3a55a608 error 4 in libQt5Sql.so.5.5.0[7ff42f3af000+3f000]
  185.373518] kscreen_backend[2010]: segfault at 8 ip 00007fe4ec62cde2 sp 00007ffd7cc78a30 error 4 in libQt5XcbQpa.so.5.5.0[7fe4ec5f3000+df000]

I’m running openSUSE 42.1 in a Dell Latitude E6440 laptop (Intel 4th generation graphics).

Any help is well appreciated, thanks.

Try another DM maybe??

That’s a good idea, any one that you would recommend? GDM? KDM?
Can you provide me some guide/tutorial about installing them?

Also I forgot to mention that, besides the segfault error, sometimes I’m experiencing the following error after reproducing the issue (sounds Intel graphics related):

 4316.986236] [drm:intel_set_pch_fifo_underrun_reporting [i915]] *ERROR* uncleared pch fifo underrun on pch transcoder A
 4316.986246] [drm:cpt_irq_handler [i915]] *ERROR* PCH transcoder A FIFO underrun
 4316.996771] [drm:intel_set_cpu_fifo_underrun_reporting [i915]] *ERROR* uncleared fifo underrun on pipe B
 4316.996783] [drm:ironlake_irq_handler [i915]] *ERROR* CPU pipe B FIFO underrun

Well if not installed just go to yast and install search for display manager with the description box checked that will show what you have already

For making one the default DM go to Yast-/ec/sysconfig editor desktop-displaymanager-DISPLAYMANAGER and change to one that is installed

I tried KDM and now I can reboot and shutdown succesfully.

The Intel driver errors seem gone.

However the Qt segfault error persists… should I submit a bug report?

PD: Also, trying to debug this made me realize that Plasma 5 is not saving my session, is this normal?

In KDE4 there was a switch you set to save sessions I assume the same in Plasma 5 Should be some where in configure desktop?

Probably need to. Keep one problem per report and and give the best description you can but no long stories keep it short and to the point. Oh and check to see if any other has made a report first and just add to that one if found

Which one?
kactivitymanagerd or kscreen?

You can submit a bug report if you want to, but please do so upstream at http://bugs.kde.org/.
Although the kscreen crash might be related to the graphics driver too, and the kactivitymanager crash is known I think and might already be fixed even in 5.16.0 (to be released tomorrow).

PD: Also, trying to debug this made me realize that Plasma 5 is not saving my session, is this normal?

It does save your session (by default at least, you can configure that in “Configure Desktop”->Startup and Shutdown->Session Management).

But at the moment there are still problems with Qt5/KF5 based applications in this regard. They are randomly not restored on login (seems to be a timing issue/race condition).
According to what I was able to figure out so far, they seem to be crashing when saving their state on logout because their window is already closed at that point, and are therefore not regarded as running on logout by the session management.

Other applications (including KDE4 ones) should be saved/restored correctly and reliably.

A possible workaround would be to set the session management settings to “Start with a saved session” and store the session manually before logging out (in the application menu under “Powermanagement/Session”). This should work correctly even with KF5 applications.

PS:
The kactivitymanagerd crash looks like this:
https://bugs.kde.org/show_bug.cgi?id=348194

And the kscreen crash seems to be this:
https://bugs.kde.org/show_bug.cgi?id=343674

You’re right, there are two different segfaults I will try to reproduce them again and then I will see.

Also right about the Qt5/KF5 apps not being restrored, plasma restrores firefox for example but not konsole nor dolphin.

I will try the workarround… thanks.

I’ll take a look into this.

Thank you both!