htm-community / htmengine-traffic-tutorial

HTM Engine example application: live NYC traffic anomaly detection.
GNU General Public License v3.0
20 stars 14 forks source link

Error when starting Supervisor #12

Open fcabrera23 opened 7 years ago

fcabrera23 commented 7 years ago

When starting supervisor, all services start ok except for anommaly_service which fails. When looking at the log, says this : Fatal Python error: PyThreadState_Get: no current thread various times.

Moreover Python crashes and mac report is the following

Process: Python [93794] Path: /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 2.7.13 (2.7.13) Code Type: X86-64 (Native) Parent Process: Python [93781] Responsible: Python [93794] User ID: 502

Date/Time: 2017-07-12 23:20:00.118 -0300 OS Version: Mac OS X 10.12.5 (16F73) Report Version: 12 Anonymous UUID: 52C3D1D2-8E7A-4699-E42B-BD5903EB6CED

Time Awake Since Boot: 7900 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information: abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fffc10d8d42 pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fffc11c6457 pthread_kill + 90 2 libsystem_c.dylib 0x00007fffc103e420 abort + 129 3 org.python.python 0x0000000109d1288e Py_FatalError + 49 4 org.python.python 0x0000000109d11d88 PyThreadState_Get + 28 5 org.python.python 0x0000000109d0ec82 Py_InitModule4_64 + 62 6 _math.so 0x00000001093f6840 init_math + 864 7 org.python.python 0x00000001083e4e0c _PyImport_LoadDynamicModule + 150 8 org.python.python 0x00000001083e48a1 imp_load_module + 234 9 org.python.python 0x00000001083cdbac PyEval_EvalFrameEx + 11238 10 org.python.python 0x00000001083d3b84 fast_function + 196 11 org.python.python 0x00000001083cdae8 PyEval_EvalFrameEx + 11042 12 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579 13 org.python.python 0x00000001083ca7b4 PyEval_EvalCode + 32 14 org.python.python 0x00000001083e1389 PyImport_ExecCodeModuleEx + 212 15 org.python.python 0x00000001083e40de load_source_module + 1049 16 org.python.python 0x00000001083e3ba6 import_submodule + 273 17 org.python.python 0x00000001083e3768 load_next + 272 18 org.python.python 0x00000001083e27cc PyImportImportModuleLevel + 648 19 org.python.python 0x00000001083c643f builtinimport__ + 124 20 org.python.python 0x0000000108353cda PyObject_Call + 97 21 org.python.python 0x00000001083d3528 PyEval_CallObjectWithKeywords + 159 22 org.python.python 0x00000001083cf07a PyEval_EvalFrameEx + 16564 23 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579 24 org.python.python 0x00000001083ca7b4 PyEval_EvalCode + 32 25 org.python.python 0x00000001083e1389 PyImport_ExecCodeModuleEx + 212 26 org.python.python 0x00000001083e40de load_source_module + 1049 27 org.python.python 0x00000001083e4372 load_package + 328 28 org.python.python 0x00000001083e3ba6 import_submodule + 273 29 org.python.python 0x00000001083e3768 load_next + 272 30 org.python.python 0x00000001083e27cc PyImport_ImportModuleLevel + 648 31 org.python.python 0x00000001083c643f builtin_import + 124 32 org.python.python 0x0000000108353cda PyObject_Call + 97 33 org.python.python 0x00000001083d3528 PyEval_CallObjectWithKeywords + 159 34 org.python.python 0x00000001083cf07a PyEval_EvalFrameEx + 16564 35 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579 36 org.python.python 0x00000001083ca7b4 PyEval_EvalCode + 32 37 org.python.python 0x00000001083e1389 PyImport_ExecCodeModuleEx + 212 38 org.python.python 0x00000001083e40de load_source_module + 1049 39 org.python.python 0x00000001083e3ba6 import_submodule + 273 40 org.python.python 0x00000001083e3768 load_next + 272 41 org.python.python 0x00000001083e27cc PyImport_ImportModuleLevel + 648 42 org.python.python 0x00000001083c643f builtin_import + 124 43 org.python.python 0x0000000108353cda PyObject_Call + 97 44 org.python.python 0x00000001083d3528 PyEval_CallObjectWithKeywords + 159 45 org.python.python 0x00000001083cf07a PyEval_EvalFrameEx + 16564 46 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579 47 org.python.python 0x00000001083cb214 PyEval_EvalFrameEx + 590 48 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579 49 org.python.python 0x00000001083d3be2 fast_function + 290 50 org.python.python 0x00000001083cdae8 PyEval_EvalFrameEx + 11042 51 org.python.python 0x00000001083cade5 PyEval_EvalCodeEx + 1579 52 org.python.python 0x0000000108371651 function_call + 330 53 org.python.python 0x0000000108353cda PyObject_Call + 97 54 org.python.python 0x00000001083fd0d9 RunModule + 113 55 org.python.python 0x00000001083fcbcf Py_Main + 2223 56 libdyld.dylib 0x00007fffc0faa235 start + 1

Any idea? Thanks

rhyolight commented 7 years ago

I should warn you that River View, the data source for this demo, is not in the best shape. I have no time to work on these side projects anymore. My apologies.

That being said, I know that the error you are seeing (Fatal Python error: PyThreadState_Get: no current thread) usually happens because there are two competing versions of python installed in your environment. You should make sure that the same version of python is used when you invoke python from the command line, as well as the default python when you run a script like ./bin/something.py.