[Desktop-packages] [Bug 1964037] Re: gnome-shell crashes when attempting to enable second monitor on second GPU (Nvidia >= 495) in a Wayland session

2022-03-22 Thread Daniel van Vugt
** No longer affects: gnome-shell (Ubuntu)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1964037

Title:
  gnome-shell crashes when attempting to enable second monitor on second
  GPU (Nvidia >= 495) in a Wayland session

Status in Mutter:
  Unknown
Status in mutter package in Ubuntu:
  In Progress

Bug description:
  This is on my weird desktop setup, with one monitor plugged into an
  AMD card and one into an NVIDIA card.

  When using the Wayland session, by default Shell will come up on the
  monitor connected to the AMD card, and the second (NVIDIA) monitor
  will be blank. Attempting to enable the second monitor in Display
  Settings will immediately and reproducibly crash gnome-shell.

  This is trivial for me to reproduce, so if you need patches tested I
  can easily do so.

  ProblemType: Crash
  DistroRelease: Ubuntu 22.04
  Package: gnome-shell 41.3-1ubuntu1
  ProcVersionSignature: Ubuntu 
5.15.0+bcachefs.git2026.1fa97551d-1.1-generic 5.15.2
  Uname: Linux 5.15.0+bcachefs.git2026.1fa97551d-1-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu78
  Architecture: amd64
  CasperMD5CheckResult: pass
  CrashCounter: 1
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Mar  8 09:37:51 2022
  DisplayManager: gdm3
  ExecutablePath: /usr/bin/gnome-shell
  InstallationDate: Installed on 2021-11-02 (125 days ago)
  InstallationMedia: Ubuntu 21.10.0 2021.10.19 amd64 "bcachefs" (20211028)
  ProcCmdline: /usr/bin/gnome-shell
  ProcEnviron:
   LANG=en_AU.UTF-8
   LANGUAGE=en_AU:en
   PATH=(custom, user)
   SHELL=/usr/bin/fish
   XDG_RUNTIME_DIR=
  RelatedPackageVersions: mutter-common 41.3-3ubuntu1
  Signal: 5
  SourcePackage: gnome-shell
  StacktraceTop:
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   meta_monitor_mode_foreach_crtc () at /lib/x86_64-linux-gnu/libmutter-9.so.0
  Title: gnome-shell crashed with signal 5
  UpgradeStatus: Upgraded to jammy on 2021-11-02 (124 days ago)
  UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
  separator:

To manage notifications about this bug go to:
https://bugs.launchpad.net/mutter/+bug/1964037/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1964037] Re: gnome-shell crashes when attempting to enable second monitor on second GPU (Nvidia >= 495) in a Wayland session

2022-03-18 Thread Daniel van Vugt
Long term we are hoping for an Nvidia driver that doesn't fail GBM in
hybrid setups.

** Changed in: mutter (Ubuntu)
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1964037

Title:
  gnome-shell crashes when attempting to enable second monitor on second
  GPU (Nvidia >= 495) in a Wayland session

Status in Mutter:
  Unknown
Status in gnome-shell package in Ubuntu:
  Triaged
Status in mutter package in Ubuntu:
  In Progress

Bug description:
  This is on my weird desktop setup, with one monitor plugged into an
  AMD card and one into an NVIDIA card.

  When using the Wayland session, by default Shell will come up on the
  monitor connected to the AMD card, and the second (NVIDIA) monitor
  will be blank. Attempting to enable the second monitor in Display
  Settings will immediately and reproducibly crash gnome-shell.

  This is trivial for me to reproduce, so if you need patches tested I
  can easily do so.

  ProblemType: Crash
  DistroRelease: Ubuntu 22.04
  Package: gnome-shell 41.3-1ubuntu1
  ProcVersionSignature: Ubuntu 
5.15.0+bcachefs.git2026.1fa97551d-1.1-generic 5.15.2
  Uname: Linux 5.15.0+bcachefs.git2026.1fa97551d-1-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu78
  Architecture: amd64
  CasperMD5CheckResult: pass
  CrashCounter: 1
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Mar  8 09:37:51 2022
  DisplayManager: gdm3
  ExecutablePath: /usr/bin/gnome-shell
  InstallationDate: Installed on 2021-11-02 (125 days ago)
  InstallationMedia: Ubuntu 21.10.0 2021.10.19 amd64 "bcachefs" (20211028)
  ProcCmdline: /usr/bin/gnome-shell
  ProcEnviron:
   LANG=en_AU.UTF-8
   LANGUAGE=en_AU:en
   PATH=(custom, user)
   SHELL=/usr/bin/fish
   XDG_RUNTIME_DIR=
  RelatedPackageVersions: mutter-common 41.3-3ubuntu1
  Signal: 5
  SourcePackage: gnome-shell
  StacktraceTop:
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   meta_monitor_mode_foreach_crtc () at /lib/x86_64-linux-gnu/libmutter-9.so.0
  Title: gnome-shell crashed with signal 5
  UpgradeStatus: Upgraded to jammy on 2021-11-02 (124 days ago)
  UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
  separator:

