Closed AlexXanderGrib closed 1 year ago
The logs are unrelated. It is highly unlikely that TDLib has crashed during file downloading. Check that the process wasn't killed by OOM killer.
Yes, i was actually an OOM kill. Is it possible to fix this memory leak?
If your bot has a lot users and was added to many chats, then you need more RAM for the cache.
It have not. Cache is filling up over span of a 20 hours.
(UPD: I am explicitly deleting files after scanning, and deleteFile
's description state that "Deletes a file from the TDLib file cache")
Files are stored only on disk, they occupy no RAM.
Memory leak was a mistake on my part, thank you for trying to help me
Hello, i am making a bot, that automatically detects and NSFW content in chats.
I am using following code:
And sometimes, TDLib produces following logs. (new_verbosity_level=1). After them, TDLib exits, and my bot crashes.
UPD: OS: Ubuntu 22.04.2 LTS RAM: 1GB CPU: 1 x 3GHz Network: 200Mb/s