! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Upgrade to Xubuntu 19.10 fails. Final result is a continually crashing xfwm4
Status:
RESOLVED: MOVED

Comments

Description Jeffery Small 2020-01-13 22:28:26 CET
Xubuntu upgrade have been very unstable for me during the past few upgrades.  I finally felt forced to upgrade from 19.04 to 19.10 yesterday.  As the upgrade was progressing normally, all of a sudden my two screens went blank.  I waited for the upgrade process to recover but no luck.  The upgrade was hung and there was nothing to do but login from a networked machine and force a reboot.  It seems that every upgrade messes with the graphics drivers that render my Nvidia K4000 GPU hobbled or inoperable. Eventually, with some additional work reloading graphics drivers from the command-line I was able to get the system up in a crippled state without a window manager running.  I did get synaptic started and discovered many packages which had failed to upgrade.  I manually upgraded everything and rebooted, but there was little improvement as I could get a desktop on one of my two screens, but no window manager (xfce4) and no panel (xfce4-panel) which means no ability to conveniently launch programs, no way to move or close windows, display right-click or pull-down menus, and no way to get overlapping windows to expose what's below.

Here is what I find:

Related Running Processes:
    xfce4-session
    /usr/bin/ssh-agent /usr/bin/im-launch startxfce4
    xfce4-panel --display :0.0 --sm-client-id 20da3c5bf-1f04-466a-aff5-038a666ce87f
    xfsettingsd --display :0.0 --sm-client-id 25a6c25ee-17d3-4acb-8330-a810ce1c1c24
    xfdesktop --display :0.0 --sm-client-id 270dae5dd-c0df-4c6e-9e50-8b5342b6df91
    xfce4-power-manager --restart --sm-client-id 284cadb86-e11c-4fac-bf79-b94245fff3e8
    /usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd
    xscreensaver -no-splash

Notice there is no xfwm4.  Every attempt to start this fails and there are core files in /var/crash:
    -rw-r----- 1 jeff whoopsie 3211964 Jan 12 20:22 _usr_bin_xfwm4.1000.crash
    -rw-r--r-- 1 jeff whoopsie             0 Jan 12 20:22 _usr_bin_xfwm4.1000.upload
--------------------------------------------------------------------
aport.log messages:
    ERROR: apport (pid 5079) Sun Jan 12 20:22:38 2020: called for pid 5044, signal 5, core limit 0, dump mode 1
    ERROR: apport (pid 5079) Sun Jan 12 20:22:38 2020: executable: /usr/bin/xfwm4 (command line "xfwm4 --display :0.0 --sm-client-id 27f2d4ead-e803-4b48-9999-bcf20ff5baad")
    ERROR: apport (pid 5079) Sun Jan 12 20:22:38 2020: gdbus call error: Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

    ERROR: apport (pid 5079) Sun Jan 12 20:22:38 2020: debug: session gdbus call:
    ERROR: apport (pid 5079) Sun Jan 12 20:22:39 2020: wrote report /var/crash/_usr_bin_xfwm4.1000.crash

    [messages repeat 5 times]
--------------------------------------------------------------------
kern.log messages:
    Jan 12 20:22:38 dymaxion kernel: [   54.589712] traps: xfwm4[5044] trap int3 ip:7fc4d1afb8e5 sp:7fff265927e0 error:0 in libglib2.0.so.0.6200.1[7fc4d1ac0000+83000]

    [message repeats 5 times]
--------------------------------------------------------------------
syslog messages:
    Jan 12 20:22:34 dymaxion dbus-daemon[4857]: [session uid=1000 pid=4857] Activating service name='org.xfce.Xfconf' requested by ':1.2' (uid=1000 pid=4863 comm="xfconf-query -c xfwm4 -p /general/theme -s Greybir" label="unconfined")
    Jan 12 20:22:34 dymaxion dbus-daemon[4857]: [session uid=1000 pid=4857] Successfully activated service 'org.xfce.Xfconf
    Jan 12 20:22:38 dymaxion kernel: [   54.589712] traps: xfwm4[5044] trap int3 ip:7fc4d1afb8e5 sp:7fff265927e0 error:0 in libglib2.0.so.0.6200.1[7fc4d1ac0000+83000]

    [message repeat 4 times]

    Jan 12 20:22:47 dymaxion whoopsie-upload-all[5097]: Collecting info for /var/crash/_usr_bin_xfwm4.1000.crash...
