Closed
Bug 777514
Opened 13 years ago
Closed 13 years ago
B2G Updates: EventHub input loop stops the b2g process from exiting
Categories
(Core Graveyard :: Widget: Gonk, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla17
People
(Reporter: marshall, Assigned: marshall)
References
Details
Attachments
(1 file, 1 obsolete file)
|
958 bytes,
patch
|
mwu
:
review+
|
Details | Diff | Splinter Review |
Currently, process exit will block when ~nsAppShell calls mReaderThread->requestExitAndWait(). This requires the user to do some form of input (touch or button press of some kind) to tick the EventHub loop, and finalize the b2g process teardown.
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #645897 -
Flags: review?(mwu)
Comment 2•13 years ago
|
||
Hm, can we request an exit, wake, and then wait for exit? I'm a bit afraid that we might wake up, and then go straight back to waiting before we call the exit and wait function.
| Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Michael Wu [:mwu] from comment #2)
> Hm, can we request an exit, wake, and then wait for exit? I'm a bit afraid
> that we might wake up, and then go straight back to waiting before we call
> the exit and wait function.
Good catch! It looks like we can actually separate out the calls to requestExit() and join() (for waiting), so I'll add the call to mEventHub->wake() between the two, to avoid the second request.
| Assignee | ||
Comment 4•13 years ago
|
||
Call requestExit() before waking the EventHub, and then join() (wait)
Attachment #645897 -
Attachment is obsolete: true
Attachment #645897 -
Flags: review?(mwu)
Attachment #646148 -
Flags: review?(mwu)
Updated•13 years ago
|
Attachment #646148 -
Flags: review?(mwu) → review+
| Assignee | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Sorry, I backed this out on inbound:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7ac08cd7d0a3
because of B2G build failures:
https://tbpl.mozilla.org/php/getParsedLog.php?id=13879519&tree=Mozilla-Inbound
../../../widget/gonk/nsAppShell.cpp:501: error: 'class android::InputReaderThread' has no member named 'join'
| Assignee | ||
Comment 7•13 years ago
|
||
Ugh, this looks like another Tinderbox GB toolchain issue. See Bug 776045
| Assignee | ||
Comment 8•13 years ago
|
||
In integration w/ GB safe APIs:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0f7d2d447ed5
Comment 9•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•