Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27527] Android: Typing into console in Chrome DevTools cause crash

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2020-01-08T11:41:10.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.0.0
ComponentsAndroid
Labelsandroid, debugger, engSchedule
ReporterSergey Volkov
AssigneeGary Mathews
Created2019-09-13T15:02:16.000+0000
Updated2020-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)

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

FileDateSize
console.gif2019-12-09T23:13:40.000+0000798001
crash.logcat2019-09-13T15:20:43.000+00005939

Comments

  1. Rakhi Mitro 2019-09-29

    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.
  2. Sergey Volkov 2019-09-30

    Hi. Same for 8.2.0.GA.
  3. Ewan Harris 2019-11-05

    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).
  4. Ewan Harris 2019-11-05

    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 :)
  5. Gary Mathews 2019-12-03

    master: https://github.com/appcelerator/titanium_mobile/pull/11375
  6. Christopher Williams 2019-12-09

    Failed FR
  7. Gary Mathews 2019-12-09

    Oops! Should have noted this depends upon https://github.com/appcelerator/titanium_mobile/pull/11294
  8. Satyam Sekhri 2019-12-12

    FR Passed. No crash when using console during debug using chrome-devtools.
  9. Samir Mohammed 2020-01-08

    *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

JSON Source