To manage notifications about this bug go to:
https://bugs.launchpad.net/mutter/+bug/1964037/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1964037] Re: gnome-shell crashes when attempting to enable second monitor on second GPU (Nvidia >= 495) in a Wayland session

2022-03-18 Thread Daniel van Vugt
It appears my work in progress avoids the crash nicely:

https://gitlab.gnome.org/vanvugt/mutter/-/commits/fall-back-from-
secondary-gpu

Although it's slow -- it works by avoiding Nvidia GBM when the driver
refuses to work in a hybrid setup, and just uses Nvidia KMS to scan out
dumb buffers rendered by the primary GPU instead... but it appears
that's still faster than using Xorg!?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1964037

Title:
  gnome-shell crashes when attempting to enable second monitor on second
  GPU (Nvidia >= 495) in a Wayland session

Status in Mutter:
  Unknown
Status in gnome-shell package in Ubuntu:
  Triaged
Status in mutter package in Ubuntu:
  In Progress

Bug description:
  This is on my weird desktop setup, with one monitor plugged into an
  AMD card and one into an NVIDIA card.

  When using the Wayland session, by default Shell will come up on the
  monitor connected to the AMD card, and the second (NVIDIA) monitor
  will be blank. Attempting to enable the second monitor in Display
  Settings will immediately and reproducibly crash gnome-shell.

  This is trivial for me to reproduce, so if you need patches tested I
  can easily do so.

  ProblemType: Crash
  DistroRelease: Ubuntu 22.04
  Package: gnome-shell 41.3-1ubuntu1
  ProcVersionSignature: Ubuntu 
5.15.0+bcachefs.git2026.1fa97551d-1.1-generic 5.15.2
  Uname: Linux 5.15.0+bcachefs.git2026.1fa97551d-1-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu78
  Architecture: amd64
  CasperMD5CheckResult: pass
  CrashCounter: 1
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Mar  8 09:37:51 2022
  DisplayManager: gdm3
  ExecutablePath: /usr/bin/gnome-shell
  InstallationDate: Installed on 2021-11-02 (125 days ago)
  InstallationMedia: Ubuntu 21.10.0 2021.10.19 amd64 "bcachefs" (20211028)
  ProcCmdline: /usr/bin/gnome-shell
  ProcEnviron:
   LANG=en_AU.UTF-8
   LANGUAGE=en_AU:en
   PATH=(custom, user)
   SHELL=/usr/bin/fish
   XDG_RUNTIME_DIR=
  RelatedPackageVersions: mutter-common 41.3-3ubuntu1
  Signal: 5
  SourcePackage: gnome-shell
  StacktraceTop:
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   meta_monitor_mode_foreach_crtc () at /lib/x86_64-linux-gnu/libmutter-9.so.0
  Title: gnome-shell crashed with signal 5
  UpgradeStatus: Upgraded to jammy on 2021-11-02 (124 days ago)
  UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
  separator:

To manage notifications about this bug go to:
https://bugs.launchpad.net/mutter/+bug/1964037/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1964037] Re: gnome-shell crashes when attempting to enable second monitor on second GPU (Nvidia >= 495) in a Wayland session

2022-03-17 Thread Daniel van Vugt
Using the main branches:

