[TIMOB-27527] Android: Typing into console in Chrome DevTools cause crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-01-08T11:41:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.0.0 |
Components | Android |
Labels | android, debugger, engSchedule |
Reporter | Sergey Volkov |
Assignee | Gary Mathews |
Created | 2019-09-13T15:02:16.000+0000 |
Updated | 2020-01-08T11:41:10.000+0000 |
Description
Trying to use console in DevTool will cause application crash since SDK 8.0.0.GA (same for 8.1.1.GA and 8.2.0.RC)
Type anything (e.g. "
Build any application with parameter "--debug-host localhost:8989:
ti build -p android -T device --debug-host localhost:8989
Open "chrome-devtools://" link in chrome-based browser.
Navigate to "Console" tab.
Type anything (e.g. "Ti
")
Application crashed
Attachments
File | Date | Size |
---|---|---|
console.gif | 2019-12-09T23:13:40.000+0000 | 798001 |
crash.logcat | 2019-09-13T15:20:43.000+0000 | 5939 |
Hello [~s.volkov], Thanks for letting us know. Can you please test this issue on 8.2.0.GA and let us know how it goes.
Hi. Same for 8.2.0.GA.
I can't remember if I used this workaround because of a crash, but I think [this commit](https://github.com/appcelerator/vscode-appcelerator-titanium/pull/116/commits/c25d4e61445968b839f8f7c985b7233c626690cf) for the vscode debugger might be of relevance. On Android we have to specify the contextId on an evaluate call, this should be fixed in the inspector client on Android (I'll move this ticket over to TIMOB to do that).
Here's a related issue on the nodejs issue tracker, https://github.com/nodejs/node/issues/8426. I assume as they're using v8 the inspector stuff might be similar, but no guarantees :)
master: https://github.com/appcelerator/titanium_mobile/pull/11375
Failed FR
Oops! Should have noted this depends upon https://github.com/appcelerator/titanium_mobile/pull/11294
FR Passed. No crash when using console during debug using chrome-devtools.
*Closing ticket*, fix verified in SDK version
9.0.0.v20200103081513
. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/11375