NativeScript / NativeScript/android
The app crashes when the debugger is attached on HMR
未关闭
@vchimev 已经在做这个了。
开始于 2019年9月13日。
- 主要语言
- C++
- 星标
- 563
- 派生
- 144
- 平均合并
- 10 小时 46 分钟
- 30 天内合并 PR
- 14
描述
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 5.2.2
- Cross-platform modules: 5.2.2
- Android Runtime: 5.2.1
- iOS Runtime (if applicable):
- Plugin(s):
Describe the bug
The app crashes when the debugger is attached.
To Reproduce
tns create appTs && cd appTs
tns debug android --hmr
Make a change in app.css.
Expected behavior
The app does not crash, the change is applied and the debugger works.
Sample project
Additional context
When not attached to the debuger, the change successfully applies by HMR.
Crash Log
03-11 14:20:43.942 10741 10741 I JS : HMR: Checking for updates to the bundle with hmr hash 68252dd7a8d129322e60.
03-11 14:20:43.971 10741 10741 I JS : HMR: The following modules were updated:
03-11 14:20:43.982 10741 10741 I JS : HMR: ↻ ./app-root.css
03-11 14:20:43.993 10741 10741 I JS : HMR: Successfully applied update with hmr hash 68252dd7a8d129322e60. App is up to date.
--------- beginning of crash
03-11 14:20:44.038 10741 10741 F libc : Fatal signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0xcaf729ef in tid 10741 (.appPaddingTest), pid 10741 (.appPaddingTest)
03-11 14:20:44.086 10831 10831 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
03-11 14:20:44.087 1821 1821 I /system/bin/tombstoned: received crash request for pid 10741
03-11 14:20:44.087 10831 10831 I crash_dump32: performing dump of process 10741 (target tid = 10741)
03-11 14:20:44.091 10831 10831 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-11 14:20:44.091 10831 10831 F DEBUG : Build fingerprint: 'google/sdk_gphone_x86/generic_x86:9/PSR1.180720.061/5075414:userdebug/dev-keys'
03-11 14:20:44.091 10831 10831 F DEBUG : Revision: '0'
03-11 14:20:44.091 10831 10831 F DEBUG : ABI: 'x86'
03-11 14:20:44.091 10831 10831 F DEBUG : pid: 10741, tid: 10741, name: .appPaddingTest >>> org.nativescript.appPaddingTest <<<
03-11 14:20:44.091 10831 10831 F DEBUG : signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0xcaf729ef
03-11 14:20:44.091 10831 10831 F DEBUG : eax 0000003e ebx cb36c0a8 ecx 00000001 edx e7872368
03-11 14:20:44.091 10831 10831 F DEBUG : edi db28bac0 esi db28bac0
03-11 14:20:44.091 10831 10831 F DEBUG : ebp ffc87dc8 esp ffc87dc0 eip caf729ef
03-11 14:20:44.094 10831 10831 F DEBUG :
03-11 14:20:44.094 10831 10831 F DEBUG : backtrace:
03-11 14:20:44.094 10831 10831 F DEBUG : #00 pc 00a159ef /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #01 pc 0023fd19 /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #02 pc 001cdaeb /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #03 pc 001265dd /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #04 pc 00123aa2 /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #05 pc 001a837d /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #06 pc 0021c971 /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #07 pc 000edca3 /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #08 pc 000edd8d /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #09 pc 001f28ff /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #10 pc 001f2c22 /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #11 pc 002efa59 /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #12 pc 002eef7b /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #13 pc 0055d6cb /data/app/org.nativescript.appPaddingTest-iuqtdGz4wUTLCJ-JLYyIdA==/lib/x86/libNativeScript.so
03-11 14:20:44.094 10831 10831 F DEBUG : #14 pc 00047bfd <anonymous:c9d86000>
03-11 14:20:44.283 1821 1821 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_13
--------- beginning of system
03-11 14:20:44.284 1962 10845 W ActivityManager: Force finishing activity org.nativescript.appPaddingTest/com.tns.NativeScriptActivity
03-11 14:20:44.294 1678 1678 E lowmemorykiller: Error writing /proc/10741/oom_score_adj; errno=22
03-11 14:20:44.296 1962 1976 E memtrack: Couldn't load memtrack module
03-11 14:20:44.296 1962 1976 W android.os.Debug: failed to get memory consumption info: -1
03-11 14:20:44.333 1962 2031 W InputDispatcher: channel '1f95260 org.nativescript.appPaddingTest/com.tns.NativeScriptActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
03-11 14:20:44.333 1962 2031 E InputDispatcher: channel '1f95260 org.nativescript.ap
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。