[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-22 Thread Daniel van Vugt
The same bug can occur with app windows if the scale is high enough to
make them larger than the monitor. So DING really isn't to blame - it's
just a likely trigger given the size of the window.


** No longer affects: gnome-shell-extension-desktop-icons-ng (Ubuntu)

** Summary changed:

- Screen freeze if a 4K monitor is added to a 4K laptop while DING is active
+ Screen freeze and high CPU when a second monitor of different scaling factor 
is attached (but only if DING is active)

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

Title:
  Screen freeze and high CPU when a second monitor of different scaling
  factor is attached (but only if DING is active)

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-22 Thread Daniel van Vugt
I can reproduce the bug with a 1080p laptop + 1080p monitor now. The
trick is to configure the laptop screen with a different scaling factor
to whatever the external monitor will get by default. When the two
screens have the same resolution but different scales, windows will jump
between the monitors in an infinite loop.

So the bug isn't caused by 4K, just that 4K systems are more likely to
have differing monitor scaling factors that trigger the bug.

Once again, removing the last line of
meta_window_wayland_update_main_monitor() fixes the issue but we need to
find a nicer fix.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-22 Thread Daniel van Vugt
I also have hardware that exhibits the bug. That's why I started digging
into it this week. No guarantees I will have a solution any time soon,
so don't assume I've totally taken over. I just assigned it to myself
because Seb thought nobody was working on it when I already was.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-21 Thread TreviƱo
Oh, I see you're taking the bug.

I should receive an affected laptop in few days, so if you want I can
continue with this. As debugging via SSH wasn't the best thing.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-21 Thread Andy Chi
Tried with the newest mutter (42.2-0ubuntu1) and gnome-shell
(42.2-0ubuntu0.2), the screen freeze after I plug external monitor.

** Attachment added: "gnome-shell-20220621.log"
   
https://bugs.launchpad.net/oem-priority/+bug/1976204/+attachment/5598650/+files/gnome-shell-20220621.log

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-21 Thread Daniel van Vugt
More progress:

The cause is meta_window_wayland_update_main_monitor() constantly
changing which monitor the window (presumably DING because there aren't
any others) prefers. The toggle is happening on the last line of
meta_window_wayland_update_main_monitor() and if you remove that line
then the bug goes away.

The next step will be to figure out why mutter is switching the DING
window between monitors constantly.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-21 Thread Daniel van Vugt
There is a corresponding number of meta_workspace_add_window() calls,
also from set_workspace_state().

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-21 Thread Daniel van Vugt
Small progress trying to trace the root cause today:

I don't yet see gnome-shell doing anything wrong. It is reacting to an
infinite flood of workspace 'window-removed' signals. That signal can
only come from one function in mutter, and during the infinite flood I
see 'on_all_workspaces' is toggling between 0 and 1:

(gdb) bt
#0  meta_workspace_remove_window
(workspace=0x55a010a2d1d0, window=0x55a01135ce20)
at ../src/core/workspace.c:421
#1  0x7fb5a3d5c40c in set_workspace_state
(window=0x55a01135ce20, on_all_workspaces=0, workspace=0x55a00eac8ea0)
at ../src/core/window.c:4635
#2  0x7fb5a3d5f9b9 in meta_window_update_monitor
(window=window@entry=0x55a01135ce20, 
flags=flags@entry=META_WINDOW_UPDATE_MONITOR_FLAGS_NONE) at 
../src/core/window.c:3746
#3  0x7fb5a3d5fcc6 in meta_window_move_resize_internal
(window=0x55a01135ce20, flags=(META_MOVE_RESIZE_MOVE_ACTION | 
META_MOVE_RESIZE_RESIZE_ACTION), gravity=META_GRAVITY_NORTH_WEST, 
frame_rect=...)
at ../src/core/window.c:3945
#4  0x7fb5a49d3f60 in g_list_foreach ()
at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x7fb5a3d32d39 in move_resize
(display=, windows=0x55a00eb224e0 = {...})
at ../src/core/display.c:4044
#6  0x7fb5a3d32c7e in window_queue_run_later_func
(user_data=) at ../src/core/display.c:4070
#7  0x7fb5a3d24ff3 in invoke_later_idle (data=0x55a011660c00)
at ../src/compositor/meta-later.c:199

I'm not saying gnome-shell isn't to blame, just that I've only worked
back to mutter so far.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-21 Thread Daniel van Vugt
mutter!2413 is in version 42.2 which I am using already, and the bug is
still present, confirming comment #14.

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

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

** Changed in: gnome-shell (Ubuntu)
   Status: New => In Progress

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

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-21 Thread jeremyszu
Daniel,

Thus, does the PPA from comment#14 can fix your case?
if it doesn't, then probably there are two issues or other patch(s) are needed.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-20 Thread Daniel van Vugt
The bug doesn't happen if I build mutter/gnome-shell from git. The bug
still doesn't happen if I build the Ubuntu 42.1 tags (jammy) from salsa,
with all Ubuntu patches.

Using the jammy release binaries the bug still occurs consistently. I am
not getting any results from gjs_dumpstack anymore (like above), but
earlier in the day I did get:

  == Stack trace for context 0x56139f48b4a0 ==
  gnome-shell[10091]: #0   7ffc53926a00 I   
resource:///org/gnome/shell/ui/windowManager.js:314 (2b03e27293d0 @ 78)
  gnome-shell[10091]: #1   7ffc53926a50 I   self-hosted:1181 (2e95f68b0a10 @ 
454)

So actually that's the same as Marco mentioned in comment #13.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-17 Thread Daniel van Vugt
Good news: I can reproduce the bug now using an HP Skylake laptop with
built-in 4K panel. Everything freezes if I add an external 4K display.

The freeze does NOT occur if I have DING disabled.

If I use both monitors without DING, then only enabling DING makes the
freeze happen again.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-17 Thread Andy Chi
All the 4k eDP laptops will have this issue, I tried on HP ZBook (which
includes nv card) and switch to wayland. Plug external 4k monitor can
reproduce too.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-17 Thread Daniel van Vugt
I've just finished testing 2x4K on i7-9750H with jammy and it works
perfectly. All default settings with DING enabled. I tested both HDMI
and USB-C.

So something about this bug seems to be hardware-specific as you keep
mentioning. It would be really annoying if an OLED XPS was the minimum
requirement to reproduce the bug.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1976204] Re: Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

2022-06-16 Thread Daniel van Vugt
** Summary changed:

- Screen freeze
+ Screen freeze if a 4K monitor is added to a 4K laptop while DING is active

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

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

** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1976204

Title:
  Screen freeze if a 4K monitor is added to a 4K laptop while DING is
  active

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1976204/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs