GNOME Bugzilla – Bug 780403
JS ERROR: TypeError: can't convert undefined to object in objectManager.js
Last modified: 2017-06-22 18:32:22 UTC
On startup: gnome-settings-daemon-3.23.92-1.fc26.x86_64 gnome-shell-3.23.92-2.fc26.x86_64 Mar 22 15:17:13 classic gnome-shell[1021]: JS ERROR: TypeError: can't convert undefined to object ObjectManager<._onManagerProxyLoaded/<@resource:///org/gnome/shell/misc/objectManager.js:196:31 _proxyInvoker/asyncCallback@resource:///org/gnome/gjs/modules/overrides/Gio.js:86:13
Possibly related to bug 772589.
i don't think it's related to bug 772589 really. code has this: let [objects] = result;• let objectPaths = Object.keys(objects);• indeed, looking glass shows: >>> Object.keys(undefined) TypeError: can't convert undefined to object result is an array of dict entries: a{oa{sa{sv}}} so i guess what's happening is the other side is returning a 0-length array.
Created attachment 353776 [details] [review] objectManager: handle object manager sending empty array If the service implementing the object manager returns a 0 length array we currently throw an exception. This commit fixes that.
Review of attachment 353776 [details] [review]: Untested on my side, but makes sense to me
Attachment 353776 [details] pushed as 9c4e875 - objectManager: handle object manager sending empty array