title: Unable to use WebIDE to interact with KaiOS emulator
body: <p>I followed the official guide given <a href="https://developer.kaiostech.com/simulator" rel="nofollow noreferrer">here</a>. Got so far as <code>./b2g-bin -profile ./gaia/profile -start-debugger-server 6000</code>. The simulator window launched up, displayed the KaiOS logo but would go no further. 
  Then, I tried using <code>sudo</code>. That seemed to have worked, as now the simulator went all the way to display the clock. </p>
  
  <p>Launched WebIDE from Firefox and added a Remote Runtime. Then created a HelloWorld app, but the button to 'Install and Run' is disabled.</p>
  
  <p>Where did I go wrong?</p>
  
  <p>Here is the terminal output, if that is any help:</p>
  
  <pre><code>(b2g:3992): Gtk-WARNING **: Theme parsing error: gtk-contained.css:27:19: Missing name of pseudo-class
  
  (b2g:3992): Gtk-WARNING **: Theme parsing error: gtk-contained.css:2780:55: Not a valid image
  JavaScript error: resource://gre/modules/AddonManager.jsm, line 410: NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]
  1532463036227   Marionette  INFO    Listening on port 2828
  --*-- KillSwitchMain: No proper libcutils binding, aborting.
  PermissionsTable.jsm: expandPermissions: Invalid access for permission storage: readwrite
  PermissionsTable.jsm: expandPermissions: Unknown Permission: device-storage:audiosPermissionsTable.jsm: expandPermissions: Invalid access for permission storage: readwrite
  PermissionsInstaller.jsm: 'device-storage:audios' is not a valid Webapps permission name.###################################### forms.js loaded
  ###################################### BrowserElementCopyPaste.js loaded
  ############################### browserElementPanningAPZDisabled.js loaded
  ############################### browserElementPanning.js loaded
  ######################## BrowserElementChildPreload.js loaded
  Could not register invalid system message entry for app://calculator.gaiamobile.org/manifest.webapp
  []
  Could not register invalid system message entry for app://todo.gaiamobile.org/manifest.webapp
  []
  Could not register invalid system message entry for app://contact.gaiamobile.org/manifest.webapp
  []
  Could not register invalid system message entry for app://geoloc.gaiamobile.org/manifest.webapp
  []
  Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
  "bluetooth-requestconfirmation"
  Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
  "bluetooth-requestpasskey"
  Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
  "bluetooth-requestpincode"
  Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
  "bluetooth-authorize"
  Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
  "bluetooth-cancel"
  Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
  "bluetooth-pairedstatuschanged"
  Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
  "bluetooth-hfp-status-changed"
  Opening debugger server on 6000
  JavaScript error: app://system.gaiamobile.org/js/navigation_map.js, line 49: ReferenceError: NT_DOM_HELPER is not defined
  XXX FIXME : Dispatch a mozChromeEvent: system-first-paint
  XXX FIXME : Dispatch a mozChromeEvent: webapps-registry-ready
  JavaScript error: jar:file:///home/rijumone/Downloads/b2g/omni.ja!/components/nsDOMIdentity.js, line 8: Error: navigator.id.watch was already called
  JavaScript error: app://system.gaiamobile.org/js/antitheft_manager.js, line 1: NS_ERROR_UNEXPECTED: 
  ###################################### BrowserElementCopyPaste.js loaded
  ############################### browserElementPanningAPZDisabled.js loaded
  ############################### browserElementPanning.js loaded
  ######################## BrowserElementChildPreload.js loaded
  JavaScript error: resource://gre/modules/PhoneNumberUtils.jsm, line 2: NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]
  JavaScript error: app://launcher.gaiamobile.org/dist/app.bundle.js, line 3: TypeError: navigator.mozMobileConnections is undefined
  XXX FIXME : Got a mozContentEvent: system-message-listener-ready
  1532463038128   AlarmsService   DEBUG   init()
  1532463038129   AlarmsService   DEBUG   _restoreAlarmsFromDb()
  JavaScript error: app://system.gaiamobile.org/js/software_button_manager.js, line 5: TypeError: this._currentOrientation.index is not a function
  1532463038201   AlarmsService   DEBUG   Callback after getting alarms from database: []
  1532463038201   AlarmsService   DEBUG   Current alarm: null
  1532463038201   AlarmsService   DEBUG   Alarm queue: []
  JavaScript error: app://system.gaiamobile.org/dist/bundle.js, line 1: TypeError: e is undefined
  ###################################### BrowserElementCopyPaste.js loaded
  ############################### browserElementPanningAPZDisabled.js loaded
  ############################### browserElementPanning.js loaded
  ######################## BrowserElementChildPreload.js loaded
  JavaScript error: resource://gre/modules/DOMIdentity.jsm, line 19: Error: PERMISSION_DENIED
  Could not have FTU: manifestURL:undefined, _ftu:null
  JavaScript error: app://system.gaiamobile.org/js/statusbar.js, line 74: ReferenceError: Bluetooth is not defined
  JavaScript error: app://system.gaiamobile.org/js/app_transition_controller.js, line 19: TypeError: Service.query(...) is null
  JavaScript error: jar:file:///home/rijumone/Downloads/b2g/omni.ja!/components/BrowserElementParent.js, line 98: NS_ERROR_NOT_IMPLEMENTED: SetNFCFocus for in-process mode is not yet supported
  XXX FIXME : Got a mozContentEvent: inputmethod-update-layouts
  XXX FIXME : Got a mozContentEvent: inputmethod-update-layouts
  JavaScript error: app://launcher.gaiamobile.org/dist/app.bundle.js, line 4: TypeError: navigator.mozVoicemail is undefined
  JavaScript error: app://system.gaiamobile.org/js/statusbar.js, line 51: TypeError: this.icons.dataConnection is undefined
  ###################################### BrowserElementCopyPaste.js loaded
  ############################### browserElementPanningAPZDisabled.js loaded
  ############################### browserElementPanning.js loaded
  ######################## BrowserElementChildPreload.js loaded
  Keyboard.jsm Warning: There are more than one content page with input-manage permission. There will be undeterministic responses to addInput()/removeInput() if both content pages are trying to respond to the same request event.
  
  (/home/rijumone/Downloads/b2g/plugin-container:4087): Gtk-WARNING **: Theme parsing error: gtk-contained.css:27:19: Missing name of pseudo-class
  
  (/home/rijumone/Downloads/b2g/plugin-container:4087): Gtk-WARNING **: Theme parsing error: gtk-contained.css:2780:55: Not a valid image
  ###################################### forms.js loaded
  ############################### browserElementPanningAPZDisabled.js loaded
  ############################### browserElementPanning.js loaded
  ###################################### BrowserElementCopyPaste.js loaded
  ######################## BrowserElementChildPreload.js loaded
  JavaScript error: app://launcher.gaiamobile.org/dist/app.bundle.js, line 3: TypeError: navigator.mozBluetooth is undefined
   -*- Shell.js: Starting USB debugger on 6000
  XXX FIXME : Dispatch a mozPrefChromeEvent: undefined
  XXX FIXME : Dispatch a mozChromeEvent: remote-debugger-prompt
  XXX FIXME : Got a mozContentEvent: remote-debugger-prompt
  *** UTM:SVC TimerManager:notify - notified @mozilla.org/b2g/webapps-update-timer;1
  </code></pre>