我用python制作了这个应用程序,并将其转换为py2app的macos应用程序,在我的mac上它工作正常,但在另一个mac上出现了错误"Error Code: 0x00000004 (没有读取用户数据的映射)“。我已经读过一些文章,但他们总是说要更新应用程序,但是这个解决方案对我不起作用,因为我做了这个应用程序,我把日志留给你去分析,谢谢。我刚刚发现,他们只允许3万字符在这里,所以我不能上传完整的日志。
Process: Scriptmac [21365]
Path: /Applications/Scriptmac.app/Contents/MacOS/Scriptmac
Identifier: org.pythonmac.unspecified.Scriptmac
Version: 0.0.0 (0.0.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Scriptmac [21365]
User ID: 501
Date/Time: 2022-03-04 15:44:49.548 -0300
OS Version: macOS 11.6.2 (20G314)
Report Version: 12
Bridge OS Version: 6.1 (19P647)
Anonymous UUID: 5F689581-B413-BD01-6664-70AD629718FA
Sleep/Wake UUID: 661F72DA-3DD0-4213-A381-BEDB59CD7C9E
Time Awake Since Boot: 170000 seconds
Time Since Wake: 67000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [21365]
VM Regions Near 0:
-->
__TEXT 1022a1000-1022a9000 [ 32K] r-x/r-x SM=COW /Applications/Scriptmac.app/Contents/MacOS/Scriptmac
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff20609775 CFStringGetCString + 57
1 org.pythonmac.unspecified.Scriptmac 0x00000001022a5aad py2app_main + 4433
2 org.pythonmac.unspecified.Scriptmac 0x00000001022a4357 main + 257
3 libdyld.dylib 0x00007fff205a4f3d start + 1
Thread 1:
0 libsystem_pthread.dylib 0x00007fff20585420 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00007fff20585420 start_wqthread + 0
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x30ef29f9f71700c0 rbx: 0x0000000000000000 rcx: 0x0000000008000100 rdx: 0x0000000000000400
rdi: 0x0000000000000000 rsi: 0x00007ffeed95d910 rbp: 0x00007ffeed95c810 rsp: 0x00007ffeed95c7d0
r8: 0x0000000000000370 r9: 0x0000000000000050 r10: 0x00000000000007fb r11: 0x00000000000000cc
r12: 0x0000000000000400 r13: 0x000060000093c410 r14: 0x00007ffeed95d910 r15: 0x0000000008000100
rip: 0x00007fff20609775 rfl: 0x0000000000010246 cr2: 0x0000000000000000
Logical CPU: 6
Error Code: 0x00000004 (no mapping for user data read)
Trap Number: 14
发布于 2022-03-12 00:33:14
在运行应用程序时,“用户数据读取的无映射”是mac上常见的错误。如果mac上的软件版本过时或过于现代化,通常会发生这种情况。
以下是我建议的步骤:
https://stackoverflow.com/questions/71440430
复制相似问题