** Description changed:

+ [ Impact ]
+ 
+ * Enabling Tiling Assistant and unlocking the screen blocks the whole GNOME
+   Shell UI, because the extension performs synchronous file I/O on the main
+   loop: Gio.File.make_directory_with_parents() for ~/.config/tiling-assistant
+   (Util.initialize(), run at enable), and a Gio.File.query_exists() check on
+   the session file before it is loaded (run after unlocking the screen). On a
+   slow or network-backed home directory this shows as a freeze at session
+   start and at screen unlock.
+ * Both operations are now performed asynchronously, so the shell main loop is
+   never blocked.
+ 
+ [ Test Plan ]
+ 
+ * Take the attached slowfs.py (a FUSE passthrough that sleeps on every
+   filesystem operation, so its I/O is slow while every other path on the
+   system is unaffected) and mount it over Tiling Assistant's config
+   directory:
+ 
+     mkdir -p ~/.config/tiling-assistant
+     python3 slowfs.py ~/.config/tiling-assistant --delay 1
+ 
+ * Enable Tiling Assistant, then lock and unlock the session
+   (Super+L, or: loginctl lock-session).
+ 
+ Expected: enabling the extension and unlocking complete with the UI staying
+ responsive, and the tiled windows are restored after unlock.
+ 
+ [ Where problems could occur ]
+ 
+ * Directory creation now walks up to the first existing ancestor; a failure
+   is logged and does not abort the extension.
+ * The session state is only read when the file exists; a missing file is
+   still treated as "no saved state".
+ 
+ [ Other Info ]
+ 
+ * Upstream: tiling-assistant 904d03b, 3c93e25, c0c4b20.
+ 
+ ----
+ 
  - Creating ~/.config/tiling-assistant uses 
Gio.File.make_directory_with_parents()
-   (Util.initialize()), run when the extension is enabled.
+   (Util.initialize()), run when the extension is enabled.
  - _loadAfterSessionLock() checks the session file with Gio.File.query_exists()
-   before loading it asynchronously, run after unlocking the screen.
+   before loading it asynchronously, run after unlocking the screen.
  
  As these run on the shell's main loop, the whole UI blocks for the duration 
of the
  I/O. On a slow or network-backed home directory this shows up as a freeze at 
session
  start and at screen unlock.
  
  Expected: file I/O is asynchronous and never blocks the shell.
  Actual: the shell main loop blocks on directory creation and the session-file
  existence check.

** Attachment added: "slowfs.py"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell-ubuntu-extensions/+bug/2170250/+attachment/6022712/+files/slowfs.py

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

Title:
  Tiling Assistant does synchronous file I/O on the GNOME Shell main
  loop during init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell-ubuntu-extensions/+bug/2170250/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to