uni-app 更新版本后重启电脑软件崩溃 无法启动

uni-app 更新版本后重启电脑软件崩溃 无法启动

开发环境 版本号 项目创建方式
Mac 11.6

操作步骤:

  • 正常启动

预期结果:

  • 正常打开

实际结果:

  • 崩溃

bug描述:

重启应用和电脑均无效 崩溃日志如下  

Process:               HBuilderX [1215]
Path:                  /Applications/HBuilderX.app/Contents/MacOS/HBuilderX
Identifier:            io.dcloud.HBuilderX
Version:               ???
Code Type:             X86-64 (Translated)
Parent Process:        ??? [1]
Responsible:           HBuilderX [1215]
User ID:               501  

Date/Time:             2021-12-31 09:01:50.279 +0800
OS Version:            macOS 11.6 (20G165)
Report Version:        12
Anonymous UUID:        BD4AADC2-DAB8-4D7A-2557-C6B1DFD1043A  

Time Awake Since Boot: 110 seconds  

System Integrity Protection: enabled  

Crashed Thread:        0  

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       EXC_ARM_BREAKPOINT at 0x00007ffdffc27d38 (brk 1)
Exception Note:        EXC_CORPSE_NOTIFY  

Termination Signal:    Trace/BPT trap: 5
Termination Reason:    Namespace SIGNAL, Code 0x5
Terminating Process:   exc handler [1215]  

Application Specific Information:
rosetta error: /var/db/oah/223263137464320_223263137464320/dc3a0e062e5c6751c06211f914885d0c7a65477facaa0adcc3bf27884f02561e/HBuilderX.aot: attachment of code signature supplement failed: 3  

Thread 0 Crashed:
0   runtime                         0x00007ffdffc27d38 0x7ffdffc0b000 + 118072
1   runtime                         0x00007ffdffc27d80 0x7ffdffc0b000 + 118144
2   runtime                         0x00007ffdffc176e4 0x7ffdffc0b000 + 50916
3   runtime                         0x00007ffdffc18df4 0x7ffdffc0b000 + 56820
4   runtime                         0x0x00007ffdffc185ec 0x7ffdffc0b000 + 54764
5   runtime                         0x0x00007ffdffc0f440 0x7ffdffc0b000 + 17472
6   dyld                            0x0000000201fac000 0x201fac000 + 0  

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000   x1: 0x0000000000000003   x2: 0x000000000000003c   x3: 0x000000000000002c
x4: 0x0000000000000303   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x000000000212d6db
x8: 0x00007ffdffc47000   x9: 0x0000000000000000  x10: 0x00007ffdffc3d08e  x11: 0x0000000000000000
x12: 0x00000000ffffffff  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0x00007ffdffc2e758
x16: 0xffffffffffffffe1  x17: 0x00007ffdffc377b6  x18: 0x0000000306163113  x19: 0x00007ffdffc3cfd0
x20: 0x0000000306162b18  x21: 0x0000000101de1000  x22: 0x0000000000000004  x23: 0x0000000101de1000
x24: 0x0000000000000003  x25: 0x0000000000000001  x26: 0x0000000306162c30  x27: 0x0000000201fac000
x28: 0x000000030616ba00   fp: 0x0000000306161a10   lr: 0x00007ffdffc27d30
sp: 0x00000003061619f0   pc: 0x00007ffdffc27d38 cpsr: 0x60000000
far: 0x00007ffdffc3cfd0  esr: 0xf2000001  

Binary Images:
0x201fac000 -        0x202047fff  dyld (852.2) <0CC19410-FD43-39AE-A32A-50273F8303A4> /usr/lib/dyld
0x7ffdffc0b000 -     0x7ffdffc3afff  runtime (203.58) <BBDCFB04-7B39-3FDE-90D3-A6E55EE628E7> /usr/libexec/rosetta/runtime  

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0  

VM Region Summary:
ReadOnly portion of Libraries: Total=1048K resident=0K(0%) swapped_out_or_unallocated=1048K(100%)
Writable regions: Total=52.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=52.1M(100%)  


