Launching QtCreator causes devices to go into USB reconnect loop

Bug #1322581 reported by Michał Sawicz
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu (Ubuntu)
Fix Released
Critical
Benjamin Zeller

Bug Description

With the ubuntu plugin enabled and 3 devices connected, everything is fine until I launch QtCreator, when all 3 devices go into a reconnect loop, dmesg tail attached.

This can only be resolved by rebooting, as far as I can tell.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: qtcreator-plugin-ubuntu 3.0.1+14.10.20140522.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.15.0-1.5-generic 3.15.0-rc5
Uname: Linux 3.15.0-1-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 2.14.2-0ubuntu4
Architecture: amd64
CurrentDesktop: Unity
Date: Fri May 23 13:14:13 2014
SourcePackage: qtcreator-plugin-ubuntu
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Michał Sawicz (saviq) wrote :
Revision history for this message
Michał Sawicz (saviq) wrote :

FWIW, this is probably not a bug in the plugin itself, but it seems to trigger it.

It might be something like trying to access adb for all three devices at the same time or so.

Zoltan Balogh (bzoltan)
affects: qtcreator-plugin-ubuntu (Ubuntu) → qtcreator-plugin-ubuntu
Zoltan Balogh (bzoltan)
no longer affects: qtcreator-plugin-ubuntu
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Confirmed
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

The problem is caused by the adb port forwarding. For each connected devcie the QtC reserves (or at least attempts to reserve) 20 ports. So when more than one device is connected (emulator is a device too) and the number of forwarded ports reaches 32 the adb port forwardings starts to fail and the outcome is rather unpredictable.

The solution is to limit the number of reserved ports to 10 and block new devices when adb runs out of available ports (under 32)

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → Critical
assignee: nobody → Benjamin Zeller (zeller-benjamin)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 3.1.1+15.04.20141126.1-0ubuntu1

---------------
qtcreator-plugin-ubuntu (3.1.1+15.04.20141126.1-0ubuntu1) vivid; urgency=low

  [ Benjamin Zeller ]
  * Fix Bugs lp:1396406 and lp:1322581 weird behaviour when multiple
    devices are attached Only use 10 ports per device, everything > 30
    ports breaks adb,. UbuntuLocalPortsManager will only return max 30
    ports now (LP: #1322581, #1396406)
 -- Ubuntu daily release <email address hidden> Wed, 26 Nov 2014 21:00:59 +0000

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.