#0  0x7f3255a9fccf in g_log_structured_array ()
at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x7f3255a9ff99 in g_log_default_handler ()
at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x5618851da1fd in default_log_handler
(log_domain=0x7f3254e5b2c6 "mutter", log_level=6, message=0x5618885d6810 
"Failed to create fallback offscreen framebuffer: Failed to create texture 2d 
due to size/format constraints", data=0x0) at ../src/main.c:297
#3  0x7f3255aa13fa in g_logv () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x7f3255aa16e3 in g_log () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x7f3254dfec77 in create_fallback_offscreen
(renderer_native=0x561885ea18f0, cogl_context=0x5618861d2750, width=1920, 
height=1200) at ../src/backends/native/meta-renderer-native.c:1213
#6  0x7f3254dfef76 in meta_renderer_native_create_view
(renderer=0x561885ea18f0, logical_monitor=0x561886d4f540, 
output=0x56188865d4a0, crtc=0x7f320018a610) at 
../src/backends/native/meta-renderer-native.c:1288
#7  0x7f3254c9a75d in meta_renderer_create_view
(renderer=0x561885ea18f0, logical_monitor=0x561886d4f540, 
output=0x56188865d4a0, crtc=0x7f320018a610) at 
../src/backends/meta-renderer.c:102
#8  0x7f3254c9a7cd in create_crtc_view
(logical_monitor=0x561886d4f540, monitor=0x561888572e80, 
output=0x56188865d4a0, crtc=0x7f320018a610, user_data=0x561885ea18f0)
at ../src/backends/meta-renderer.c:133
#9  0x7f3254c7ec1b in foreach_crtc
(monitor=0x561888572e80, mode=0x56188772e740, 
monitor_crtc_mode=0x56188621d670, user_data=0x7fffdc9b9760, error=0x0)
at ../src/backends/meta-logical-monitor.c:247
#10 0x7f3254c82d04 in meta_monitor_mode_foreach_crtc
(monitor=0x561888572e80, mode=0x56188772e740, func=0x7f3254c7ebb4 
, user_data=0x7fffdc9b9760, error=0x0)
at ../src/backends/meta-monitor.c:1955
#11 0x7f3254c7ecb5 in meta_logical_monitor_foreach_crtc
(logical_monitor=0x561886d4f540, func=0x7f3254c9a78d , 
user_data=0x561885ea18f0) at ../src/backends/meta-logical-monitor.c:274
#12 0x7f3254c9a8ee in meta_renderer_real_rebuild_views
(renderer=0x561885ea18f0) at ../src/backends/meta-renderer.c:168
#13 0x7f3254dff4c8 in meta_renderer_native_rebuild_views
(renderer=0x561885ea18f0)
at ../src/backends/native/meta-renderer-native.c:1422
#14 0x7f3254c9a78b in meta_renderer_rebuild_views (renderer=0x561885ea18f0)
at ../src/backends/meta-renderer.c:120
#15 0x7f3254e0ab20 in meta_stage_native_rebuild_views
(stage_native=0x5618860ff500)
at ../src/backends/native/meta-stage-native.c:66
#16 0x7f3254dc7e1b in meta_backend_native_update_screen_size
(backend=0x561885ded120, width=5043, height=3360)
at ../src/backends/native/meta-backend-native.c:411
#17 0x7f3254c6d7e7 in meta_backend_sync_screen_size
(backend=0x561885ded120) at ../src/backends/meta-backend.c:285
#18 0x7f3254c6da07 in meta_backend_monitors_changed 
(backend=0x561885ded120) at ../src/backends/meta-backend.c:356
#19 0x7f3254c946a3 in meta_monitor_manager_notify_monitors_changed 
(manager=0x561885df0340) at ../src/backends/meta-monitor-manager.c:3476
#20 0x7f3254c948f9 in meta_monitor_manager_rebuild (manager=0x561885df0340, 
config=0x561886083e80) at ../src/backends/meta-monitor-manager.c:3566
#21 0x7f3254ddc7b1 in meta_monitor_manager_native_apply_monitors_config 
(manager=0x561885df0340, config=0x561886083e80, 
method=META_MONITORS_CONFIG_METHOD_PERSISTENT, error=0x7fffdc9b9a60) at 
../src/backends/native/meta-monitor-manager-native.c:348
#22 0x7f3254c8e639 in meta_monitor_manager_apply_monitors_config 
(manager=0x561885df0340, config=0x561886083e80, 
method=META_MONITORS_CONFIG_METHOD_PERSISTENT, error=0x7fffdc9b9a60) at 
../src/backends/meta-monitor-manager.c:635
#23 0x7f3254c8e836 in meta_monitor_manager_ensure_configured 
(manager=0x561885df0340) at ../src/backends/meta-monitor-manager.c:708
#24 0x7f3254c94a49 in meta_monitor_manager_reconfigure 
(manager=0x561885df0340) at ../src/backends/meta-monitor-manager.c:3622
#25 0x7f3254c94a74 in meta_monitor_manager_reload (manager=0x561885df0340) 
at ../src/backends/meta-monitor-manager.c:3629
#26 0x7f3254ddcd99 in handle_hotplug_event (manager=0x561885df0340) at 
../src/backends/native/meta-monitor-manager-native.c:502
#27 0x7f3254ddce40 in on_kms_resources_changed (kms=0x561885def9c0, 
changes=META_KMS_UPDATE_CHANGE_FULL, manager=0x561885df0340) at 
../src/backends/native/meta-monitor-manager-native.c:538
#28 0x7f3255b90376 in g_cclosure_marshal_VOID__FLAGSv () at 
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#29 0x7f3255baf640 in g_signal_emit_valist () at 
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#30 0x7f3255baf7a3 in g_signal_emit () at 
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#31 0x7f3254df2a37 in handle_hotplug_event (kms=0x561885def9c0, 
udev_device=0x561887a9f340, changes=META_KMS_UPDATE_CHANGE_FULL) at 

