Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Simulator fails to start when path contains accented character #247

Open
wildfier opened this issue Jan 3, 2013 · 10 comments
Open

Simulator fails to start when path contains accented character #247

wildfier opened this issue Jan 3, 2013 · 10 comments
Labels

Comments

@wildfier
Copy link

wildfier commented Jan 3, 2013

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 :: :: <TOP_LEVEL> :: 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
Copy link
Contributor

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
Copy link
Author

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

@mykmelez
Copy link
Contributor

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

@wildfier
Copy link
Author

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.

@nickdesaulniers
Copy link
Collaborator

@wildfier
Copy link
Author

wildfier commented Feb 8, 2013

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 :: :: <TOP_LEVEL> :: 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
Copy link
Contributor

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
Copy link
Author

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

@mykmelez
Copy link
Contributor

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.

@ochameau
Copy link
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants