jaredks / rumps

Ridiculously Uncomplicated macOS Python Statusbar apps
BSD 3-Clause "New" or "Revised" License
3.06k stars 177 forks source link

ISSUE: Fatal Python error: PyEval_RestoreThread: NULL tstate #129

Closed folabi-masha closed 4 years ago

folabi-masha commented 4 years ago

I have developed an app with rumps and when I quit the application i get this error. Here is the full message:

Fatal Python error: PyEval_RestoreThread: NULL tstate
Python runtime state: initialized

Current thread 0x00000001123a45c0 (most recent call first):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyObjCTools/AppHelper.py", line 328 in runEventLoop
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/rumps/rumps.py", line 1329 in run
  File "/Users/smasha/PycharmProjects/ItunesAutomator/main2.py", line 106 in <module>

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

Anyone know what this means? My research suggests that there might be a threading issue with rumps? "main2.py" is my programs code