libc ++ abi.dylib:以类型为NSException的未捕获异常终止

编程入门 行业动态 更新时间:2024-10-07 02:21:57
本文介绍了libc ++ abi.dylib:以类型为NSException的未捕获异常终止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经在Linux上的opencv python中开发了一个程序,现在我试图在Mac上运行它.

但是现在我在运行它时遇到以下错误. 我使用brew安装了opencv.

/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users /krupanilesh/Desktop/dependencies/gazedev.py 2015-06-23 12:17:00.197 Python[803:16229] -[_NSFullScreenWindow sliders]: unrecognized selector sent to instance 0x102dcb8c0 2015-06-23 12:17:00.198 Python[803:16229] An uncaught exception was raised 2015-06-23 12:17:00.198 Python[803:16229] -[_NSFullScreenWindow sliders]: unrecognized selector sent to instance 0x102dcb8c0 2015-06-23 12:17:00.198 Python[803:16229] ( 0 CoreFoundation 0x00007fff96b4303c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8b34176e objc_exception_throw + 43 2 CoreFoundation 0x00007fff96b460ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00007fff96a8be24 ___forwarding___ + 1028 4 CoreFoundation 0x00007fff96a8b998 _CF_forwarding_prep_0 + 120 5 libopencv_highgui.2.4.dylib 0x0000000101f684d8 -[CVView setFrameSize:] + 193 6 libopencv_highgui.2.4.dylib 0x0000000101f664b3 cvShowImage + 887 7 libopencv_highgui.2.4.dylib 0x0000000101f6506d _ZN2cv6imshowERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS_11_InputArrayE + 390 8 cv2.so 0x0000000101888e61 _ZL15pyopencv_imshowP7_objectS0_S0_ + 366 9 Python 0x00000001000c357d PyEval_EvalFrameEx + 24829 10 Python 0x00000001000c58e3 PyEval_EvalCodeEx + 2115 11 Python 0x00000001000c5a06 PyEval_EvalCode + 54 12 Python 0x00000001000ea41e PyRun_FileExFlags + 174 13 Python 0x00000001000ea6ba PyRun_SimpleFileExFlags + 458 14 Python 0x000000010010187d Py_Main + 3101 15 Python 0x0000000100000f14 Python + 3860 16 ??? 0x0000000000000002 0x0 + 2 ) 2015-06-23 12:17:00.199 Python[803:16229] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSFullScreenWindow sliders]: unrecognized selector sent to instance 0x102dcb8c0' *** First throw call stack: ( 0 CoreFoundation 0x00007fff96b4303c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8b34176e objc_exception_throw + 43 2 CoreFoundation 0x00007fff96b460ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00007fff96a8be24 ___forwarding___ + 1028 4 CoreFoundation 0x00007fff96a8b998 _CF_forwarding_prep_0 + 120 5 libopencv_highgui.2.4.dylib 0x0000000101f684d8 -[CVView setFrameSize:] + 193 6 libopencv_highgui.2.4.dylib 0x0000000101f664b3 cvShowImage + 887 7 libopencv_highgui.2.4.dylib 0x0000000101f6506d _ZN2cv6imshowERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS_11_InputArrayE + 390 8 cv2.so 0x0000000101888e61 _ZL15pyopencv_imshowP7_objectS0_S0_ + 366 9 Python 0x00000001000c357d PyEval_EvalFrameEx + 24829 10 Python 0x00000001000c58e3 PyEval_EvalCodeEx + 2115 11 Python 0x00000001000c5a06 PyEval_EvalCode + 54 12 Python 0x00000001000ea41e PyRun_FileExFlags + 174 13 Python 0x00000001000ea6ba PyRun_SimpleFileExFlags + 458 14 Python 0x000000010010187d Py_Main + 3101 15 Python 0x0000000100000f14 Python + 3860 16 ??? 0x0000000000000002 0x0 + 2 ) libc++abi.dylib: terminating with uncaught exception of type NSException

预先感谢

解决方案

我终于自己解决了这个问题,由于某种原因,全屏模式在Mac上不起作用,因此禁用了该功能,从而为我解决了问题.

