lua-mumble icon indicating copy to clipboard operation
lua-mumble copied to clipboard

Disconnect after receiving image

Open duarm opened this issue 9 months ago • 7 comments

Sending an image results in the bot disconnecting

OnDisconnect	garbage collected

duarm avatar May 05 '24 13:05 duarm

Can you clarify what you mean? Sending an image through a message? Comment? Icon?

bkacjios avatar May 05 '24 15:05 bkacjios

Sorry for the lack of information, The bot connects, and everything works well, if I send an image through mumble chat (using the official client), the bot disconnects. I'm running the hooks.lua example. Tried both png and jpgs of different sizes, both from disk, clipboard and drag & drop. I think the bot receives the image and fails somehow while decoding it.

Built myself from source, I'm on arch. protobuf-c 1.5.0-2 libev 4.33-2

2024-05-05_16:53:30

duarm avatar May 05 '24 19:05 duarm

Ohhhhh. Interesting. I had no idea you could do that. Thanks! I'll look into it!

bkacjios avatar May 05 '24 22:05 bkacjios

I wasn't able to reproduce this.. I dragged a picture to my mumble client, it sent, and the bot didn't seem to care. What's weird is the bot never received an OnMessage event at all.

bkacjios avatar May 07 '24 11:05 bkacjios

I'll try to narrow down the problem this weekend. I'm on mumble 1.5.629-1

duarm avatar May 08 '24 03:05 duarm

That might be the issue. 1.5 has a new protocol that I'm still working on.

bkacjios avatar May 08 '24 10:05 bkacjios

I wasn't able to reproduce this.. I dragged a picture to my mumble client, it sent, and the bot didn't seem to care. What's weird is the bot never received an OnMessage event at all.

Tested the async-connect branch and this is the behaviour I'm getting now.

duarm avatar May 09 '24 16:05 duarm