--------------------------------------------------------------------

During my testing I marked both libglib2.00:i386 (which supplies /usr/lib/i386-linux-gnu/libgthread-2.0.so.0.6200.1) and xfwm4 for reinstallation, but this did not fix anything.

The following packages are all installed, although I do not think this is likely causing any problem here.  I list them in case something should have been removed during the failed upgrade.
    libglib2.0-cil-dev      2.12.40.2
    libglib-2.0.0-0          2.1.0-1
    libglib2.0-bin           2.62.1-1
    libglib2.0-cil            2.12.40.2
    libglib2.0.0-0          2.62.1-1
    libglib2.0-0:i386     2.62.1-1
    libglib2.0-data        2.62.1-1
    libglibmm-2.4-1v5  2.60.0.1

    xfwm4                    4.14.0-1
    xfce4                      4.14
    xfce4-panel            4.14.1-0ubuntu1
    xfdesktop4             4.14.1-1
--------------------------------------------------------------------
    
I'm unclear why the running panel process will not display, but it may require a window manager to display this.  However, I just saw that a pannel-wrapper also crashed.  I've placed the two crash files in dropbox which can be retreived here:

https://www.dropbox.com/s/37546wgbwc6zq08/_usr_bin_xfwm4.1000.crash?dl=0

https://www.dropbox.com/s/mzcrgrvnep7v6bb/_usr_lib_x86_64-linux-gnu_xfce4_panel_wrapper-2.0.1000.crash?dl=0
-------------------------------------------------------------------

I'm currently stuck and would appreciate any pointers as to what to do to get this resolved.
Comment 1 Olivier Fourdan editbugs 2020-01-14 09:23:39 CET
do you have xfconf installed?
Comment 2 Jeffery Small 2020-01-14 18:00:12 CET
Yes, package version 4.14.1-1.
Comment 3 Olivier Fourdan editbugs 2020-01-14 18:26:21 CET
I do not use Ubuntu and I do not have the same executable/symbols that you have on your system, there isn't much I can do with the crash files you provided.

What we're after is a backtrace on the process that failed, see if you can get one out of the crash files (see https://askubuntu.com/questions/434431/how-can-i-read-a-crash-file-from-var-crash maybe)
Comment 4 Jeffery Small 2020-01-14 18:45:07 CET
OK, I'll look into that and report back.

A few minutes ago I looked up and the xfce4-panel had displayed for the first time on my crippled desktop.  I have no idea what caused that to happen and if it was something I did.  It appeared to be fully functional.  I rebooted the machine to see if it would continue to reappear, but alas it's gone again, even though the panel and plugin processes are running as seen below.  I report this just in case it gives you a clue as to what might be going on.

4660 xfce4-panel --display :0.0 --sm-client-id 20da3c5bf-1f04-466a-aff5-038a666ce87f

4690 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-1.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libmailwatch.so 16 16777224 mailwatch Mail Watcher Check mail from multiple mailboxes

4692 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libindicator-plugin.so 37 16777225 indicator Indicator Plugin Provides a panel area for Unity indicators. Indicators allow applications and system services to display their status and interact with the user. 

5377 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libweather.so 15 16777227 weather Weather Update Show current weather conditions 

5378 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libpulseaudio-plugin.so 39 16777228 pulseaudio PulseAudio Plugin Adjust the audio volume of the PulseAudio sound system 

5381 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libindicator-plugin.so 33 16777233 indicator Indicator Plugin Provides a panel area for Unity indicators. Indicators allow applications and system services to display their status and interact with the user. 

5527 /usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins/libpulseaudio-plugin.so 40 16777234 pulseaudio PulseAudio Plugin Adjust the audio volume of the PulseAudio sound system 
6649 less -x4 -+e zz_panel-cmds
Comment 5 Jeffery Small 2020-01-14 19:30:36 CET
[Ignore the last "less" line of previous comment.]