更多关于uni-app 更新版本后重启电脑软件崩溃 无法启动的实战教程也可以访问 https://www.itying.com/category-93-b0.html

5 回复

更多关于uni-app 更新版本后重启电脑软件崩溃 无法启动的实战教程也可以访问 https://www.itying.com/category-93-b0.html


.lock删了 配置也全部删了 还是启动不了 只能重新下载了?

回复 哈库拉玛塔塔: 如果还不行,那就需要详细的信息,加下QQ群:793046085,进群at管理员

相同问题,新下载的HBuilderX,按照文档操作后依然报错。

Translated Report (Full Report Below)

Incident Identifier: 7527DACC-B2FD-4E7E-B747-577265F7404B CrashReporter Key: 572CE457-343C-051B-12A5-855F9AC6C790 Hardware Model: MacBookPro18,1 Process: HBuilderX [73177] Path: /Applications/HBuilderX.app/Contents/MacOS/HBuilderX Identifier: io.dcloud.HBuilderX Version: 3.4.7.20220422 (3.4.7.20220422) Code Type: X86-64 (Native) Role: Default Parent Process: launchd [1] Coalition: io.dcloud.HBuilderX [53994]
Date/Time: 2022-05-12 22:53:24.1585 +0800 Launch Time: 2022-05-12 22:53:24.1258 +0800 OS Version: macOS 12.3.1 (21E258) Release Type: User Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x00007ff7ffd1f9c8 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: SIGNAL 5 Trace/BPT trap: 5 Terminating Process: exc handler [73177]
Triggered by Thread: 0
Application Specific Information: rosetta error: /var/db/oah/279293133324288_279293133324288/27c3aefee13b6a15d2ab45a885afd94c01f55d53fae793a364aa7cfa932b9167/HBuilderX.aot: attachment of code signature supplement failed: 1
Thread 0 Crashed: 0 runtime 0x7ff7ffd1f9c8 0x7ff7ffd02000 + 121288 1 runtime 0x7ff7ffd1fa10 0x7ff7ffd02000 + 121360 2 runtime 0x7ff7ffd1626c 0x7ff7ffd02000 + 82540 3 runtime 0x7ff7ffd1734c 0x7ff7ffd02000 + 86860 4 runtime 0x7ff7ffd16ac4 0x7ff7ffd02000 + 84676 5 runtime 0x7ff7ffd05b40 0x7ff7ffd02000 + 15168 6 dyld 0x204e51000 ???
Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000003 x2: 0x000000000000003c x3: 0x000000000000002c x4: 0x0000000000000303 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000001f58e00 x8: 0x00007ff7ffd3d000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x00007ff7ffd3d938 x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x000001b900000100 x15: 0x00007ff7ffd25828 x16: 0xffffffffffffffe1 x17: 0x00007ff7ffd2e6ee x18: 0x000000030b8eb09b x19: 0x00007ff7ffd332e1 x20: 0x000000030b8eb750 x21: 0x0000000104a63000 x22: 0x0000000000000004 x23: 0x0000000104a63000 x24: 0x0000000000000003 x25: 0x0000000000000001 x26: 0x000000030b8eabb0 x27: 0x0000000204ed11c0 x28: 0x000000030b8f3980 fp: 0x000000030b8e99b0 lr: 0x00007ff7ffd1f9c0 sp: 0x000000030b8e9990 pc: 0x00007ff7ffd1f9c8 cpsr: 0x60001000 far: 0x000000030b8e99c8 esr: 0xf2000001 (Breakpoint) brk 1
Binary Images: 0x7ff7ffd02000 - 0x7ff7ffd31fff runtime () <24497be3-a1b4-360a-b90e-cde9ce78a93b> /usr/libexec/rosetta/runtime 0x204e51000 - 0x204ebcfff dyld () <dd9e80de-fb3b-349b-96a4-46874ad34d11> /usr/lib/dyld
Error Formulating Crash Report: dyld_process_snapshot_get_shared_cache failed
EOF

Full Report

