崩溃报错libc++abi.dylib: terminating with uncaught exception of type NSException怎么查看

@try{

[[NSUserDefaults standardUserDefaults] setObject:dic forKey:@"abc"];
}
@catch(NSException *exception) {
NSLog(@"exception:%@", exception);
}
@finally {

}


如果dic中有值为null的情况就会崩溃

exception:Attempt to insert non-property list object {
avatar = "<null>";
} for key @"abc"

/Users/zhenyuying/PycharmProjects/snore_test/demo.py:42: UserWarning: Starting a Matplotlib GUI outside of the main thread will likely fail. plt.figure() *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow should only be instantiated on the main thread!' *** First throw call stack: ( 0 CoreFoundation 0x000000019f64ee80 __exceptionPreprocess + 176 1 libobjc.A.dylib 0x000000019f136cd8 objc_exception_throw + 88 2 CoreFoundation 0x000000019f673534 _CFBundleGetValueForInfoKey + 0 3 AppKit 0x00000001a3164460 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 260 4 AppKit 0x00000001a3164350 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 48 5 _macosx.cpython-312-darwin.so 0x000000016b0a3960 -[Window initWithContentRect:styleMask:backing:defer:withManager:] + 52 6 _macosx.cpython-312-darwin.so 0x000000016b0a6540 FigureManager_init + 220 7 python3.12 0x0000000104ede1ec wrap_init + 20 8 python3.12 0x0000000104e56eec wrapperdescr_call + 700 9 python3.12 0x0000000104f976b8 _PyEval_EvalFrameDefault + 192068 10 python3.12 0x0000000104eddba4 slot_tp_init + 328 11 python3.12 0x0000000104ed2f84 type_call + 148 12 python3.12 0x0000000104f976b8 _PyEval_EvalFrameDefault + 192068 13 python3.12 0x0000000104e4c4a8 method_vectorcall + 304 14 python3.12 0x0000000104f9bf38 _PyEval_EvalFrameDefault + 210628 15 python3.12 0x0000000104e49a38 _PyObject_Call_Prepend + 156 16 python3.12 0x0000000104eda230 slot_tp_call + 132 17 python3.12 0x0000000104f976b8 _PyEval_EvalFrameDefault + 192068 18 python3.12 0x0000000104e64b60 gen_iternext + 144 19 python3.12 0x0000000104f94644 _PyEval_EvalFrameDefault + 179664 20 python3.12 0x0000000104eddba4 slot_tp_init + 328 21 python3.12 0x0000000104ed2f84 type_call + 148 22 python3.12 0x0000000104f976b8 _PyEval_EvalFrameDefault + 192068 23 python3.12 0x0000000104e4c42c method_vectorcall + 180 24 python3.12 0x0000000104f9b910 _PyEval_EvalFrameDefault + 209052 25 python3.12 0x0000000104e4c4e8 method_vectorcall + 368 26 python3.12 0x000000010509bccc thread_run + 132 27 python3.12 0x000000010501f198 pythread_wrapper + 48 28 libsystem_pthread.dylib 0x000000019f4f42e4 _pthread_start + 136 29 libsystem_pthread.dylib 0x000000019f4ef0fc thread_start + 8 ) libc++abi: terminating due to uncaught exception of type NSException /Users/zhenyuying/miniconda3/lib/python3.12/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown warnings.warn('resource_tracker: There appear to be %d '
最新发布
08-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值