Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification has been already disposed #301

Closed
adangel opened this issue Oct 26, 2021 · 0 comments · Fixed by #305
Closed

Notification has been already disposed #301

adangel opened this issue Oct 26, 2021 · 0 comments · Fixed by #305

Comments

@adangel
Copy link
Collaborator

adangel commented Oct 26, 2021

Expected Behavior

  • No errors should be logged

Current Behavior

  • When closing the notification, the error below is logged.

Steps to Reproduce (for bugs)

  1. Options: "Show alerts and notifications" should be enabled
  2. Start recording
  3. Immediately close the notification manually that contains the timer
  4. A log is produced every second (probably when the already closed/disposed notification should be updated)

Logs

Okt 26 18:49:12 adangel gnome-shell[35804]: [ESC]-°-update notify
Okt 26 18:49:12 adangel gnome-shell[35804]: Object .Gjs_ui_messageTray_Notification (0x56492d3ccf60), has been already disposed — impossible to emit any signal on it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Okt 26 18:49:12 adangel org.gnome.Shell.desktop[35804]: == Stack trace for context 0x56492b7be200 ==
Okt 26 18:49:12 adangel org.gnome.Shell.desktop[35804]: #0   56492ee641c8 i   resource:///org/gnome/shell/ui/messageTray.js:430 (2c4ead374150 @ 506)
Okt 26 18:49:12 adangel org.gnome.Shell.desktop[35804]: #1   56492ee64120 i   /home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/utilnotify.js:77 (3fc4edac8790 @ 48)
Okt 26 18:49:12 adangel org.gnome.Shell.desktop[35804]: #2   7ffe6b23a180 b   resource:///org/gnome/gjs/modules/script/_legacy.js:83 (3784d09cb6f0 @ 69)
Okt 26 18:49:12 adangel org.gnome.Shell.desktop[35804]: #3   56492ee64068 i   /home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:1005 (3fc4eda89dd0 @ 224)
Okt 26 18:49:12 adangel org.gnome.Shell.desktop[35804]: #4   56492ee63fc0 i   /home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/timer.js:249 (3fc4edac0290 @ 247)
Okt 26 18:49:12 adangel org.gnome.Shell.desktop[35804]: #5   7ffe6b23be10 b   resource:///org/gnome/gjs/modules/script/_legacy.js:83 (3784d09cb6f0 @ 69)
Okt 26 18:49:12 adangel org.gnome.Shell.desktop[35804]: #6   56492ee63f38 i   /home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/timer.js:199 (3fc4edac0380 @ 12)
Okt 26 18:49:13 adangel gnome-shell[35804]: [ESC]-%-continued TimerCounting | sec: 3
Okt 26 18:49:13 adangel gnome-shell[35804]: [ESC]-°-update notify
Okt 26 18:49:13 adangel gnome-shell[35804]: Object .Gjs_ui_messageTray_Notification (0x56492d3ccf60), has been already disposed — impossible to emit any signal on it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Okt 26 18:49:13 adangel org.gnome.Shell.desktop[35804]: == Stack trace for context 0x56492b7be200 ==
Okt 26 18:49:13 adangel org.gnome.Shell.desktop[35804]: #0   56492e1a6d98 i   resource:///org/gnome/shell/ui/messageTray.js:430 (2c4ead374150 @ 506)
Okt 26 18:49:13 adangel org.gnome.Shell.desktop[35804]: #1   56492e1a6cf0 i   /home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/utilnotify.js:77 (3fc4edac8790 @ 48)
Okt 26 18:49:13 adangel org.gnome.Shell.desktop[35804]: #2   7ffe6b23a180 b   resource:///org/gnome/gjs/modules/script/_legacy.js:83 (3784d09cb6f0 @ 69)
Okt 26 18:49:13 adangel org.gnome.Shell.desktop[35804]: #3   56492e1a6c38 i   /home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:1005 (3fc4eda89dd0 @ 224)
Okt 26 18:49:13 adangel org.gnome.Shell.desktop[35804]: #4   56492e1a6b90 i   /home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/timer.js:249 (3fc4edac0290 @ 247)
Okt 26 18:49:13 adangel org.gnome.Shell.desktop[35804]: #5   7ffe6b23be10 b   resource:///org/gnome/gjs/modules/script/_legacy.js:83 (3784d09cb6f0 @ 69)
Okt 26 18:49:13 adangel org.gnome.Shell.desktop[35804]: #6   56492e1a6b08 i   /home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/timer.js:199 (3fc4edac0380 @ 12)

There is another error - maybe this happens after the recording has been stopped?

Okt 25 21:36:52 adangel gnome-shell[3892]: JS ERROR: TypeError: this.notifications is undefined
                                           get unseenCount@resource:///org/gnome/shell/ui/messageTray.js:698:9
                                           _updateCount/<@resource:///org/gnome/shell/ui/dateMenu.js:708:42
                                           _updateCount@resource:///org/gnome/shell/ui/dateMenu.js:708:23
                                           countUpdated@resource:///org/gnome/shell/ui/messageTray.js:706:14
                                           pushNotification@resource:///org/gnome/shell/ui/messageTray.js:767:14
                                           showNotification@resource:///org/gnome/shell/ui/messageTray.js:772:14
                                           createNotify@/home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/utilnotify.js:57:21
                                           wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
                                           doRecResult@/home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/extension.js:833:33
                                           wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27
                                           start/<@/home/andreas/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/utilrecorder.js:145:35
                                           asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22

Your Environment

  • Gnome shell version: 41
  • Operating System and version: Debian Testing
  • Display server: Wayland
@adangel adangel added this to the next milestone Nov 13, 2021
adangel added a commit to adangel/EasyScreenCast that referenced this issue Nov 13, 2021
adangel added a commit to adangel/EasyScreenCast that referenced this issue Nov 20, 2021
adangel added a commit that referenced this issue Nov 29, 2021
Fix notification #305

* pr-305:
  Update changelog
  Remove notification if it is destroyed (#301)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant