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

Threading error #90

Open
f321x opened this issue Mar 8, 2023 · 0 comments
Open

Threading error #90

f321x opened this issue Mar 8, 2023 · 0 comments

Comments

@f321x
Copy link

f321x commented Mar 8, 2023

When running the bot I wrote with python-nostr it always crashes with some kind of threading error after around 5h. I use python 3.9.5 with the correct dependencie versions. Connecting to around 5 reliable relais (also tried less).

Crash log:

424 in _callback

File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 386 in run_forever ...

Thread 0x00007f9522112700 (most recent call first): File "/usr/local/lib/python3.9/threading.py", line 312 in wait
File "/usr/local/lib/python3.9/queue.py", line 171 in get File "/home/satdress/lightningpicturebot/nostr/relay.py", line 88 in queue_worker File "/usr/local/lib/python3.9/threading.py", line 892 in run
File "/usr/local/lib/python3.9/threading.py", line 954 in _bootstrap_inner
File "/usr/local/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f9522913700 (most recent call first):
File "/usr/local/lib/python3.9/selectors.py", line 469 in select
File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 78 in select
File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 64 in read
File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 383 in run_forever
File "/home/satdress/lightningpicturebot/nostr/relay.py", line 60 in connect
File "/home/satdress/lightningpicturebot/nostr/relay.py", line 80 in check_reconnect
File "/home/satdress/lightningpicturebot/nostr/relay.py", line 135 in _on_error File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 424 in _callback File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 386 in run_forever File "/home/satdress/lightningpicturebot/nostr/relay.py", line 60 in connect
File "/home/satdress/lightningpicturebot/nostr/relay.py", line 80 in check_reconnect
File "/home/satdress/lightningpicturebot/nostr/relay.py", line 135 in _on_error
File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 424 in _callback
File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 386 in run_forever
File "/home/satdress/lightningpicturebot/nostr/relay.py", line 60 in connect
File "/usr/local/lib/python3.9/threading.py", line 892 in run File "/usr/local/lib/python3.9/threading.py", line 954 in _bootstrap_inner
File "/usr/local/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f9523114700 (most recent call first):
File "/usr/local/lib/python3.9/threading.py", line 312 in wait
File "/usr/local/lib/python3.9/queue.py", line 171 in get
File "/home/satdress/lightningpicturebot/nostr/relay.py", line 88 in queue_worker File "/usr/local/lib/python3.9/threading.py", line 892 in run
File "/usr/local/lib/python3.9/threading.py", line 954 in _bootstrap_inner
File "/usr/local/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f9523955700 (most recent call first):
File "/usr/local/lib/python3.9/selectors.py", line 469 in select
File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 78 in select
File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 64 in read
File "/home/satdress/.local/lib/python3.9/site-packages/websocket/_app.py", line 383 in run_forever
File "/home/satdress/lightningpicturebot/nostr/relay.py", line 60 in connect
File "/usr/local/lib/python3.9/threading.py", line 892 in run
File "/usr/local/lib/python3.9/threading.py", line 954 in _bootstrap_inner
File "/usr/local/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f95267a8280 (most recent call first):
File "/usr/local/lib/python3.9/threading.py", line 312 in wait
File "/usr/local/lib/python3.9/queue.py", line 171 in get
File "/home/satdress/lightningpicturebot/nostr/message_pool.py", line 35 in get_event
File "/home/satdress/lightningpicturebot/nostr1.py", line 102 in nostr_bot
File "/home/satdress/lightningpicturebot/nostr1.py", line 551 in run
File "/home/satdress/lightningpicturebot/nostr1.py", line 559 in
Abgebrochen

Is this a bug in python-nostr or more likely related to my code?

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

1 participant