Re: deallocating None issue with connect/disconnect
I have a similar issue using the Python MySQL connector, but only with the latest version, 8.0.33.
After downgrading to 8.0.32, everything works as expected.
Happens on any Python version I have tested, from 3.9 to 3.11.
Below is the error from the logs:
Fatal Python error: none_dealloc: deallocating None: bug likely caused by a refcount error in a C extension
Python runtime state: initialized
Thread 0x00007f74c3fff640 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Thread 0x00007f74e0ff9640 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Current thread 0x00007f74e17fa640 (most recent call first):
File "/root/python-news-monitor/server.py", line 112 in run_my_job
File "/root/anaconda3/envs/news_app/lib/python3.11/site-packages/apscheduler/executors/base.py", line 125 in run_job
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 58 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 83 in _worker
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Thread 0x00007f74e1ffb640 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Thread 0x00007f74e2ffd640 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Thread 0x00007f74e37fe640 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Thread 0x00007f74e3fff640 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Thread 0x00007f74f8b2a640 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Thread 0x00007f74f932f640 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Thread 0x00007f74f9b34640 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Thread 0x00007f74fac3e640 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 324 in wait
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 622 in wait
File "/root/anaconda3/envs/news_app/lib/python3.11/site-packages/apscheduler/schedulers/blocking.py", line 30 in _main_loop
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 975 in run
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
File "/root/anaconda3/envs/news_app/lib/python3.11/threading.py", line 995 in _bootstrap
Thread 0x00007f74fd199440 (most recent call first):
File "/root/anaconda3/envs/news_app/lib/python3.11/socket.py", line 294 in accept
File "/root/anaconda3/envs/news_app/lib/python3.11/site-packages/rpyc/utils/server.py", line 141 in accept
File "/root/anaconda3/envs/news_app/lib/python3.11/site-packages/rpyc/utils/server.py", line 264 in start
File "/root/news-project/./server.py", line 265 in <module>
Extension modules: _mysql_connector (total: 1)