[TIMOB-6567] Android: V8: Terminating the application from debugger does not work and produces error.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-12-13T18:54:40.000+0000 |
| Affected Version/s | Release 1.8.0 |
| Fix Version/s | Sprint 2011-50, Release 1.8.0.1, Release 2.0.0 |
| Components | Android |
| Labels | n/a |
| Reporter | Josh Roesslein |
| Assignee | Josh Roesslein |
| Created | 2011-12-11T22:05:40.000+0000 |
| Updated | 2014-06-19T12:42:39.000+0000 |
Description
Actual:
If you try terminating the application from Studio debugger, V8 will print an error to the log and the application will lock up.
Expected:
Application should terminate.
To test [PR #938](https://github.com/appcelerator/titanium_mobile/pull/938):
Debug this application in Studio, then once it has launched try clicking the application. It should terminate the android application immediately.var win = Ti.UI.createWindow(); var btn = Ti.UI.createButton({'title': 'Click to terminate.'}); btn.on('click', function () { Ti.API.terminate(); }); win.add(btn); win.open();Should also test this in Studio with TISTUD-909. Expected: Pressing terminate button should cause the android application to quit. Actual: Application stops responding and does not quit.
Tested on Windows 7 with studio version 1.0.7.201112140358 Ti Mob SDK 1.8.0.1.v20111214093905 V8 Expected behavior is shown *Note keeping open to confirm with 1.9.0
Closing bug. Already verified fix on 1.8.0.1