<div dir="ltr"><div><div><div><br>Hello,<br><br>recently lightdm was updated in my linux distribution and I was unable to logout from my desktop.<br>The Xorg server does not terminate and does not switches back to the X11 chooser.<br><br>Xorg is started with:<br><br>>/usr/lib/xorg/Xorg :1 -dpi 100 -terminate -indirect x11chooser<br><br><br>[1] The lightdm.log file gives a critical signal emit error for r2441 in the moment I exit my desktop:<br><br>>lightdm[19287]: [+35.97s] DEBUG: Seat (null): Session stopped<br>>lightdm[19287]: [+35.97s] DEBUG: Seat (null): Stopping display server, no sessions require it<br>>lightdm[19287]: [+35.97s] DEBUG: Seat (null): Display server stopped<br>>lightdm[19287]: [+35.97s] DEBUG: Seat (null): Active display server stopped, starting greeter<br>>lightdm[19287]: [+35.97s] DEBUG: Seat (null): Stopping; failed to start a greeter<br>>lightdm[19287]: [+35.97s] DEBUG: Seat (null): Stopping<br>>lightdm[19287]: [+35.97s] DEBUG: Seat (null): Stopped<br>>lightdm[19287]: [+35.97s] WARNING: instance with invalid (NULL) class pointer<br>>lightdm[19287]: [+35.97s] CRITICAL: g_signal_emit_valist: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed<br><br>The relevant code section is in seat.c:<br><br>>   /* Stop the display server if no-longer required */<br>>   if (display_server && !display_server_get_is_stopping (display_server) &&<br>>        !SEAT_GET_CLASS (seat)->display_server_is_used (seat, display_server))<br>>    {<br>>       l_debug (seat, "Stopping display server, no sessions require it");<br>>       display_server_stop (display_server);<br>>    }<br>><br>>   g_signal_emit (seat, signals[SESSION_REMOVED], 0, session);<br>>   g_object_unref (session);<br><br><br><br></div>The attached patch fixes the problem for me, but I don't know how commit 2441 has caused it.<br></div><div>The display_server_stop() will call seat_stop() which will finalize/frees the seat class in both cases (r2440+1)<br></div><div>Thus r2440 should have the same behaviour [1] as r2441, but r2440 works fine.<br><br></div><div>regards,<br></div><br></div>Martin<br><br><br></div>