Why does my parpool crash when I am running Python from within MATLAB using Anaconda Python?
My parallel pool keeps crashing every time I run my MATLAB code that calls Python functions inside it. My Python installation was installed using Anaconda.
My crash log is shown below:
——————————————————————————–
abort() detected at 2023-11-06 14:11:56 -0800
——————————————————————————–
Stack Trace (captured):
[ 0] 0x00007ffcdc43aca3 C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00044195 foundation::core::diag::thread_context::unspecified_bool+00000051
[ 1] 0x00007ffcdc439278 C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00037496 foundation::core::diag::stacktrace_base::capture+00000024
[ 2] 0x00007ffcdc43d39f C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00054175 foundation::core::diag::symbols::getSymbolAddress+00009455
[ 3] 0x00007ffcdc4403b7 C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00066487 foundation::core::diag::is_terminate_message_enabled+00000535
[ 4] 0x00007ffc891a5e6f C:Program FilesMATLABR2023bbinwin64mcr.dll+00876143 mnFullExitFcn+00036351
[ 5] 0x00007ffc891a569d C:Program FilesMATLABR2023bbinwin64mcr.dll+00874141 mnFullExitFcn+00034349
[ 6] 0x00007ffc891a1523 C:Program FilesMATLABR2023bbinwin64mcr.dll+00857379 mnFullExitFcn+00017587
[ 7] 0x00007ffc891a322f C:Program FilesMATLABR2023bbinwin64mcr.dll+00864815 mnFullExitFcn+00025023
[ 8] 0x00007ffd2aa61881 C:WINDOWSSystem32ucrtbase.dll+00465025 raise+00000481
[ 9] 0x00007ffc0d6268d3 C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00747731 _kmp_get_reduce_method+00026275
[ 10] 0x00007ffc0d606a1c C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00616988 kmp_set_affinity+00005292
[ 11] 0x00007ffc0d625d2d C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00744749 _kmp_get_reduce_method+00023293
[ 12] 0x00007ffc0d612515 C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00664853 _kmp_acquire_nested_drdpa_lock+00021861My parallel pool keeps crashing every time I run my MATLAB code that calls Python functions inside it. My Python installation was installed using Anaconda.
My crash log is shown below:
——————————————————————————–
abort() detected at 2023-11-06 14:11:56 -0800
——————————————————————————–
Stack Trace (captured):
[ 0] 0x00007ffcdc43aca3 C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00044195 foundation::core::diag::thread_context::unspecified_bool+00000051
[ 1] 0x00007ffcdc439278 C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00037496 foundation::core::diag::stacktrace_base::capture+00000024
[ 2] 0x00007ffcdc43d39f C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00054175 foundation::core::diag::symbols::getSymbolAddress+00009455
[ 3] 0x00007ffcdc4403b7 C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00066487 foundation::core::diag::is_terminate_message_enabled+00000535
[ 4] 0x00007ffc891a5e6f C:Program FilesMATLABR2023bbinwin64mcr.dll+00876143 mnFullExitFcn+00036351
[ 5] 0x00007ffc891a569d C:Program FilesMATLABR2023bbinwin64mcr.dll+00874141 mnFullExitFcn+00034349
[ 6] 0x00007ffc891a1523 C:Program FilesMATLABR2023bbinwin64mcr.dll+00857379 mnFullExitFcn+00017587
[ 7] 0x00007ffc891a322f C:Program FilesMATLABR2023bbinwin64mcr.dll+00864815 mnFullExitFcn+00025023
[ 8] 0x00007ffd2aa61881 C:WINDOWSSystem32ucrtbase.dll+00465025 raise+00000481
[ 9] 0x00007ffc0d6268d3 C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00747731 _kmp_get_reduce_method+00026275
[ 10] 0x00007ffc0d606a1c C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00616988 kmp_set_affinity+00005292
[ 11] 0x00007ffc0d625d2d C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00744749 _kmp_get_reduce_method+00023293
[ 12] 0x00007ffc0d612515 C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00664853 _kmp_acquire_nested_drdpa_lock+00021861 My parallel pool keeps crashing every time I run my MATLAB code that calls Python functions inside it. My Python installation was installed using Anaconda.
My crash log is shown below:
——————————————————————————–
abort() detected at 2023-11-06 14:11:56 -0800
——————————————————————————–
Stack Trace (captured):
[ 0] 0x00007ffcdc43aca3 C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00044195 foundation::core::diag::thread_context::unspecified_bool+00000051
[ 1] 0x00007ffcdc439278 C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00037496 foundation::core::diag::stacktrace_base::capture+00000024
[ 2] 0x00007ffcdc43d39f C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00054175 foundation::core::diag::symbols::getSymbolAddress+00009455
[ 3] 0x00007ffcdc4403b7 C:Program FilesMATLABR2023bbinwin64libmwfl.dll+00066487 foundation::core::diag::is_terminate_message_enabled+00000535
[ 4] 0x00007ffc891a5e6f C:Program FilesMATLABR2023bbinwin64mcr.dll+00876143 mnFullExitFcn+00036351
[ 5] 0x00007ffc891a569d C:Program FilesMATLABR2023bbinwin64mcr.dll+00874141 mnFullExitFcn+00034349
[ 6] 0x00007ffc891a1523 C:Program FilesMATLABR2023bbinwin64mcr.dll+00857379 mnFullExitFcn+00017587
[ 7] 0x00007ffc891a322f C:Program FilesMATLABR2023bbinwin64mcr.dll+00864815 mnFullExitFcn+00025023
[ 8] 0x00007ffd2aa61881 C:WINDOWSSystem32ucrtbase.dll+00465025 raise+00000481
[ 9] 0x00007ffc0d6268d3 C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00747731 _kmp_get_reduce_method+00026275
[ 10] 0x00007ffc0d606a1c C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00616988 kmp_set_affinity+00005292
[ 11] 0x00007ffc0d625d2d C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00744749 _kmp_get_reduce_method+00023293
[ 12] 0x00007ffc0d612515 C:UsersusernameAppDataLocalanaconda3Librarybinlibiomp5md.dll+00664853 _kmp_acquire_nested_drdpa_lock+00021861 python, anaconda3, parpool, crash, pyrunfile MATLAB Answers — New Questions