QtCreator stops responding (crashes ?) in alpha 4 version [WIN7 PRO]

87 views
Skip to first unread message

mih90

unread,
Sep 19, 2012, 7:14:14 AM9/19/12
to andro...@googlegroups.com
Hi, I'm having a problem with deploying and running applications on device, I had the same problem with alpha 3 version.

I can run app from QtCreator only once, after I close app on device and try to run It again (with some changes or without) the QtCreator stops responding and i have to close it. It's little annoying because it's rather unusable in that state. Did someone have the same issues ? I didn't find any topics about such situation.

Michael Heiser

unread,
Sep 19, 2012, 7:21:16 AM9/19/12
to andro...@googlegroups.com

Yes

 

I also have and have had the same problems with alpa 4 and alpha 3. I’m working on Windows 7 32bit. Whenn I hit Run the creator sometimes freezes and only a restart of Qt Creator is possible. I investigated this on my machine a bit further and I came to the conclusion that adb.exe is the problem. There are 2 or three instances of adb running when I deploy and run my project.

When I kill one of the process instances in task manager Qt Creator continues running and does its job. So there are currently two possibilities for me for running and deploying. The first is to kill every time you start deploy & run in Qt Creator adb.exe once. The other possibility is to deploy and run your app via console using adb manually.

 

Regards Michael

paulus

unread,
Sep 19, 2012, 7:51:46 AM9/19/12
to andro...@googlegroups.com
I think most (if not all?) have this problem on Win7. A workaround is what Michael suggested, you could even make a little batchscript that kills adb.exe after each debug run. The solution I went for is switching development to a linux environment. Now and then there are still some issues with adb, but on the whole it's a lot better than under Windows 7.

Ray Donnelly

unread,
Sep 19, 2012, 7:53:32 AM9/19/12
to andro...@googlegroups.com
From the Alpha 4 release notes (which it seems no one reads!):

- On Windows, adb loses track of the connected devices a lot and
otherwise misbehaves (worse with emulators), causing QtCreator to
hang. When this happens, to get it to respond again you can execute:
android-sdk\platform-tools\adb.exe kill-server &
android-sdk\platform-tools\adb start-server &
android-sdk\platform-tools\adb devices (from cmd.exe in
YOUR_INSTALLATION_FOLDER) or:
taskkill /F /IM adb.exe /T (from cmd.exe in any directory)

Cheers,

Ray.

Ray Donnelly

unread,
Sep 19, 2012, 7:54:32 AM9/19/12
to andro...@googlegroups.com
Jumping to Linux due to not reading release notes is a bit extreme
IMHO (but then Linux is great so maybe for the best in the long run)

paulus

unread,
Sep 19, 2012, 8:04:31 AM9/19/12
to andro...@googlegroups.com
Well I had it 'solved' for Win7, but I have Win7 and linux in a dual-boot setup anyway so in my case it really didn't matter which one to choose. What was more important for me was the added scripting capabilities in linux compared to Windows. But the free solution to this issue is a nice bonus of course :)

Ray Donnelly

unread,
Sep 19, 2012, 8:07:30 AM9/19/12
to andro...@googlegroups.com
Fair enough!

Going off topic now, but you can use MSYS in Windows for scripting
(assuming you meant bash scripting) and it works quite well. Sounds
like I'm defending Windows here. I must stop that...

Michael Heiser

unread,
Sep 19, 2012, 8:09:17 AM9/19/12
to andro...@googlegroups.com
Paulus what was your solution on Windows? I' thinking now about adding a
Custom Process Step to the Run Settings of my project that kills all adb
instances before deploying the project to the device. Is this the right
issue? Or do you have another good working workaround?

Michael

-----Ursprüngliche Nachricht-----
Auftrag von Ray Donnelly
Gesendet: Mittwoch, 19. September 2012 14:08
An: andro...@googlegroups.com
Betreff: Re: QtCreator stops responding (crashes ?) in alpha 4 version [WIN7
PRO]

Ray Donnelly

unread,
Sep 19, 2012, 8:11:49 AM9/19/12
to andro...@googlegroups.com
Try:
taskkill /F /IM adb.exe /T

paulus

unread,
Sep 19, 2012, 8:18:31 AM9/19/12
to andro...@googlegroups.com
Michael: what you are describing is what I did. The command I used is given by mingw.android above, so nothing to add :)

Michael Heiser

unread,
Sep 19, 2012, 8:20:24 AM9/19/12
to andro...@googlegroups.com
Yeah!

This is it!

So little guide:

In QtCreator open Projects on left vertical pane. Choose <Run> at
<Build/Run>.
Select Add Deploy Step and then insert "taskkill.exe" as Command. Then
insert
"/F /IM adb.exe /T" as Arguments. Move this step on top that this command is
executed before all other deploy steps.
QtCreator then kills all adb instances and restarts them. The Ide could
perhaps freeze a few seconds but it continues itself by running the shell
output of your app.

I tried it a few times and it worked without restarting the IDE!

Thanks Ray, Thanks Paul!

Cheers Michael


-----Ursprüngliche Nachricht-----
Von: andro...@googlegroups.com [mailto:andro...@googlegroups.com] Im
Auftrag von Ray Donnelly
Gesendet: Mittwoch, 19. September 2012 14:12

Ray Donnelly

unread,
Sep 19, 2012, 8:33:15 AM9/19/12
to andro...@googlegroups.com

Great. For the benefit of others, restarting the USE was never necessary, just using tallulah brings it back.

Ray Donnelly

unread,
Sep 19, 2012, 8:39:12 AM9/19/12
to andro...@googlegroups.com
Wow, some mobile phone email fails there ;-)

USE -> QtC
tallulah -> taskkill

;-)

Michael Heiser

unread,
Sep 19, 2012, 8:55:13 AM9/19/12
to andro...@googlegroups.com
You need to review your dictionary :D

-----Ursprüngliche Nachricht-----
Von: andro...@googlegroups.com [mailto:andro...@googlegroups.com] Im
Auftrag von Ray Donnelly
Gesendet: Mittwoch, 19. September 2012 14:39
An: andro...@googlegroups.com
Betreff: Re: AW: QtCreator stops responding (crashes ?) in alpha 4 version

Marco Bernasocchi

unread,
Sep 19, 2012, 9:29:18 AM9/19/12
to andro...@googlegroups.com

Ray for a second i though i had lost you there ;)

Marco Bernasocchi (mobile)
http://opengis.ch

mih90

unread,
Sep 19, 2012, 4:17:05 PM9/19/12
to andro...@googlegroups.com
Thanks it works now ! :)
Reply all
Reply to author
Forward
0 new messages