I have developed a program in opencv python on linux and now I am trying to run it on mac.

But now I am getting the following error on running it. I installed opencv using brew.

/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users /krupanilesh/Desktop/dependencies/gazedev.py 2015-06-23 12:17:00.197 Python[803:16229] -[_NSFullScreenWindow sliders]: unrecognized selector sent to instance 0x102dcb8c0 2015-06-23 12:17:00.198 Python[803:16229] An uncaught exception was raised 2015-06-23 12:17:00.198 Python[803:16229] -[_NSFullScreenWindow sliders]: unrecognized selector sent to instance 0x102dcb8c0 2015-06-23 12:17:00.198 Python[803:16229] ( 0 CoreFoundation 0x00007fff96b4303c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8b34176e objc_exception_throw + 43 2 CoreFoundation 0x00007fff96b460ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00007fff96a8be24 ___forwarding___ + 1028 4 CoreFoundation 0x00007fff96a8b998 _CF_forwarding_prep_0 + 120 5 libopencv_highgui.2.4.dylib 0x0000000101f684d8 -[CVView setFrameSize:] + 193 6 libopencv_highgui.2.4.dylib 0x0000000101f664b3 cvShowImage + 887 7 libopencv_highgui.2.4.dylib 0x0000000101f6506d _ZN2cv6imshowERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS_11_InputArrayE + 390 8 cv2.so 0x0000000101888e61 _ZL15pyopencv_imshowP7_objectS0_S0_ + 366 9 Python 0x00000001000c357d PyEval_EvalFrameEx + 24829 10 Python 0x00000001000c58e3 PyEval_EvalCodeEx + 2115 11 Python 0x00000001000c5a06 PyEval_EvalCode + 54 12 Python 0x00000001000ea41e PyRun_FileExFlags + 174 13 Python 0x00000001000ea6ba PyRun_SimpleFileExFlags + 458 14 Python 0x000000010010187d Py_Main + 3101 15 Python 0x0000000100000f14 Python + 3860 16 ??? 0x0000000000000002 0x0 + 2 ) 2015-06-23 12:17:00.199 Python[803:16229] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSFullScreenWindow sliders]: unrecognized selector sent to instance 0x102dcb8c0' *** First throw call stack: ( 0 CoreFoundation 0x00007fff96b4303c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8b34176e objc_exception_throw + 43 2 CoreFoundation 0x00007fff96b460ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00007fff96a8be24 ___forwarding___ + 1028 4 CoreFoundation 0x00007fff96a8b998 _CF_forwarding_prep_0 + 120 5 libopencv_highgui.2.4.dylib 0x0000000101f684d8 -[CVView setFrameSize:] + 193 6 libopencv_highgui.2.4.dylib 0x0000000101f664b3 cvShowImage + 887 7 libopencv_highgui.2.4.dylib 0x0000000101f6506d _ZN2cv6imshowERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS_11_InputArrayE + 390 8 cv2.so 0x0000000101888e61 _ZL15pyopencv_imshowP7_objectS0_S0_ + 366 9 Python 0x00000001000c357d PyEval_EvalFrameEx + 24829 10 Python 0x00000001000c58e3 PyEval_EvalCodeEx + 2115 11 Python 0x00000001000c5a06 PyEval_EvalCode + 54 12 Python 0x00000001000ea41e PyRun_FileExFlags + 174 13 Python 0x00000001000ea6ba PyRun_SimpleFileExFlags + 458 14 Python 0x000000010010187d Py_Main + 3101 15 Python 0x0000000100000f14 Python + 3860 16 ??? 0x0000000000000002 0x0 + 2 ) libc++abi.dylib: terminating with uncaught exception of type NSException

Thanks in advance

解决方案

I finally solved the problem myself, for some reason the fullscreen mode does not work on mac, disabling that solved the problem for me.

更多推荐

libc ++ abi.dylib:以类型为NSException的未捕获异常终止

本文发布于:2023-11-26 19:11:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634834.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:异常   类型   abi   libc   NSException

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!