Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc++abi.dylib: terminating with uncaught exception of type NSException #703

Closed
andy121090 opened this issue Mar 13, 2021 · 2 comments
Closed

Comments

@andy121090
Copy link

Hello,

I tried to execute the demo toolbox but the following error occurs:

libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

The execution of python3 demo_cli.py was successful.

OS: macOS Big Sur 11.1

Full stack trace:

user@user-MacBook-Pro:~/Real-Time-Voice-Cloning$ python3 demo_toolbox.py --cpu -d datasets
Arguments:
    datasets_root:    datasets
    enc_models_dir:   encoder/saved_models
    syn_models_dir:   synthesizer/saved_models
    voc_models_dir:   vocoder/saved_models
    cpu:              True
    seed:             None
    no_mp3_support:   False

2021-03-13 16:51:49.008 Python[2386:59537] -[QNSApplication macOSVersion]: unrecognized selector sent to instance 0x7fe64eefad90
2021-03-13 16:51:49.010 Python[2386:59537] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QNSApplication macOSVersion]: unrecognized selector sent to instance 0x7fe64eefad90'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff204826af __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff201ba3c9 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff20504c85 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x00007fff203ea07d ___forwarding___ + 1467
	4   CoreFoundation                      0x00007fff203e9a38 _CF_forwarding_prep_0 + 120
	5   libtk8.6.dylib                      0x0000000119b01af0 GetRGBA + 282
	6   libtk8.6.dylib                      0x0000000119b01522 SetCGColorComponents + 124
	7   libtk8.6.dylib                      0x0000000119b01925 TkpGetColor + 543
	8   libtk8.6.dylib                      0x0000000119a6193b Tk_GetColor + 143
	9   libtk8.6.dylib                      0x0000000119a54792 Tk_Get3DBorder + 118
	10  libtk8.6.dylib                      0x0000000119a5461a Tk_Alloc3DBorderFromObj + 127
	11  libtk8.6.dylib                      0x0000000119a62c0f DoObjConfig + 970
	12  libtk8.6.dylib                      0x0000000119a6272a Tk_InitOptions + 333
	13  libtk8.6.dylib                      0x0000000119a62622 Tk_InitOptions + 69
	14  libtk8.6.dylib                      0x0000000119a89c44 CreateFrame + 1557
	15  libtk8.6.dylib                      0x0000000119a89ecd TkListCreateFrame + 137
	16  libtk8.6.dylib                      0x0000000119a826c5 Initialize + 2002
	17  _tkinter.cpython-39-darwin.so       0x00000001198df715 Tcl_AppInit + 84
	18  _tkinter.cpython-39-darwin.so       0x00000001198daa04 _tkinter_create + 987
	19  Python                              0x000000010af031bb cfunction_vectorcall_FASTCALL + 203
	20  Python                              0x000000010af7aff3 call_function + 403
	21  Python                              0x000000010af78184 _PyEval_EvalFrameDefault + 27452
	22  Python                              0x000000010af7bb3b _PyEval_EvalCode + 1998
	23  Python                              0x000000010aed35d8 _PyFunction_Vectorcall + 248
	24  Python                              0x000000010aed2e28 _PyObject_FastCallDictTstate + 149
	25  Python                              0x000000010aed3891 _PyObject_Call_Prepend + 139
	26  Python                              0x000000010af1be96 slot_tp_init + 87
	27  Python                              0x000000010af156f7 type_call + 150
	28  Python                              0x000000010aed2fa3 _PyObject_MakeTpCall + 266
	29  Python                              0x000000010af7b027 call_function + 455
	30  Python                              0x000000010af782ee _PyEval_EvalFrameDefault + 27814
	31  Python                              0x000000010aed3648 function_code_fastcall + 97
	32  Python                              0x000000010aed52ab method_vectorcall + 164
	33  Python                              0x000000010af7aff3 call_function + 403
	34  Python                              0x000000010af78184 _PyEval_EvalFrameDefault + 27452
	35  Python                              0x000000010af7bb3b _PyEval_EvalCode + 1998
	36  Python                              0x000000010aed35d8 _PyFunction_Vectorcall + 248
	37  Python                              0x000000010aed52ab method_vectorcall + 164
	38  Python                              0x000000010aed331f PyVectorcall_Call + 146
	39  Python                              0x000000010af784b4 _PyEval_EvalFrameDefault + 28268
	40  Python                              0x000000010af7bb3b _PyEval_EvalCode + 1998
	41  Python                              0x000000010aed35d8 _PyFunction_Vectorcall + 248
	42  Python                              0x000000010aed331f PyVectorcall_Call + 146
	43  Python                              0x000000010af784b4 _PyEval_EvalFrameDefault + 28268
	44  Python                              0x000000010af7bb3b _PyEval_EvalCode + 1998
	45  Python                              0x000000010aed35d8 _PyFunction_Vectorcall + 248
	46  Python                              0x000000010aed331f PyVectorcall_Call + 146
	47  Python                              0x000000010af784b4 _PyEval_EvalFrameDefault + 28268
	48  Python                              0x000000010af7bb3b _PyEval_EvalCode + 1998
	49  Python                              0x000000010aed35d8 _PyFunction_Vectorcall + 248
	50  Python                              0x000000010aed331f PyVectorcall_Call + 146
	51  Python                              0x000000010af784b4 _PyEval_EvalFrameDefault + 28268
	52  Python                              0x000000010af7bb3b _PyEval_EvalCode + 1998
	53  Python                              0x000000010aed35d8 _PyFunction_Vectorcall + 248
	54  Python                              0x000000010af7aff3 call_function + 403
	55  Python                              0x000000010af782ee _PyEval_EvalFrameDefault + 27814
	56  Python                              0x000000010af7bb3b _PyEval_EvalCode + 1998
	57  Python                              0x000000010aed35d8 _PyFunction_Vectorcall + 248
	58  Python                              0x000000010aed2e67 _PyObject_FastCallDictTstate + 212
	59  Python                              0x000000010aed3891 _PyObject_Call_Prepend + 139
	60  Python                              0x000000010af1be96 slot_tp_init + 87
	61  Python                              0x000000010af156f7 type_call + 150
	62  Python                              0x000000010aed2fa3 _PyObject_MakeTpCall + 266
	63  Python                              0x000000010af7b027 call_function + 455
	64  Python                              0x000000010af78230 _PyEval_EvalFrameDefault + 27624
	65  Python                              0x000000010af7bb3b _PyEval_EvalCode + 1998
	66  Python                              0x000000010aed35d8 _PyFunction_Vectorcall + 248
	67  Python                              0x000000010aed2e28 _PyObject_FastCallDictTstate + 149
	68  Python                              0x000000010aed3891 _PyObject_Call_Prepend + 139
	69  Python                              0x000000010af1be96 slot_tp_init + 87
	70  Python                              0x000000010af156f7 type_call + 150
	71  Python                              0x000000010aed3425 _PyObject_Call + 138
	72  Python                              0x000000010af784b4 _PyEval_EvalFrameDefault + 28268
	73  Python                              0x000000010af7bb3b _PyEval_EvalCode + 1998
	74  Python                              0x000000010af7156d PyEval_EvalCode + 79
	75  Python                              0x000000010afac5b5 run_eval_code_obj + 110
	76  Python                              0x000000010afab9ad run_mod + 103
	77  Python                              0x000000010afaa871 PyRun_FileExFlags + 241
	78  Python                              0x000000010afa9e61 PyRun_SimpleFileExFlags + 271
	79  Python                              0x000000010afc1d88 Py_RunMain + 1839
	80  Python                              0x000000010afc20c1 pymain_main + 306
	81  Python                              0x000000010afc210f Py_BytesMain + 42
	82  libdyld.dylib                       0x00007fff2032b621 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
@ghost
Copy link

ghost commented Apr 1, 2021

I think this is a problem with matplotlib or pyqt5, not really with our code. Try some of these:
https://stackoverflow.com/a/32078408 (if you are running from IDLE and not the terminal)
MTG/sms-tools#36 (comment)
matplotlib/matplotlib#13414 (comment)

If you figure it out please let us know what solved it.

@ghost ghost closed this as completed Apr 1, 2021
@wrannaman
Copy link

For me, I needed some env variables you can get from brew info tcl-tk

If you need to have tcl-tk first in your PATH run:
  echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> ~/.zshrc

For compilers to find tcl-tk you may need to set:
  export LDFLAGS="-L/usr/local/opt/tcl-tk/lib"
  export CPPFLAGS="-I/usr/local/opt/tcl-tk/include"

For pkg-config to find tcl-tk you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig"

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants