After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735722 - Can't run gnome-maps
Can't run gnome-maps
Status: RESOLVED DUPLICATE of bug 734507
Product: gnome-maps
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2014-08-30 19:27 UTC by Yosef Or Boczko
Modified: 2014-09-03 10:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Yosef Or Boczko 2014-08-30 19:27:25 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.
Comment 1 Jonas Danielsson 2014-09-01 05:39:01 UTC
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?
Comment 2 Yosef Or Boczko 2014-09-03 10:45:33 UTC
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
Comment 3 Jonas Danielsson 2014-09-03 10:50:56 UTC
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 ***