Closed dov closed 3 weeks ago
Hi @dov,
Does that error appears immediately (on first connect to your broker) or after some time of a proper work?
Hi @dov,
Does that error appears immediately (on first connect to your broker) or after some time of a proper work?
It happens immediately on startup.
I suppose it's related to luajit, not to luamqtt:
When connecting, luamqtt creates relatively small tables to create a MQTT CONNECT packet, so I have no any idea how you can get an overflow error for them. Here I've added a simple traces and executed your script to see that tables:
Please close the issue if you have no more questions.
@xHasKx Thanks for your reply!
It is however not clear to me the fact that if I run luajit from the command line, it works:
luajit simple-mqtt.lua
I also inserted your patch, and I get the same output as you, with the excetion that my luamqtt version is: "\0\22luamqtt-v3-4-3-cb511a8"
.
Do you have any idea of why luajit works in standalone mode with luamqtt, but when combined with love, it crashes?
with the excetion that my luamqtt version is: "\0\22luamqtt-v3-4-3-cb511a8".
This is because "cb511a8" is a random part generated for each client instance (if not set explicitly as id=...)
Do you have any idea of why luajit works in standalone mode with luamqtt, but when combined with love, it crashes?
Please read two links I've mentioned above. One of them shows discussion about invalid ffi usage. I suppose your love2d lib is doing the same wrong thing.
Ok. Thanks. I'll try to fix love2d on my own.
While trying to run luamqtt under love2d on a small gaming console (Anbernic rg40xxv), I got the following error and stacktrace:
Here is my love main.lua script:
What is strange to me is that the following script, without love, works on the same platform:
I installed
luamqtt
by the commandluarocks-5.1 install luamqtt
, and the output from the installation was: