Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Simulator fails to start when path contains accented character #247

Open
wildfier opened this Issue · 10 comments

4 participants

@wildfier

Hi, I'm running on Arch Linux 64 bits and when I launch the simulator the phone screen is black with the mozilla logo. Nothing else except that B2G uses 11% of the CPU (I have a i7). I have the following errors :

Error: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXPCComponents_Utils.import]
Source File: file:///media/media/Partag%C3%83%C2%A9/Firefox/wildfier/extensions/r2d2b2g@mozilla.org/resources/r2d2b2g/data/linux64/b2g/components/HealthReportService.js
Line: 10

Error: ERROR addons.xpi-utils: Failed to remove database that could not be opened: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsILocalFile.remove]" nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)" location: "JS frame :: resource://gre/modules/XPIProvider.jsm -> resource://gre/modules/XPIProviderUtils.js :: XPIDB_openDatabaseFile :: line 491" data: no]
Source File: resource://gre/modules/XPIProvider.jsm -> resource://gre/modules/XPIProviderUtils.js
Line: 491

Error: ERROR addons.xpi-utils: Failed to open database (2nd attempt): [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [mozIStorageService.openUnsharedDatabase]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: resource://gre/modules/XPIProvider.jsm -> resource://gre/modules/XPIProviderUtils.js :: XPIDB_openDatabaseFile :: line 497" data: no]
Source File: resource://gre/modules/XPIProvider.jsm -> resource://gre/modules/XPIProviderUtils.js
Line: 497

Error: [Exception... "'Method not implemented' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "native frame :: :: :: line 0" data: no]

Error: NO SETTINGS PERMISSION FOR: app://system.gaiamobile.org
Source File: file:///media/media/Partag%C3%83%C2%A9/Firefox/wildfier/extensions/r2d2b2g@mozilla.org/resources/r2d2b2g/data/linux64/b2g/components/SettingsManager.js
Line: 344

Error: NS_ERROR_FAILURE: Denied
Source File: file:///media/media/Partag%C3%83%C2%A9/Firefox/wildfier/extensions/r2d2b2g@mozilla.org/resources/r2d2b2g/data/linux64/b2g/components/Webapps.js
Line: 693

Error: NS_ERROR_FAILURE: Denied
Source File: file:///media/media/Partag%C3%83%C2%A9/Firefox/wildfier/extensions/r2d2b2g@mozilla.org/resources/r2d2b2g/data/linux64/b2g/components/Webapps.js
Line: 693

Error: TypeError: settings is null
Source File: app://system.gaiamobile.org/shared/js/settings_listener.js
Line: 34

Error: UnknownError
Source File: app://system.gaiamobile.org/js/window_manager.js
Line: 501

@mykmelez
Owner

Sorry for the delay responding! Do you still see the issue after installing the latest preview release of the Simulator?

Latest preview release: Windows, Mac, and Linux.

@wildfier

Hi, I have the 1.0 version and I still have this problem.

@mykmelez
Owner

@wildfier: could you try installing the latest preview release and see if you still experience the problem?

@wildfier

I have removed and try to reinstall it but I can't download it. I don't even see it in the add-ons panel from firefox itself. The download link seems to be broken.

@wildfier

I did the update (thanks for your link). So I tried the 2.0pr6 version and I this time the virtual phone displays a "based on mozilla technology" screen and nothing more appended. The errors messages seems a bit different :

Failed to load native module at path '/media/media/Partagé/Firefox/wildfier/extensions/r2d2b2g@mozilla.org/resources/r2d2b2g/data/linux64/b2g/components/libmozgnome.so': (80004005) /media/media/Partagé/Firefox/wildfier/extensions/r2d2b2g@mozilla.org/resources/r2d2b2g/data/linux64/b2g/components/libmozgnome.so: cannot open shared object file: No such file or directory

Timestamp: 02/08/13 09:52:50
Error: ERROR addons.xpi-utils: Failed to open database (1st attempt): [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [mozIStorageService.openUnsharedDatabase]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: resource://gre/modules/XPIProvider.jsm -> resource://gre/modules/XPIProviderUtils.js :: XPIDB_openDatabaseFile :: line 478" data: no]
Source File: resource://gre/modules/XPIProvider.jsm -> resource://gre/modules/XPIProviderUtils.js
Line: 478

Timestamp: 02/08/13 09:52:50
Error: ERROR addons.xpi-utils: Failed to remove database that could not be opened: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsILocalFile.remove]" nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)" location: "JS frame :: resource://gre/modules/XPIProvider.jsm -> resource://gre/modules/XPIProviderUtils.js :: XPIDB_openDatabaseFile :: line 487" data: no]
Source File: resource://gre/modules/XPIProvider.jsm -> resource://gre/modules/XPIProviderUtils.js
Line: 487

Timestamp: 02/08/13 09:52:50
Error: ERROR addons.xpi-utils: Failed to open database (2nd attempt): [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [mozIStorageService.openUnsharedDatabase]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: resource://gre/modules/XPIProvider.jsm -> resource://gre/modules/XPIProviderUtils.js :: XPIDB_openDatabaseFile :: line 493" data: no]
Source File: resource://gre/modules/XPIProvider.jsm -> resource://gre/modules/XPIProviderUtils.js
Line: 493

Timestamp: 02/08/13 09:52:51
Error: [Exception... "'Method not implemented' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "native frame :: :: :: line 0" data: no]

Timestamp: 02/08/13 09:52:51
Error: NO SETTINGS PERMISSION FOR: app://system.gaiamobile.org

Source File: file:///media/media/Partag%C3%83%C2%A9/Firefox/wildfier/extensions/r2d2b2g@mozilla.org/resources/r2d2b2g/data/linux64/b2g/components/SettingsManager.js
Line: 382

Timestamp: 02/08/13 09:52:51
Error: NS_ERROR_FAILURE: Denied
Source File: file:///media/media/Partag%C3%83%C2%A9/Firefox/wildfier/extensions/r2d2b2g@mozilla.org/resources/r2d2b2g/data/linux64/b2g/components/Webapps.js
Line: 663

Timestamp: 02/08/13 09:52:51
Error: TypeError: navigator.mozSettings is null
Source File: app://system.gaiamobile.org/js/value_selector/value_selector.js
Line: 108

Timestamp: 02/08/13 09:52:51
Error: SecurityError: The operation is insecure.
Source File: app://system.gaiamobile.org/shared/js/idletimer.js
Line: 101

Timestamp: 02/08/13 09:52:51
Error: TypeError: settings is null
Source File: app://system.gaiamobile.org/js/sleep_menu.js
Line: 41

Timestamp: 02/08/13 09:52:51
Error: TypeError: settings is null
Source File: app://system.gaiamobile.org/shared/js/settings_listener.js
Line: 34

Timestamp: 02/08/13 09:52:51
Error: SecurityError: The operation is insecure.
Source File: app://system.gaiamobile.org/shared/js/idletimer.js
Line: 101

Timestamp: 02/08/13 09:52:53
Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/FileUtils.jsm :: FileUtils_getDir :: line 63" data: no]
Source File: resource://gre/modules/FileUtils.jsm
Line: 63

@mykmelez
Owner

Some of those failures are probably unrelated, but others are probably relevant. Nevertheless, it's hard to tell what the problem is from the messages.

I wonder if it's related to the path to the Firefox profile containing an accented character. Try creating a directory whose path doesn't contain such a character, then run Firefox with the profile set to that directory:

mkdir /path/to/profile
/path/to/firefox -no-remote -profile /path/to/profile

Then install the latest preview build of the Simulator and see if you still have the problem.

@wildfier

Indeed you were right. I now works perfectly thank you.

@wildfier wildfier closed this
@mykmelez
Owner

Great, I'm glad it works for you now! I'm going to leave this issue open to track the problem, since we'll want to figure out why it happens and fix the underlying problem.

@mykmelez mykmelez reopened this
@ochameau
Collaborator

I tried to reproduce this issue by launching the addon in a profile with accents and I haven't seen any issue on both windows, nor linux.
But, I remember having seen this nsIDOMEventListener::handleEvent]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED) exception myself while testing another issue (#536). That ended up being an unknown environment issue. The only way to get rid of the exception was to do a make clean!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.