GNOME Bugzilla – Bug 735722
Can't run gnome-maps
Last modified: 2014-09-03 10:50:56 UTC
When I try to launch gnome-maps, I get this output: $ gnome-maps (process:20476): Gjs-WARNING **: JS ERROR: Error: Expected type utf8 for Argument 'location' but got type 'undefined' bindtextdomain@resource:///org/gnome/gjs/modules/gettext.js:42 Application<._init@resource:///org/gnome/maps/application.js:62 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 start@resource:///org/gnome/maps/main.js:27 @<main>:1 ** (process:20476): CRITICAL **: Failed to run: JS_EvaluateScript() failed gobject-introspection, gjs and gnome-maps from git master, up to date. Note: it works for me for one time, and after this I see again this output, and gnome-maps not run again. Sometimes when I build gnome-maps, I see this errors (and after rebuild it gone): gnome-maps.js.gresource.xml: Failed to locate 'config.js' in any source directory. Makefile:817: recipe for target 'gnome-maps-js.c' failed btw, also gnome-common it from git master.
Hi, thanks for filing a bug! Line 62 in application.js is: Gettext.bindtextdomain('gnome-maps', Path.LOCALE_DIR); And the argument 'location' is that Path.LOCALE_DIR. And it seems to be undefined. I think it can have something to do with the build error message you have below. Could you check if there is a path.js present? And if so what it contains?
New output: (gnome-maps:11775): Gjs-WARNING **: JS ERROR: Error: No property 'user_agent' in property list (or its value was undefined) GraphHopper<._init@resource:///org/gnome/maps/routeService.js:50 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110 Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204 Application<._initServices@resource:///org/gnome/maps/application.js:115 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<.vfunc_startup@resource:///org/gnome/maps/application.js:102 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 start@resource:///org/gnome/maps/main.js:28 @<main>:1 (gnome-maps:11775): Gjs-WARNING **: JS ERROR: TypeError: Application.geoclue is null MapView<._init@resource:///org/gnome/maps/mapView.js:68 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 MainWindow<._init@resource:///org/gnome/maps/mainWindow.js:63 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110 Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204 Application<._createWindow@resource:///org/gnome/maps/application.js:127 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Application<.vfunc_activate@resource:///org/gnome/maps/application.js:141 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 start@resource:///org/gnome/maps/main.js:28 @<main>:1
This is because there is a build error that prevents config.js and path.js to generate correctly. The user agent should come from config.js. *** This bug has been marked as a duplicate of bug 734507 ***