Closed Bug 912646 Opened 11 years ago Closed 11 years ago

Closing app toolbox causes phone to disconnect

Categories

(DevTools Graveyard :: WebIDE, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 26

People

(Reporter: jryans, Assigned: jryans)

References

Details

Attachments

(3 files)

Attached file Log output after closing toolbox (deleted) —
I wasn't sure if this was a known issue or not. I am using Paul's app-manager branch (commit 247def72d8 "screenshot over actor") with the latest Keon nightly (build ID 20130904022733). I can debug apps successfully. STR: 1. Open App Manager 2. Connect to phone 3. Go to My Device -> Installed Apps 4. Click one of the Debug buttons 5. Close the toolbox ER: Toolbox closes, can debug another app. AR: Toolbox closes, and phone disconnects unexpectedly. See attached log.
That's a (very) known issue, but I don't think we have any bug opened yet. We are using a (very) hacky workaround in the simulator for this particular issue: https://github.com/mozilla/r2d2b2g/blob/master/addon/lib/simulator.js#L1080-L1095 We need to tweak devtools codebase in order to address that in a (very) sane way ;)
Blocks: appmgr_v1
Assignee: nobody → jryans
OS: Mac OS X → All
Hardware: x86 → All
Just a few cleanups to simplify and reduce repetition.
Attachment #801010 - Flags: review?(dcamp)
This patch changes the lifetime management for remote tabs. If you make a target for a local tab, and then call makeRemote(), target.js creates a client, connects it, and closes it on destroy. It fully manages the client's lifecycle, which makes sense, and remains unchanged. If you make a target for a remote tab, you pass in to the target a client which you have already created and connected. Prior to this patch, the target would close it on destroy because it assumed you have no other need for the client you passed to it. This patch changes things so that the target will not attempt to close the client you gave it in this case. The caller now becomes responsible for doing that.
Attachment #801014 - Flags: review?(dcamp)
Attachment #801014 - Flags: review?(dcamp) → review+
Attachment #801010 - Flags: review?(dcamp) → review+
I went ahead and pushed these patches to try: https://tbpl.mozilla.org/?tree=Try&rev=e7af0dfd12d7
Can I land that?
Yep!
Whiteboard: [land-in-fx-team]
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Whiteboard: [needs-coverage]
Whiteboard: [needs-coverage]
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: