** Description changed:

+ [ Impact ]
+ 
+ * After unlocking the screen (or resuming from suspend), Tiling Assistant
+   fails to restore the tiled layout and logs "Error: Provided input cannot
+   be converted to ArrayBufferView or ArrayBuffer" from
+   _loadAfterSessionLock() on every unlock.
+ * The saved session state is read asynchronously but the result was
+   destructured incorrectly, so the raw file bytes were passed to
+   TextDecoder.decode() instead of the contents array.
+ 
+ [ Test Plan ]
+ 
+ * On Ubuntu 26.04, enable Tiling Assistant and tile a few windows.
+ * Lock the session (Super+L or loginctl lock-session) and unlock.
+ * Expected: the tiled windows are restored.
+ 
+ [ Where problems could occur ]
+ 
+ * The state is now decoded from the correct value; a malformed state file is
+   ignored as before.
+ 
+ [ Other Info ]
+ 
+ * Upstream: tiling-assistant c122fd1, 0360822, dae877f.
+ 
+ ---
+ 
  After unlocking the screen - and after resuming from suspend, which also
  locks/unlocks the session - Tiling Assistant does not restore the tiled
  layout, and this error is logged on every unlock:
  
  Extension [email protected]: Error: Provided input cannot be
  converted to ArrayBufferView or ArrayBuffer
  
  Stack trace:
-   decode@resource:///org/gnome/gjs/modules/esm/_encoding/encoding.js:112:19
-   
_loadAfterSessionLock@file:///usr/share/gnome-shell/extensions/[email protected]/extension.js:348:53
-   
asyncenable@file:///usr/share/gnome-shell/extensions/[email protected]/extension.js:225:20
-   
async_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:269:38
-   
_onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js:603:24
-   
async*_sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:811:20
-   ExtensionManager/<@resource:///org/gnome/shell/ui/extensionSystem.js:51:18
-   _callHandlers@resource:///org/gnome/gjs/modules/core/_signals.js:130:42
-   _emit@resource:///org/gnome/gjs/modules/core/_signals.js:119:10
-   _sync@resource:///org/gnome/shell/ui/sessionMode.js:212:14
-   popMode@resource:///org/gnome/shell/ui/sessionMode.js:183:14
-   _continueDeactivate@resource:///org/gnome/shell/ui/screenShield.js:593:30
-   deactivate/<@resource:///org/gnome/shell/ui/screenShield.js:584:44
-   finish@resource:///org/gnome/shell/gdm/authPrompt.js:1062:13
-   finish@resource:///org/gnome/shell/ui/unlockDialog.js:1080:26
-   deactivate@resource:///org/gnome/shell/ui/screenShield.js:584:26
-   _getLoginSession/<@resource:///org/gnome/shell/ui/screenShield.js:174:24
-   _callHandlers@resource:///org/gnome/gjs/modules/core/_signals.js:130:42
-   _emit@resource:///org/gnome/gjs/modules/core/_signals.js:119:10
-   
_convertToNativeSignal@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:154:19
-   @resource:///org/gnome/shell/ui/init.js:20:20
+   decode@resource:///org/gnome/gjs/modules/esm/_encoding/encoding.js:112:19
+   
_loadAfterSessionLock@file:///usr/share/gnome-shell/extensions/[email protected]/extension.js:348:53
+   
asyncenable@file:///usr/share/gnome-shell/extensions/[email protected]/extension.js:225:20
+   
async_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:269:38
+   
_onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js:603:24
+   
async*_sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:811:20
+   ExtensionManager/<@resource:///org/gnome/shell/ui/extensionSystem.js:51:18
+   _callHandlers@resource:///org/gnome/gjs/modules/core/_signals.js:130:42
+   _emit@resource:///org/gnome/gjs/modules/core/_signals.js:119:10
+   _sync@resource:///org/gnome/shell/ui/sessionMode.js:212:14
+   popMode@resource:///org/gnome/shell/ui/sessionMode.js:183:14
+   _continueDeactivate@resource:///org/gnome/shell/ui/screenShield.js:593:30
+   deactivate/<@resource:///org/gnome/shell/ui/screenShield.js:584:44
+   finish@resource:///org/gnome/shell/gdm/authPrompt.js:1062:13
+   finish@resource:///org/gnome/shell/ui/unlockDialog.js:1080:26
+   deactivate@resource:///org/gnome/shell/ui/screenShield.js:584:26
+   _getLoginSession/<@resource:///org/gnome/shell/ui/screenShield.js:174:24
+   _callHandlers@resource:///org/gnome/gjs/modules/core/_signals.js:130:42
+   _emit@resource:///org/gnome/gjs/modules/core/_signals.js:119:10
+   
_convertToNativeSignal@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:154:19
+   @resource:///org/gnome/shell/ui/init.js:20:20
  
  Steps to reproduce:
  1. Enable the extension and tile a few windows.
  2. Lock the session (Super+L, or `loginctl lock-session`).
  3. Unlock again.
  
  Expected: the tiled windows are restored after the unlock.
  Actual: the tiled layout is lost and the error above is logged on every
  unlock.

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

Title:
  Tiled windows are not restored after unlocking the screen causing a
  partial extension initialization failure

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


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

Reply via email to