Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

The app crashes when the debugger is attached on HMR

未關閉
#1,298 2 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@vchimev 已經在處理了。

開始於 2019年9月13日。

評估

這個 Issue 還沒有評估資料。

描述

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
主要語言
C++
星號
563
分支
144
平均合併
10 小時 46 分鐘
30 天內合併 PR
14

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NativeScript/android 的其他 Issue

查看 NativeScript/android 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。