-------------------------------------------------------------------------------
Selected output from running apport-retrace:

apport-retrace --gdb --sandbox system --cache ~/.cache/apport-retrace \
        /var/crash/_usr_bin_xfwm4.1000.crash
-------------------------------------------------------------------------------
Core was generated by `xfwm4 --display :0.0 --sm-client-id 27f2d4ead-e803-4b48-9999-bcf20ff5baad'.

Program terminated with signal SIGTRAP, Trace/breakpoint trap.
#0  0x00007f8941aac8e5 in _g_log_abort ()
    from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
[Current thread is 1 (Thread 0x7f89405bcf00 (LWP 4651))]

(gdb) bt
#0  0x00007f8941aac8e5 in _g_log_abort ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f8941aaf2bc in g_log_writer_default ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8941aad527 in g_log_structured_array ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8941aadf44 in g_log_structured_standard ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f8941e1bbea in _gdk_x11_display_error_event ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#5  0x00007f8941e28bb3 in gdk_x_error ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#6  0x00007f893e37d3a6 in ?? ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libGLX_nvidia.so.0
#7  0x00007f893e375a10 in glXBindTexImageEXT ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libGLX_nvidia.so.0
#8  0x000055a6be01ebaf in bind_glx_texture (buffer=0,
    screen_info=0x55a6be6e1cf0) at compositor.c:1553
#9  paint_all (buffer=0, region=12584569, screen_info=0x55a6be6e1cf0)
    at compositor.c:2138
#10 repair_screen (screen_info=0x55a6be6e1cf0) at compositor.c:2420
#11 compositor_timeout_cb (data=0x55a6be6e1cf0) at compositor.c:2449
#12 0x00007f8941aa7248 in g_timeout_dispatch ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007f8941aa671e in g_main_context_dispatch ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007f8941aa6ad0 in g_main_context_iterate.isra ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007f8941aa6dc3 in g_main_loop_run ()
   from /tmp/apport_sandbox_9f0gxxa2/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007f8942104c2d in gtk_main () at ../../../../gtk/gtkmain.c:1325
#17 0x000055a6be0142ce in main (argc=<optimized out>, argv=<optimized out>)
    at main.c:795
-------------------------------------------------------------------------------

I'll leave the debuger session running.  Let me know if you require any other information.
Comment 6 Jeffery Small 2020-01-14 19:34:17 CET
I am currently using the nvidia-driver-430 package.

There is a nvidia-driver-435 package available and I am thinking of trying this next.  I will wait to see if you need additional information before installing this.
Comment 7 Jeffery Small 2020-01-14 22:41:48 CET
One more tidbit of information.  Without window decorations, I cannot move or resize any of the windows.  However, I was surprised to see that if, as root, I started synaptic, even though it didn't have decorations, I was able to left-click anywhere in the titlebar area and drag the window around.  You may understand better why this is possible, but I thought i would mention it.
Comment 8 Jeffery Small 2020-01-15 07:05:37 CET
I thought I might have this licked.  I switched to the X11 default graphic driver and rebooted.  The system came up and I had a desktop on the secondary monitor (:0.1) with two panels and a the window manager running.  Apparently the X11 driver had a very old cached configuration from years ago when I had desktops running on two screens each with separate panels, and the scale was all off because I had since upgraded from a pair of 1K to 4K monitors.  I still do not understand why it wasn't using the /etc/X11/xorg.conf setup which works properly with the nvidia drivers.  But the window manager worked.

I made this driver changes because I knew that the configuration for the nvidia-driver-430 package was all screwed up.  As I said above, the upgrade failed in the middle when both of my screens went blank.  The upgrade messed up something horribly.  I spent quite a bit of time trying to repair the 430 and 418 versions of the driver which seemed to have all sorts of improper intertwined dependencies.  I was never able to get a clean setup, so I then decided to just install the latest nvidia-driver-435.  This went like a charm and in the process it cleaned up all the old nvidia versions and then configured itself properly.

I rebooted expecting things to work, but no, everything was still the same as reported above.  xfwm4 crashed and the identical messages were in the log files.  I cleared out the old debugging session and ran a new one on the new crash.  The back trace  was identical to that reported above.

So what we seem to know is that the nvidia drivers are calling something different or in a way that the X11 driver does not.  I hope this helps to narrow things down.
Comment 9 Olivier Fourdan editbugs 2020-01-15 08:59:44 CET
> I had a desktop on the secondary monitor (:0.1)
Are you using Zaphod mode?

Can you please attach your xorg.conf used with the NVidia driver?
Comment 10 Olivier Fourdan editbugs 2020-01-15 09:03:29 CET
Most likely a dupe of bug 15852
Comment 11 Jeffery Small 2020-01-15 20:34:47 CET
I have dual monitors attached to my Nvidia K4000 graphics card.  I was/am using Zaphod mode (i.e., not Xinerama) successfully up through Xubuntu 18.04.  The upgrade to 18.10 totally broke everything -- as reported here

https://bugzilla.xfce.org/show_bug.cgi?id=15116

After many discussions with you about this and your explanation about certain features in xfwm4, I first decided to upgrade to 19.04, upgraded my monitors from 1K to new 4K displays, and then worked diligently to get a working configuration where I has a single xfce4 desktop and panel running on screen :0.0, but was able to launch various programs from there to display on screen :0.1, even though there was no desktop running on that screen.  Thanks to your window manager code, the apps on screen :0.1 were fully functional (moveable, resizable, etc.) and I was even able to use my Meta-Left and Right Arrow keys to navigate to different workspaces on that screen.  It wasn't perfect, but it gave me back 75% of my previous functionality.

I waited as long as I could, but decided with the end of support for 19.04, I had to upgrade to 19.10 and that led to this current very bad situation where the window manager isn't working at all.  Here is the current xorg.conf file which is the same one I was using successfully under 19.04.

I don't understand why the default X11 graphic driver wouldn't recognize the specs here and set the proper screen resolution at the very least.  There does seem to be some caching of old settings happening when that driver is used.

------------------------------------------------------------------------------------------------
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 430.50

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" LeftOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "LG"
    ModelName      "27UK650-W"
    HorizSync       30.0 - 135.0
    VertRefresh     56.0 - 61.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "LG"
    ModelName      "27UK650-W"
    HorizSync       30.0 - 135.0
    VertRefresh     56.0 - 61.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro K4000"
    BusID          "PCI:4:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro K4000"
    BusID          "PCI:4:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "DP-3: 3840x2160_60 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "DP-2: 3840x2160_60 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
------------------------------------------------------------------------------------------------

Also note that there is now no audio on this system.  I assume that this is not related to the window manager problem, but the PulseAudio panel plugin is also failing as noted in the log messages above.  I can run pavucontrol and see that audio is successfully playing internally to the "HDMI/DisplayPort 2 (plugged in)" which is apparently the primary monitor on the Nvidia card which has no speakers, but audio us not routed to the "Line Out (plugged in)" channel.  This channel works, because when I move the PulseAudio volume slider, it sounds a bunch of blips on the attached speakers.

I'm reporting this here just in case it triggers any other thoughts.

Thanks for looking into this.
Comment 12 Jeffery Small 2020-01-20 03:31:27 CET
I have new news, but am following up over at bug report #15852 where I think it is more useful and appropriate.   

https://bugzilla.xfce.org/show_bug.cgi?id=15852
Comment 13 Jeffery Small 2020-01-20 21:07:48 CET
Yesterday, after commenting out Screen1 from the ServerLayout section of /etc/X11/xorg.conf  (see notes under bugid 15852), I was still without sound.  However, this morning I find that proper audio operation has also been restored.  I have no explanation for this.  :-/
Comment 14 Git Bot editbugs 2020-05-29 12:33:51 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/372.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16374

Reported by:
Jeffery Small
Reported on: 2020-01-13
Last modified on: 2020-05-29

People

Assignee:
Olivier Fourdan
CC List:
1 user

Version

Version:
4.14.0

Attachments

Additional information