Stickerworld
Stickerworld copied to clipboard
Larger GIFs and videos break the bot
Basically large GIFs and videos are breaking the bot. I'm running in a Linux server that is completely vanilla. I've already tried moving to a new server and resizing the virtual server, but haven't had any luck.
What are the steps to reproduce this issue?
- Send a large (>150kb) gif or video
- Bot sends "Generating Sticker"
What happens?
Bot never answer, sometimes breaks in the backend
What were you expecting to happen?
Bot sends sticker
Any logs, error output, screenshots etc?
Error: Evaluation failed: s
at ExecutionContext._evaluateInternal (/root/Stickerworld/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ExecutionContext.evaluate (/root/Stickerworld/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)
Any other comments?
@viniuau Originally reported in issue #39
What versions of software are you using?
Operating System and Versión: Ubuntu 18.04
Node Version (node -v): 16.3.0
Stickerworld Version: 2.1.1 running in PM2
I've been working on fixing this problem for a few days and between several tests I have detected a bug in the main whatsapp management library, so I have created an issue to try to fix it https://github.com/orkestral/venom/issues/991
I've been working on fixing this problem for a few days and between several tests I have detected a bug in the main whatsapp management library, so I have created an issue to try to fix it orkestral/venom#991
Thanks @kaiserdj I will support that issue and try to look further in what you mentioned in the issue.
I've been trying to add the FFmpeg fs option in video.js#L31 to limit the video sticker size to 1M but it doesn't seem to be working. I think limiting the video resize to 1M would solve the problem.
I already did tests with different sizes and it is not a problem of 1mb, since I modified the code to compress the webp to the maximum, and from a 3mb gif I obtained a 400kb webp. But it kept returning the same error.
That is why in the issue that creates in venom I sent them webp files that size less than 1mb, since those should not give errors, but they do.
I've managed to avoid the error in most cases by limiting the duration of the output of FFmpeg to 1 second, this is not a solution but it might help us understand why it happens.
it doesn't respond when i sent gif image