Closed Bug 1226164 Opened 9 years ago Closed 7 years ago

Can't open Toolbox in WebIDE to debug apps

Categories

(DevTools Graveyard :: WebIDE, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: cmills, Unassigned)

Details

This seems to have started after I installed the latest foxfood build on my XPeria (as of November 18th), and/or when I enabled developer mode on the device.

Now I seem to be able to install apps on the device via WebIDE, but when I try to open the toolbox to debug them, it gives me a message “cannot connect to app: app://xxxxxxx/manifest.webapp”.

Sometimes it then won’t let me update the app on the device after I've made a change until I restart Firefox completely, although this is sporadic.

I’m getting this on nightly and dev edition. I'm on Mac OSX.

The corresponding Browser console output looks like this:

"Can't connect to app: app://d3708d79-49ab-8a42-bddd-73dd7a9ab02c/manifest.webapp" webide.js:354:5

Error: can't connect to app
Stack trace:
exports.AppManager.getTarget/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/webide/modules/app-manager.js:336:13
TaskImpl_run@resource://gre/modules/Task.jsm:314:40
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:934:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:813:7
Promise*this.PromiseWalker.scheduleWalkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:744:11
this.PromiseWalker.schedulePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:776:7
this.PromiseWalker.completePromise@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:711:7
notify@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/timers.js:40:9
 Promise-backend.js:937:21
Unfortunately, this stack doesn't help much.
Isn't there another exception/error message somewhat related to webide before this one?
Otherwise, there is most likely interesting messages hidden in adb output.
Could you also retrieve the output of: adb logccat | grep Gecko ?

Thanks for the report!
(In reply to Alexandre Poirot [:ochameau] from comment #1)
> Unfortunately, this stack doesn't help much.
> Isn't there another exception/error message somewhat related to webide
> before this one?

no, there wasn't. I deliberately closed it all down, started a fresh session, and worked up to reproducing the error so I could make sure I gave you just the relevant stuff. This was all I got 

> Otherwise, there is most likely interesting messages hidden in adb output.
> Could you also retrieve the output of: adb logccat | grep Gecko ?


This is what I got:


I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0x9f9418b0, GraphicBuffer 0x9f94f600.
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa4595a90, GraphicBuffer 0x9a5f1a00.
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa4595ac0, GraphicBuffer 0xa5076700.
I/Gecko   (  319): [SharedSurface_Gralloc 0xa4595ac0] destroyed
I/Gecko   (  319): [SharedSurface_Gralloc 0x9f9418b0] destroyed
I/Gecko   (  319): [SharedSurface_Gralloc 0xa4595a90] destroyed
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0x9f912940, GraphicBuffer 0x9a6fc180.
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa4558a30, GraphicBuffer 0x9a5f1f00.
I/Gecko   (  319): [SharedSurface_Gralloc 0xa4558a30] destroyed
I/Gecko   (  319): [SharedSurface_Gralloc 0x9f912940] destroyed
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa4593df0, GraphicBuffer 0x9cef7900.
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa4f8fa00, GraphicBuffer 0x9cef7800.
I/Gecko   (  319): [SharedSurface_Gralloc 0xa4f8fa00] destroyed
I/Gecko   (  319): [SharedSurface_Gralloc 0xa4593df0] destroyed
I/Gecko   (  319): XXX FIXME : Dispatch a webapps-launch: undefined
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/GeckoDump(  319): AdbController: Failed to get key: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: chrome://b2g/content/shell.js :: checkReloadKey :: line 500"  data: no]
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0x9f9115b0, GraphicBuffer 0x9a6fcd80.
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa458e2e0, GraphicBuffer 0x9a6fc400.
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0x9f92bb20, GraphicBuffer 0x9a5f2880.
I/Gecko   (  319): [SharedSurface_Gralloc 0xa458e2e0] destroyed
I/Gecko   (  319): [SharedSurface_Gralloc 0x9f92bb20] destroyed
I/Gecko   (  319): [SharedSurface_Gralloc 0x9f9115b0] destroyed
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: webapps-ask-uninstall
I/GeckoDump(  319): XXX FIXME : Got a mozContentEvent: webapps-uninstall-granted
I/Gecko   (  319): AlarmService: observe(): webapps-clear-data
I/Gecko   (  319): -- InterAppCommService: 1447934057064: Finish updating registered/allowed connections for an uninstalled app.
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: remote-debugger-prompt
I/GeckoDump(  319): XXX FIXME : Got a mozContentEvent: remote-debugger-prompt
I/Gecko   (  319): XXX FIXME : Dispatch a webapps-launch: undefined
I/Gecko   ( 6415): ######################## extensions.js loaded
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0x9f934c40, GraphicBuffer 0xa4fc3700.
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa4559730, GraphicBuffer 0xa6672c80.
I/Gecko   (  319): [SharedSurface_Gralloc 0x9f934c40] destroyed
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa4f3e520, GraphicBuffer 0x9a5f1c00.
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa4f8fc70, GraphicBuffer 0xa8d2b580.
I/Gecko   (  319): [SharedSurface_Gralloc 0xa4f3e520] destroyed
I/Gecko   (  319): [SharedSurface_Gralloc 0xa4f8fc70] destroyed
I/Gecko   (  319): [SharedSurface_Gralloc 0xa4559730] destroyed
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: remote-debugger-prompt
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0x9f924f70, GraphicBuffer 0x9cef8f00.
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa4561bb0, GraphicBuffer 0xa51bcb00.
I/Gecko   (  319): SharedSurface_Gralloc::Create -------
I/Gecko   (  319): SharedSurface_Gralloc::Create: success -- surface 0xa458e670, GraphicBuffer 0xa51bd080.
I/Gecko   (  319): [SharedSurface_Gralloc 0x9f924f70] destroyed
I/Gecko   (  319): [SharedSurface_Gralloc 0xa4561bb0] destroyed
I/Gecko   (  319): [SharedSurface_Gralloc 0xa458e670] destroyed
I/GeckoDump(  319): XXX FIXME : Got a mozContentEvent: remote-debugger-prompt
I/Gecko   (  319): XXX FIXME : Dispatch a webapps-launch: undefined
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status
I/Gecko   (  319): XXX FIXME : Dispatch a mozChromeEvent: recording-status



> Thanks for the report!
For an update, read https://bugzilla.mozilla.org/show_bug.cgi?id=1226215#c4

Same situation for this bug.
Apps are being removed with B2G cleanup.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.