← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1456627] Re: Almost unusuable while non-Ubuntu device connected through adb

 

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

---------------
qtcreator-plugin-ubuntu (3.1.1+15.10.20150616-0ubuntu1) wily; urgency=medium

  [ Benjamin Zeller ]
  * Fix Bug lp:1362028 "SDK not able to provide further hint about
    missing apparmor policy" (LP: #1362028)
  * Fix Bug lp:1455566 "ubuntu sdk references obsolete system-image
    channel names" (LP: #1455566)
  * Fix bug lp:1456627 "Almost unusuable while non-Ubuntu device
    connected through adb" (LP: #1456627)

  [ Marcus Tomlinson ]
  * Split scope template into "14.10" and "Current" variations (LP:
    #1464108)

  [ Nicholas Skaggs ]
  * Update qml based templates to best practicies

  [ Niklas Wenzel ]
  * Allow parallel builds using "dpkg-buildpackage -jN", reducing build
    time on multi-core CPUs (LP: #1465018)
  * Fix building translations (LP: #1257313)

  [ nskaggs ]
  * Update qml based templates to best practicies

 -- CI Train Bot <ci-train-bot@xxxxxxxxxxxxx>  Tue, 16 Jun 2015 14:48:19
+0000

** Changed in: qtcreator-plugin-ubuntu (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1456627

Title:
  Almost unusuable while non-Ubuntu device connected through adb

Status in qtcreator-plugin-ubuntu package in Ubuntu:
  Fix Released

Bug description:
  I'm using qtcreator-plugin-ubuntu
  3.1.1+15.10.20150508-0ubuntu1i~0trusty1 from the Trusty PPA.

  I'm currently porting my Ubuntu App to Android, so I have my android
  phone connected to my computer using USB.

  A few days ago I noticed that qtcreator started using a complete CPU
  core soon after startup, which makes working with qtcreator quite
  unpleasant (sluggish interface, and CPU fan noise). After some time
  (30 minutes?), it is then no longer possible to start a build process
  in qtcreator for what appears to be a strange reason. I no longer have
  the error message. I guess this is because of some kind of ressource
  leak.

  Now I noticed these popping up in ps aux quite frequently while it happens:
  > x      10209  8.0  0.0  19696  2972 ?        S    14:57   0:00 /bin/bash /usr/share/qtcreator/ubuntu/scripts/device_version 007692f760d6239b
  > x      10233  0.0  0.0  19696   304 ?        S    14:57   0:00 /bin/bash /usr/share/qtcreator/ubuntu/scripts/device_version 007692f760d6239b
  > x      10234  0.0  0.0  19696  1888 ?        S    14:57   0:00 /bin/bash /usr/share/qtcreator/ubuntu/scripts/device_version 007692f760d6239b

  And this test shows that something, probably qtcreator, is forking almost 30 times per second:
  $ while true; do ps aux | grep OnlyFindGrepItself; sleep 10; done
  > x      10841  0.0  0.0  18980  2152 pts/0    S+   14:58   0:00 grep --color=auto OnlyFindGrepItself
  > x      11132  0.0  0.0  18980  2152 pts/0    S+   14:58   0:00 grep --color=auto OnlyFindGrepItself
  > x      11406  0.0  0.0  18980  2152 pts/0    R+   14:58   0:00 grep --color=auto OnlyFindGrepItself

  As soon as I disconnect my android device from the USB port, the CPU
  fan goes silent and there's no significant CPU usage any more.

  
  So I guess that something in the qt creator Ubuntu plugin tries to detect my android phone as an Ubuntu device, fails, and then instantly tries again.

  This is from qtcreator strace and repeats quite often as well: read(36, "/system/bin/sh: chroot: not found\r\n", 35) = 35
  Looks like something is trying to use chroot on my phone, and my Android lollipop can't do that. So the device_version script might not be the only thing that keeps my system busy.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1456627/+subscriptions


References