{“app_name”:“HBuilderX”,“timestamp”:“2022-05-12 22:53:24.00 +0800”,“app_version”:“3.4.7.20220422”,“slice_uuid”:“92c9af6e-e1e0-3b50-ba0d-63b92c7653bb”,“build_version”:“3.4.7.20220422”,“platform”:0,“bundleID”:“io.dcloud.HBuilderX”,“share_with_app_devs”:0,“is_first_party”:0,“bug_type”:“309”,“os_version”:“macOS 12.3.1 (21E258)”,“incident_id”:“7527DACC-B2FD-4E7E-B747-577265F7404B”,“name”:“HBuilderX”} { “uptime” : 500000, “procLaunch” : “2022-05-12 22:53:24.1258 +0800”, “procRole” : “Default”, “version” : 2, “userID” : 501, “deployVersion” : 210, “modelCode” : “MacBookPro18,1”, “procStartAbsTime” : 12096606490836, “coalitionID” : 53994, “osVersion” : { “train” : “macOS 12.3.1”, “build” : “21E258”, “releaseType” : “User” }, “captureTime” : “2022-05-12 22:53:24.1585 +0800”, “incident” : “7527DACC-B2FD-4E7E-B747-577265F7404B”, “bug_type” : “309”, “pid” : 73177, “procExitAbsTime” : 12096607167967, “translated” : true, “cpuType” : “X86-64”, “procName” : “HBuilderX”, “procPath” : “/Applications/HBuilderX.app/Contents/MacOS/HBuilderX”, “bundleInfo” : {“CFBundleShortVersionString”:“3.4.7.20220422”,“CFBundleVersion”:“3.4.7.20220422”,“CFBundleIdentifier”:“io.dcloud.HBuilderX”}, “storeInfo” : {“deviceIdentifierForVendor”:“05D7C47C-27FC-5F09-A4F2-8BD619DBB993”,“thirdParty”:true}, “parentProc” : “launchd”, “parentPid” : 1, “coalitionName” : “io.dcloud.HBuilderX”, “crashReporterKey” : “572CE457-343C-051B-12A5-855F9AC6C790”, “wakeTime” : 882, “sleepWakeUUID” : “7AFE9006-DC71-4F42-BA84-81E54A7DC20E”, “sip” : “enabled”, “isCorpse” : 1, “exception” : {“codes”:“0x0000000000000001, 0x00007ff7ffd1f9c8”,“rawCodes”:[1,140703125600712],“type”:“EXC_BREAKPOINT”,“signal”:“SIGTRAP”}, “termination” : {“flags”:0,“code”:5,“namespace”:“SIGNAL”,“indicator”:“Trace/BPT trap: 5”,“byProc”:“exc handler”,“byPid”:73177}, “asi” : {“runtime”:[“rosetta error: /var/db/oah/279293133324288_279293133324288/27c3aefee13b6a15d2ab45a885afd94c01f55d53fae793a364aa7cfa932b9167/HBuilderX.aot: attachment of code signature supplement failed: 1”]}, “extMods” : {“caller”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“system”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“targeted”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“warnings”:0}, “faultingThread” : 0, “threads” : [{“triggered”:true,“id”:6085291,“threadState”:{“x”:[{“value”:0},{“value”:3},{“value”:60},{“value”:44},{“value”:771},{“value”:0},{“value”:0},{“value”:32869888},{“value”:140703125721088},{“value”:0},{“value”:0},{“value”:140703125723448,“symbolLocation”:208,“symbol”:“crashreporter_info”},{“value”:0},{“value”:0},{“value”:1894080577792},{“value”:140703125624872},{“value”:18446744073709551585},{“value”:140703125661422},{“value”:13078802587},{“value”:140703125680865},{“value”:13078804304},{“value”:4372967424},{“value”:4},{“value”:4372967424},{“value”:3},{“value”:1},{“value”:13078801328},{“value”:8672580032,“symbolLocation”:0,“symbol”:“dyld_all_image_infos”},{“value”:13078837632}],“flavor”:“ARM_THREAD_STATE64”,“lr”:{“value”:140703125600704},“cpsr”:{“value”:1610616832},“fp”:{“value”:13078796720},“sp”:{“value”:13078796688},“esr”:{“value”:4060086273,“description”:"(Breakpoint) brk 1"},“pc”:{“value”:140703125600712,“matchesCrashFrame”:1},“far”:{“value”:13078796744}},“frames”:[{“imageOffset”:121288,“imageIndex”:0},{“imageOffset”:121360,“imageIndex”:0},{“imageOffset”:82540,“imageIndex”:0},{“imageOffset”:86860,“imageIndex”:0},{“imageOffset”:84676,“imageIndex”:0},{“imageOffset”:15168,“imageIndex”:0},{“imageOffset”:0,“imageIndex”:1}]}], “usedImages” : [ { “source” : “P”, “arch” : “arm64”, “base” : 140703125479424, “size” : 196608, “uuid” : “24497be3-a1b4-360a-b90e-cde9ce78a93b”, “path” : “/usr/libexec/rosetta/runtime”, “name” : “runtime” }, { “source” : “P”, “arch” : “x86_64”, “base” : 8672055296, “size” : 442368, “uuid” : “dd9e80de-fb3b-349b-96a4-46874ad34d11”, “path” : “/usr/lib/dyld”, “name” : “dyld” } ], “vmSummary” : “ReadOnly portion of Libraries: Total=840K resident=0K(0%) swapped_out_or_unallocated=840K(100%)\nWritable regions: Total=59.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=59.2M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8176K 1 \nVM_ALLOCATE 13.3M 4 \nVM_ALLOCATE (reserved) 37.8M 3 reserved VM address space (unallocated)\nDATA 80K 3 \n__DATA_CONST 80K 1 \nLINKEDIT 240K 4 \n__TEXT 624K 2 \nmapped file 6.1G 27 \n=========== ======= ======= \nTOTAL 6.2G 46 \nTOTAL, minus reserved VM space 6.2G 46 \n”, “legacyInfo” : { “threadTriggered” : {
} }, “trialInfo” : { “rollouts” : [ { “rolloutId” : “60da5e84ab0ca017dace9abf”, “factorPackIds” : {
},
“deploymentId” : 240000008
},
{
“rolloutId” : “5fc94383418129005b4e9ae0”,
“factorPackIds” : {

},
“deploymentId” : 240000370
}
], “experiments” : [
] }, “reportNotes” : [ “dyld_process_snapshot_get_shared_cache failed” ] }
Model: MacBookPro18,1, BootROM 7459.101.3, proc 10:8:2 processors, 16 GB, SMC Graphics: Apple M1 Pro, Apple M1 Pro, Built-In Display: Color LCD, 3456 x 2234 Retina, Main, MirrorOff, Online Memory Module: LPDDR5 AirPort: Wi-Fi, wl0: Feb 8 2022 01:51:44 version 20.90.39.0.8.7.114 FWID 01-510a2aee Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB31Bus USB Device: USB31Bus USB Device: iPhone USB Device: USB31Bus Thunderbolt Bus: MacBook Pro, Apple Inc. Thunderbolt Bus: MacBook Pro, Apple Inc. Thunderbolt Bus: MacBook Pro, Apple Inc.

根据你提供的崩溃日志,问题核心在于 Rosetta 2 的代码签名补充附件失败attachment of code signature supplement failed: 3)。这通常发生在 macOS 11(Big Sur)及以上版本,在搭载 Apple Silicon(M1/M2)芯片的 Mac 上通过 Rosetta 2 转译运行 Intel 架构的 HBuilderX 时,系统对应用签名验证失败。

直接解决方案:

  1. 清除 Rosetta 2 的转译缓存:这是最可能解决问题的步骤。打开终端(Terminal),逐行执行以下命令:
    sudo rm -rf /var/db/oah/*
    sudo rm -rf /Library/Apple/System/Library/LaunchDaemons/com.apple.oahd.plist
    sudo rm -rf /Library/Apple/System/Library/LaunchDaemons/com.apple.oahd.plist
回到顶部