Closed Bug 1054967 Opened 10 years ago Closed 10 years ago

ADB helper addon breaks parallel ADB sessions

Categories

(DevTools Graveyard :: WebIDE, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: janx, Assigned: jryans)

References

Details

Attachments

(1 file)

When using WebIDE with the ADB helper addon, previously open ADB sessions get closed. This is annoying for developers who are watching `adb logcat` while using the WebIDE.
(In reply to Jan Keromnes [:janx] from comment #0)
> When using WebIDE with the ADB helper addon, previously open ADB sessions
> get closed. This is annoying for developers who are watching `adb logcat`
> while using the WebIDE.

It's not only about logcat, but I may have one device connected to debug an app and another flashing gecko/gaia for instance.
adb helper addon shouldn't mess up with existing adb instances in first place!
And that's what the addon is meant to do.
We have a module for checking already running adb instances.
I'm wondering if it is just about this too strict version checking test over here:
  https://github.com/mozilla/adbhelper/blob/master/adb-running-checker.js#L43
We should accept any somewhat recent version and not only just one arbitrary one!
Can you be more specific about when you notice the external ADB session is terminated?

In a few quick tests, I saw a logcat session get terminated on close of Firefox, but it remained open otherwise.

Is that what you see, or are there other issues?
Flags: needinfo?(janx)
Flags: needinfo?(janx) → needinfo?(lissyx+mozillians)
(In reply to J. Ryan Stinnett [:jryans] from comment #3)
> Can you be more specific about when you notice the external ADB session is
> terminated?
> 
> In a few quick tests, I saw a logcat session get terminated on close of
> Firefox, but it remained open otherwise.
> 
> Is that what you see, or are there other issues?

I saw parallel logcat getting killed when starting/stopping Firefox.
Flags: needinfo?(lissyx+mozillians)
This change allows ADB to stay alive for me, assuming the server was alive before Firefox was started.

Test builds:

https://ftp.mozilla.org/pub/mozilla.org/labs/fxos-simulator/adb-helper/prerelease/

Jan, does this fix the issue for you?
Assignee: nobody → jryans
Status: NEW → ASSIGNED
Attachment #8486643 - Flags: review?(poirot.alex)
Flags: needinfo?(janx)
Thanks for the fix! Forwarding to Alexandre who originally complained about this.
Flags: needinfo?(janx) → needinfo?(lissyx+mozillians)
Attachment #8486643 - Flags: review?(poirot.alex) → review+
It seems to work properly now, thanks!
Flags: needinfo?(lissyx+mozillians)
Merged: https://github.com/mozilla/adbhelper/commit/ddd88d02d1baa273700c64509b76bb033b91de38

Released as 0.5.2.

If you installed the test build, it should receive a proper update to the released one (or at least it did for me).
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
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: