Every now and then my gnome session freezes completely with gnome-shell using 100% CPU. The only thing I could do so far was to switch to a virtual terminal and kill gnome-shell. After that the gnome session came alive again. Any suggestion how I could avoid this problem?
My system is: Ubuntu 18.04.1 LTS (up to date)
In syslog I find the following error message for the date/time of the freeze:
[date/time] some-ubuntu gnome-shell[1902]: JS ERROR: Exception in callback for signal: child-added: InternalError: too much recursion#012_init@resource:///org/gnome/shell/ui/popupMenu.js:946:9#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_Base.prototype._construct@resource:///org/gnome/gjs/modules/_legacy.js:18:5#012Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/_legacy.js:114:32#012_init@resource:///org/gnome/shell/ui/popupMenu.js:1128:21#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_Base.prototype._construct@resource:///org/gnome/gjs/modules/_legacy.js:18:5#012Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/_legacy.js:114:32#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:453:29#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactor