Closed astro-ray closed 2 weeks ago
@astro-ray Thanks for creating this issue. I have been looking into it and trying to reproduce it but can't seem to be able to.
What I would like to suggest to do next. I will create a new branch for this issue that will include some additional debug logs to see what the state of this.flipIndicator
is at different parts of the extension.
Do the following below to use this new branch on your machine.
git clone https://github.com/shyzus/gnome-shell-extension-screen-autorotate.git
cd gnome-shell-extension-screen-autorotate
git switch 38-gnome-extension-manager-showing-error
cp -r screen-rotate@shyzus.github.io ~/.local/share/gnome-shell/extensions
then log out and log back in to see the changes applied. The logs created up until the point it errors again should provide some more insights into what is causing this.
I'm getting the same error as well, here's my journalctl log:
gnome-shell[11412]: Archive: /tmp/1X83S2.shell-extension.zip
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/displayConfigState.js
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/extension.js
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/logicalMonitor.js
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/manualOrientationIndicator.js
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/manualOrientationMenuToggle.js
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/monitor.js
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/orientation.js
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/prefs.js
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/rotator.js
gnome-shell[11412]: creating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/schemas/
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/schemas/gschemas.compiled
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/schemas/org.gnome.shell.extensions.screen-rotate.gschema.xml
gnome-shell[11412]: inflating: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/sensorProxy.js
gnome-shell[11412]: extracting: /home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/metadata.json
gnome-shell[9801]: Extension screen-rotate@shyzus.github.io: TypeError: this.flipIndicator is undefined
_remove_manual_flip@file:///home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/extension.js:118:7
enable@file:///home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/extension.js:72:12
@cameronaw13 Thanks for chiming in. I see your output includes the offending lines of code. That cause this. Give me some time to push an update to the branch attached to this issue and see if that fixed this.
I believe I found and fixed the issue. Please try the branch attached to this issue and verify if this also applies to your machines.
Seems that the extension doesn't crash anymore but, whenever I enable the auto-rotate toggle it shows this error:
gnome-shell[22143]: JS ERROR: TypeError: this.toggle is not a function
_orientation_lock_changed@file:///home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/extension.js:170:12
createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:730:46
activateLockOrientation@resource:///org/gnome/shell/misc/systemActions.js:416:35
_init/<@resource:///org/gnome/shell/ui/status/autoRotate.js:34:39
@resource:///org/gnome/shell/ui/init.js:21:20
Manual rotate still works though
In the mean time il invalidate v22 from extensions.gnome.org so people aren't affected by this until its fixed.
Seems that the extension doesn't crash anymore but, whenever I enable the auto-rotate toggle it shows this error:
gnome-shell[22143]: JS ERROR: TypeError: this.toggle is not a function _orientation_lock_changed@file:///home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/extension.js:170:12 createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:730:46 activateLockOrientation@resource:///org/gnome/shell/misc/systemActions.js:416:35 _init/<@resource:///org/gnome/shell/ui/status/autoRotate.js:34:39 @resource:///org/gnome/shell/ui/init.js:21:20
Manual rotate still works though
Should now be fixed in the new branch. This appears to be caused by a function call not being refactored correctly.
Seems that the extension doesn't crash anymore but, whenever I enable the auto-rotate toggle it shows this error:
gnome-shell[22143]: JS ERROR: TypeError: this.toggle is not a function _orientation_lock_changed@file:///home/cameron/.local/share/gnome-shell/extensions/screen-rotate@shyzus.github.io/extension.js:170:12 createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:730:46 activateLockOrientation@resource:///org/gnome/shell/misc/systemActions.js:416:35 _init/<@resource:///org/gnome/shell/ui/status/autoRotate.js:34:39 @resource:///org/gnome/shell/ui/init.js:21:20
Manual rotate still works though
Should now be fixed in the new branch. This appears to be caused by a function call not being refactored correctly.
Cool seems to work for me now
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior The extension should run when turned on
Screenshots
Desktop (please complete the following information):
Additional context I installed the extension from gnome extension manager
Relevant logs (please use a tool like
fpaste
or a service like pastebin.) Place a link here or the logs themselves if they are less than 50 lines.