← Back to team overview

ubuntu-sdk-bugs team mailing list archive

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

 

Public bug reported:

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.

** Affects: qtcreator-plugin-ubuntu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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:
  New

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


Follow ups

References