[Desktop-packages] [Bug 1964037] Re: gnome-shell crashes when attempting to enable second monitor on second GPU (Nvidia >= 495) in a Wayland session

2022-03-17 Thread Daniel van Vugt
** Summary changed:

- gnome-shell crashes when attempting to enable second monitor
+ gnome-shell crashes when attempting to enable second monitor on second GPU 
(Nvidia >= 495) in a Wayland session

** Changed in: gnome-shell (Ubuntu)
   Importance: Undecided => High

** Changed in: gnome-shell (Ubuntu)
 Assignee: (unassigned) => Daniel van Vugt (vanvugt)

** Changed in: gnome-shell (Ubuntu)
   Status: Invalid => Confirmed

** Bug watch added: gitlab.gnome.org/GNOME/mutter/-/issues #2182
   https://gitlab.gnome.org/GNOME/mutter/-/issues/2182

** Also affects: mutter via
   https://gitlab.gnome.org/GNOME/mutter/-/issues/2182
   Importance: Unknown
   Status: Unknown

** Information type changed from Private to Public

** Tags added: multimonitor

** Changed in: gnome-shell (Ubuntu)
   Status: Confirmed => Triaged

** Also affects: mutter (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: mutter (Ubuntu)
   Importance: Undecided => High

** Changed in: mutter (Ubuntu)
 Assignee: (unassigned) => Daniel van Vugt (vanvugt)

** Changed in: mutter (Ubuntu)
   Status: New => Triaged

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1964037

Title:
  gnome-shell crashes when attempting to enable second monitor on second
  GPU (Nvidia >= 495) in a Wayland session

Status in Mutter:
  Unknown
Status in gnome-shell package in Ubuntu:
  Triaged
Status in mutter package in Ubuntu:
  Triaged

Bug description:
  This is on my weird desktop setup, with one monitor plugged into an
  AMD card and one into an NVIDIA card.

  When using the Wayland session, by default Shell will come up on the
  monitor connected to the AMD card, and the second (NVIDIA) monitor
  will be blank. Attempting to enable the second monitor in Display
  Settings will immediately and reproducibly crash gnome-shell.

  This is trivial for me to reproduce, so if you need patches tested I
  can easily do so.

  ProblemType: Crash
  DistroRelease: Ubuntu 22.04
  Package: gnome-shell 41.3-1ubuntu1
  ProcVersionSignature: Ubuntu 
5.15.0+bcachefs.git2026.1fa97551d-1.1-generic 5.15.2
  Uname: Linux 5.15.0+bcachefs.git2026.1fa97551d-1-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu78
  Architecture: amd64
  CasperMD5CheckResult: pass
  CrashCounter: 1
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Mar  8 09:37:51 2022
  DisplayManager: gdm3
  ExecutablePath: /usr/bin/gnome-shell
  InstallationDate: Installed on 2021-11-02 (125 days ago)
  InstallationMedia: Ubuntu 21.10.0 2021.10.19 amd64 "bcachefs" (20211028)
  ProcCmdline: /usr/bin/gnome-shell
  ProcEnviron:
   LANG=en_AU.UTF-8
   LANGUAGE=en_AU:en
   PATH=(custom, user)
   SHELL=/usr/bin/fish
   XDG_RUNTIME_DIR=
  RelatedPackageVersions: mutter-common 41.3-3ubuntu1
  Signal: 5
  SourcePackage: gnome-shell
  StacktraceTop:
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   () at /lib/x86_64-linux-gnu/libmutter-9.so.0
   meta_monitor_mode_foreach_crtc () at /lib/x86_64-linux-gnu/libmutter-9.so.0
  Title: gnome-shell crashed with signal 5
  UpgradeStatus: Upgraded to jammy on 2021-11-02 (124 days ago)
  UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
  separator:

To manage notifications about this bug go to:
https://bugs.launchpad.net/mutter/+bug/1964037/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp