On yakkety, a unity crash and respawn kills all windows

Bug #1632386 reported by Stéphane Graber
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
unity (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

So it used to be that when unity/compiz crash, which sadly happens to me about once a week, compiz would get respawned, causing maybe a few seconds of the session being frozen but then having everything back to normal.

This is unfortunately not the case with Yakkety. When the same issue happened to me again earlier, compiz did get respawned properly but I lost all my open windows.

I don't believe that this is the same issue as https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1613297 since compiz crashing means it'll be respawned by whatever manages it and that's typically done in the exact same process group, which is pretty different from killing compiz and spawning a new one from somewhere completely different in the process tree.

This may be related to the switch away from upstart user sessions over to systemd user sessions and the way systemd tracks and kills tasks.

I suspect this can be reproduced by killing (possibly with SIGSEG) unity-panel-service or even just compiz itself. Here it's usually unity-panel-service that's misbehaving, dies and takes compiz with it.

Changed in unity (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

I cannot reproduce this. With "pkill -e -SEGV compiz" I get:

Okt 12 10:55:36 pid1 systemd[1001]: Starting Notification regarding a crash report...
Okt 12 10:55:36 pid1 systemd[1001]: Started Notification regarding a crash report.
Okt 12 10:55:44 pid1 systemd[1001]: unity7.service: Main process exited, code=dumped, status=11/SEGV
Okt 12 10:55:44 pid1 systemd[1001]: unity7.service: Unit entered failed state.
Okt 12 10:55:44 pid1 systemd[1001]: unity7.service: Failed with result 'core-dump'.
Okt 12 10:55:44 pid1 systemd[1001]: Starting Notification regarding a crash report...
Okt 12 10:55:44 pid1 systemd[1001]: unity7.service: Service hold-off time over, scheduling restart.
Okt 12 10:55:44 pid1 systemd[1001]: Stopped target User systemd services for the Ubuntu graphical session.
Okt 12 10:55:44 pid1 systemd[1001]: Stopping User systemd services for the Ubuntu graphical session.
Okt 12 10:55:44 pid1 systemd[1001]: Stopped Unity Shell v7.
Okt 12 10:55:44 pid1 systemd[1001]: Starting Unity Shell v7...

and then a lot of spew from compiz itself, but the session target or other units are unaffected. I also get all windows back (plus the apport crash notification). "pkill -ef -SEGV unity-panel-service" does not even produce any screen flicker, but it just restarts.

So maybe that is a duplicate of bug 1613297 after all?

Can you reproduce this somehow? If so, please run "journalctl -f" on the side and copy&paste the output. Thanks!

Changed in unity (Ubuntu):
status: New → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

No response in a month, so marking this a duplicate for now. Please unduplicate as appropriate if it's something different after all.

Changed in unity (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
Revision history for this message
kpp (podshumok) wrote :
Download full text (10.4 KiB)

```
$ DISPLAY=:0 compiz --replace

compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend : gsettings
compizconfig - Info: Integration : true
compizconfig - Info: Profile : unity
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Info: Loading plugin: opengl
compiz (core) - Info: Starting plugin: opengl
compiz (core) - Info: Loading plugin: place
compiz (core) - Info: Starting plugin: place
compiz (core) - Info: Loading plugin: regex
compiz (core) - Info: Starting plugin: regex
compiz (core) - Info: Loading plugin: resize
compiz (core) - Info: Starting plugin: resize
compiz (core) - Info: Loading plugin: session
compiz (core) - Info: Starting plugin: session
compiz (core) - Info: Loading plugin: snap
compiz (core) - Info: Starting plugin: snap
compiz (core) - Info: Loading plugin: vpswitch
compiz (core) - Info: Starting plugin: vpswitch
compiz (core) - Info: Loading plugin: wall
compiz (core) - Info: Starting plugin: wall
compiz (core) - Info: Loading plugin: animation
compiz (core) - Info: Starting plugin: animation
compiz (core) - Info: Loading plugin: commands
compiz (core) - Info: Starting plugin: commands
compiz (core) - Info: Loading plugin: compiztoolbox
compiz (core) - Info: Starting plugin: compiztoolbox
compiz (core) - Info: Loading plugin: copytex
compiz (core) - Info: Starting plugin: copytex
compiz (core) - Info: Loading plugin: fade
compiz (core) - Info: Starting plugin: fade
compiz (cor...

Revision history for this message
kpp (podshumok) wrote :
Download full text (76.4 KiB)

Variant with killed session:

Approximate steps to reproduce:
1) fresh login (no compiz --replace)
2) run firefox, some electron-based apps and chromium
3) go full screen in chromium
4) try to get out of full screen mode - you can't
5) try to run compiz --replace from virtual console (ALT+f1)
freeze at
compiz (core) - Info: Loading plugin: core
compiz (core) - Info: Starting plugin: core
6) run kill -KILL for compiz initial process
got rest of compiz --replace output:
compiz (core) - Info: Loading plugin: ccp
compiz (core) - Info: Starting plugin: ccp
compizconfig - Info: Backend : gsettings
compizconfig - Info: Integration : true
compizconfig - Info: Profile : unity
compiz (core) - Info: Loading plugin: composite
compiz (core) - Info: Starting plugin: composite
compiz (core) - Info: Loading plugin: opengl
compiz (core) - Info: Starting plugin: opengl
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 1761 requests (1761 known processed) with 170 events remaining.

all windows killed, lightdm prompts login
some windowless processes from "Startup Applications" are still running (and continue running after login)

journalctl

Jun 04 17:25:48 kpp-hpp-system repowerd[1044]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/s
eat0), ActiveSession=(c6,/org/freedesktop/login1/session/c6)
Jun 04 17:25:48 kpp-hpp-system repowerd[1044]: LogindSessionTracker: activate_session(c6)
Jun 04 17:25:58 kpp-hpp-system dbus-daemon[2378]: Activating service name='com.canonical.Unity.Scope.File.Gdrive'
Jun 04 17:25:58 kpp-hpp-system dbus-daemon[2378]: Successfully activated service 'com.canonical.Unity.Scope.File.Gdrive'
Jun 04 17:25:59 kpp-hpp-system compiz[18207]: WARN 2017-06-04 17:25:59 unity.iconloader IconLoader.cpp:756 Unable to load
 icon file:///home/kpp at size -1x22: Error opening file /home/kpp: Is a directory
Jun 04 17:25:59 kpp-hpp-system compiz[18207]: WARN 2017-06-04 17:25:59 unity.iconloader IconLoader.cpp:756 Unable to load
 icon file:///home/kpp at size -1x30: Error opening file /home/kpp: Is a directory
Jun 04 17:25:59 kpp-hpp-system compiz[18207]: WARN 2017-06-04 17:25:59 unity.iconloader IconLoader.cpp:264 Unable to load
 icon . GThemedIcon application-x-raw-disk-image application-x-generic at size 88
Jun 04 17:26:02 kpp-hpp-system gnome-keyring-daemon[18397]: asked to register item /org/freedesktop/secrets/collection/log
in/28, but it's already registered
Jun 04 17:26:02 kpp-hpp-system gnome-keyring-d[18397]: asked to register item /org/freedesktop/secrets/collection/login/28
, but it's already registered
Jun 04 17:26:02 kpp-hpp-system compiz[18207]: [19255:19295:0604/172602.711410:ERROR:connection.cc(1954)] Cookie sqlite err
or 14, errno -2: unable to open database file, sql: -- sqlite3_open()
Jun 04 17:26:02 kpp-hpp-system compiz[18207]: [19255:19295:0604/172602.7...

Revision history for this message
kpp (podshumok) wrote :

(actually I'm on zesty, but I believe it's the same bug)

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unity (Ubuntu) because there has been no activity for 60 days.]

Changed in unity (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.