I am currently working on writing an applet for cinnamon and I am having some issues whyile developing, where I don't know what cuases them or how I could find out.
Cinnamon throws this error(sometimes multiple instances of it) in xsession-errors and by the stack trace I found the offending function in popupMenu.js. But that is a js file from Cinnamon, so I don't know what code from my applet caused this or which St Widget in my applet caused this:
Code: Select all
(cinnamon:2646): Gjs-CRITICAL **: 19:49:34.075: Object St.BoxLayout (0x5580197fcfc0), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
== Stack trace for context 0x558015dc8380 ==
#0 7ffe21ea43e0 b /usr/share/cinnamon/js/ui/popupMenu.js:2096 (167c9073a560 @ 22)
#1 7ffe21ea44a0 b /usr/share/cinnamon/js/ui/popupMenu.js:2122 (167c9073a420 @ 23)
#2 7ffe21ea4550 b /usr/share/cinnamon/js/ui/popupMenu.js:2164 (167c9073a330 @ 37)
#3 7ffe21ea4600 b /usr/share/cinnamon/js/ui/popupMenu.js:2988 (167c90739600 @ 22)
#4 558019f4e648 i /usr/share/cinnamon/js/misc/fileUtils.js line 211 > Function:513 (996272ea330 @ 44)
#5 7ffe21ea5320 b /usr/share/cinnamon/js/misc/fileUtils.js line 211 > Function:951 (996272b2e70 @ 427)
#6 558019f4e4d0 i /usr/share/cinnamon/js/misc/fileUtils.js line 211 > Function:1080 (996272b2ce0 @ 57)
#7 7ffe21ea5fd0 b self-hosted:850 (256a1d2af9c0 @ 423)
#8 7ffe21ea60c0 b resource:///org/gnome/gjs/modules/core/_signals.js:114 (256a1d2d6ab0 @ 439)
#9 558019f4e418 i /usr/share/cinnamon/js/misc/fileUtils.js line 211 > Function:340 (996272ea7e0 @ 250)
#10 7ffe21ea6d80 b self-hosted:850 (256a1d2af9c0 @ 492)
#11 7ffe21ea6e80 b resource:///org/gnome/gjs/modules/core/_signals.js:114 (256a1d2d6ab0 @ 439)
#12 7ffe21ea6f60 b resource:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (256a1d2d64c0 @ 39)
I am also getting the following error about a non existing signal, which shouldn't happen, since if the signal would not be created, it should throw an error, but it doesn't, so the signal has to exist:
Code: Select all
(cinnamon:2646): Gjs-CRITICAL **: 20:06:08.318: JS ERROR: Error: No signal connection 1 found
_disconnect@resource:///org/gnome/gjs/modules/core/_signals.js:58:11
destroy@/home/joejoetv/.local/share/cinnamon/applets/kdecapplet@joejoetv/js/modules.js:642:36
removeModule@/home/joejoetv/.local/share/cinnamon/applets/kdecapplet@joejoetv/applet.js:447:36
removeAllModules@/home/joejoetv/.local/share/cinnamon/applets/kdecapplet@joejoetv/applet.js:458:18
onModuleSettingsChanged@/home/joejoetv/.local/share/cinnamon/applets/kdecapplet@joejoetv/applet.js:1117:20
bind/<@resource:///org/gnome/gjs/modules/script/lang.js:71:25
_checkSettings@/usr/share/cinnamon/js/ui/settings.js:611:45
Previously cinnamon sometimes "nearly crashed" or something, where the screen would go black and I'd have to hover over gui elements to make them visible again, after reloading the applet some times. I don't have the error messages from when it happened, since I've restarted my PC since then, but I think it could have something to do with destroying actors, but I'm not sure.
Another question would be: What actors, popupMenuItems, popupMenus, etc. do I have to destroy with the method and which don't I?
Cinnamon 5.6.7
Thasnks for any help in advance