Almost unusuable while non-Ubuntu device connected through adb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator-plugin-ubuntu (Ubuntu) |
Fix Released
|
Medium
|
Benjamin Zeller |
Bug Description
I'm using qtcreator-
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/
> x 10233 0.0 0.0 19696 304 ? S 14:57 0:00 /bin/bash /usr/share/
> x 10234 0.0 0.0 19696 1888 ? S 14:57 0:00 /bin/bash /usr/share/
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.
Related branches
- Zoltan Balogh: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 158 lines (+31/-8)1 file modifiedsrc/ubuntu/ubuntudevice.cpp (+31/-8)
Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
status: | Incomplete → Triaged |
Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
assignee: | Zoltan Balogh (bzoltan) → Benjamin Zeller (zeller-benjamin) |
status: | Triaged → In Progress |
While this happened all the time in the last few days, I now did something that apparently made it stop (temporarily?).
Maybe deleting the device from the Devices view in Ubuntu SDK? It re-appeared quickly, but maybe that stopped it. Maybe it's important that the same device (Nexus 4) has been used with the Ubuntu OS instead of Android before, using the Dual-Boot mechanism.