Skip to content
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

MQTT subscriber 3.9.0 windows does not show any topics at all. #1006

Open
matthijsfh opened this issue Sep 10, 2024 · 3 comments · May be fixed by #1009
Open

MQTT subscriber 3.9.0 windows does not show any topics at all. #1006

matthijsfh opened this issue Sep 10, 2024 · 3 comments · May be fixed by #1009

Comments

@matthijsfh
Copy link

Problem description

Running Windows 10.

Just upgraded from 3.6.0 to 3.9.0

But now MQTT dialog does not list any of the (persistent) topics. Closed, run 3.6, showing all topics. (needed 3.9 to be able to select more than 1 topic from the list).

So back to 3.6.0 for now.

@matthijsfh matthijsfh changed the title MQTT subscriber 3.9.0 windows not work at all MQTT subscriber 3.9.0 windows does not show any topics at all. Sep 10, 2024
@Valle125
Copy link

Valle125 commented Sep 17, 2024

I can confirm the problem. I have the same issues on Win 11.

It seems that there are related issues on Linux. I'll try to debug the problem further and eventually submit a patch.

@Valle125
Copy link

I've been debugging a bit today on my Linux machine (Plotjuggler 3.9.1). When I open the MQTT plugin window and hit the connect/disconnect button repeatedly, Plotjuggler becomes stuck. The program flow seems to remain within mosquitto_connect_bind_v5() inside mqtt_client.cpp. I've tried to fix this by starting with a fresh mosquitto instance at each connection attempt, which seems to work. The program flow no longer locks up and I'm able to display data.

I'll test on windows in the next few days and submit a pull request when I'm confident with the patch.

Valle125 pushed a commit to Valle125/PlotJuggler that referenced this issue Sep 21, 2024
Threaded mode of libmosquitto may not be supported on windows (libmosquitto < 2.1). At some point libmosquitto has removed threaded support (mosquitto_loop_start doesn't work and returns MOSQ_ERR_NOT_SUPPORTED). Threaded support will be added again in the future, see eclipse/mosquitto#2707. This commit introduces a thread dedicated to mosquitto to solve the problem.
@briha
Copy link

briha commented Sep 27, 2024

My colleagues and I were having the same issue. I had solved it by just using the paho mqtt library instead, but #1009 seems like a more robust solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants