Bug 2142

Summary: bitbake not be stoped when force exit hob in early parising recipes after selected a new arch
Product: [Build System, Metadata & Runtime] Hob Reporter: anliming <limingx.l.an>
Component: hobAssignee: Kai Kang <kai.kang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Low CC: dongxiao.xu, jessica.zhang, jiajun.xu, liang.li2, poky.bs.watcher, poky.watcher, richard.purdie, scott.a.garman, shane.wang, song.liu
Version: unspecified   
Target Milestone: 1.2.1   
Hardware: x86   
OS: Multiple   
Whiteboard: (QA testing completed) Done
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description anliming 2012-03-20 03:37:01 UTC
at parsing recipsed phase, if clicked the window 'exit' button will pop the 'Exit Hob' dialog, then selected the 'Exit Hob', the window will be closed, but the bitbake can't be stoped, if you use the 'ps -aux | grep -i bitbake' to see it, so we should do some related handler for stop it.
Comment 1 Shane Wang 2012-04-12 13:53:41 UTC
knotty doesn't have this issue.

The feeder exits correctly. parsers don't on the bitbake server side.

When I changed the parallel number to single process, it disappeared.

Dongxiao said with xmlrpc we don't have the issue.

Through bisect, the commit is cf60f95d9fc53828c1aa95198f24917aae2617e3.

So far I can't root cause;-(
Comment 2 Shane Wang 2012-04-12 13:55:17 UTC
I submit a walkaround for this one. Hob doesn't allow users to exit when Hob is busy because at that time, the mouse is a watch instead of a pointer. If the user really wants to exit, he/she can click "Stop" to cancel it first and then "Exit Hob".
Comment 3 Shane Wang 2012-04-13 09:46:58 UTC
More update on the bug:

depexp has the same issue.

The issue is:

If the bitbake client trigger to parse recipes, then close the bitbake client. The backend "python" processes are still alive. So the phenomenon is the bitbake client hangs.

And this happens sometimes. Sometimes the backend "python" processes will also end. Very strange!
Comment 6 Shane Wang 2012-04-17 06:52:54 UTC
Reopen it since so far we only have walkaround but not root caused.
Comment 7 Shane Wang 2012-04-17 06:53:17 UTC
knotty has the same issue:

yocto-build5@yocto-build5:~/poky-contrib/build2$ bitbake core-image-minimal
Pseudo is not present but is required, building this first before the main build
1
^Crsing recipes:   3% |##                                                           | ETA:  00:00:21
Keyboard Interrupt, closing down...

^C
Second Keyboard Interrupt, stopping...

^C^CExecution was interrupted, returning a non-zero exit code.
^C^C^C^C^C




^C^C^C^C^C^C


^C^C^C^C^C^C^C^C
Comment 8 Shane Wang 2012-05-07 03:21:40 UTC
Assign to Kai to begin with bug fixing since he starts to work on Hob during v1.3
Comment 9 Kai Kang 2012-05-21 09:14:13 UTC
It hangs on server/process.py class BitBakeServerConnection::terminate
 
  else:
      self.procserver.join()
Comment 10 Kai Kang 2012-05-31 02:48:57 UTC
Merged on commit f28209d9d3c67203a2c7a2b25cacfe31643d1bfa
Comment 11 liang li 2012-06-05 04:07:40 UTC
(In reply to comment #0)
> at parsing recipsed phase, if clicked the window 'exit' button will pop the
> 'Exit Hob' dialog, then selected the 'Exit Hob', the window will be closed,
> but the bitbake can't be stoped, if you use the 'ps -aux | grep -i bitbake'
> to see it, so we should do some related handler for stop it.

I tried that, at parsing recipes phase,clicked the window close button, will not pop the 'Exit Hob' dialog.
only when parsing recipes phase finished,clicked the window close button, will not pop the 'Exit Hob' dialog. no bitbake process will be seen use command 'ps -aux | grep -i bitbake'.
Comment 12 liang li 2012-06-05 04:10:36 UTC
(In reply to comment #7)
> knotty has the same issue:
> 
> yocto-build5@yocto-build5:~/poky-contrib/build2$ bitbake core-image-minimal
> Pseudo is not present but is required, building this first before the main
> build
> 1
> ^Crsing recipes:   3% |##                                                   
> | ETA:  00:00:21
> Keyboard Interrupt, closing down...
> 
> ^C
> Second Keyboard Interrupt, stopping...
> 
> ^C^CExecution was interrupted, returning a non-zero exit code.
> ^C^C^C^C^C
> 
> 
> 
> 
> ^C^C^C^C^C^C
> 
> 
> ^C^C^C^C^C^C^C^C

I tried that , following output:

---------------
liangli@liangli-OptiPlex-745:~/poky-git-build_97$ bitbake core-image-minimal
Pseudo is not present but is required, building this first before the main build
Loading cache: 100% |###########################################| ETA:  00:00:00
Loaded 140 entries from dependency cache.
^Crsing recipes:  40% |################                         | ETA:  00:00:59
Keyboard Interrupt, closing down...

ERROR: Command execution failed: Exited with 1

Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Execution was interrupted, returning a non-zero exit code.

liangli@liangli-OptiPlex-745:~/poky-git-build_97$
---------------

test env:
host: ubuntu 12.04 x86_64
os kernel: 3.2.0-24-generic #39-Ubuntu SMP
Comment 13 liang li 2012-06-05 04:15:11 UTC
verified on :
git info:348da93e283b2b8454fd9cde80d4b17378e2a168
git branch: poky/master

test env:
host: ubuntu 12.04 x86_64
os kernel: 3.2.0-24-generic #39-Ubuntu SMP

if anyone see the similar error,please reopen it.
Comment 14 liang li 2012-07-05 03:30:30 UTC
(In reply to comment #13)
> verified on :
> git info:348da93e283b2b8454fd9cde80d4b17378e2a168
> git branch: poky/master
> 
> test env:
> host: ubuntu 12.04 x86_64
> os kernel: 3.2.0-24-generic #39-Ubuntu SMP
> 
> if anyone see the similar error,please reopen it.

also verified on :
git commit:73cdebf60df225ee10f2eb215935be3b61e1b831
git branch: poky/denzil

test env:
host: ubuntu 12.04 x86_64
os kernel:3.2.0-25-generic #40-Ubuntu SMP

git commit f28209d9d3c67203a2c7a2b25cacfe31643d1bfa in master info exists in denzil branch:4c4924ad1b7a169ea35446ec9fe6fb33eb452014