-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
the program is stuck in pseudo death, when it receives a file #4289
Comments
Do you experience the problem in other operating systems? |
no, I'll try it on a Ubuntu server later, but I haven't seen any issues on Windows yet |
if I restart the application regularly, such as using crontab, will it increase the risk of account banned? |
Probably not. But Telegram decides the bans, not me. |
facing the same issue on debian 11. debug log:
Telethon version 1.35 |
Code that causes the issue
receiving new msg, when it has media, just download...
event_new_msg
path = await tg_client.download_media(msg, file=path_stored)
tg_client.add_event_handler(event_new_msg, events.NewMessage(func=filter_new_msg))
tg_client.run_until_disconnected()
Expected behavior
successfully download files without blocking
Actual behavior
deadlocks occasionally occur
Traceback
No response
Telethon version
1.33.1
Python version
3.9
Operating system (including distribution name and version)
Red Hat 4.8.5-16
Other details
script's log
strace -T -tt -e trace=all -p 7168
gdb-p 7168
Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
and triggered the bug in the latest version.The text was updated successfully, but these errors were encountered: