Skip to content

cabana: fix crash when zmq address is used#37222

Merged
adeebshihadeh merged 3 commits intocommaai:masterfrom
wpmed92:fix-zmq-in-cabana
Feb 17, 2026
Merged

cabana: fix crash when zmq address is used#37222
adeebshihadeh merged 3 commits intocommaai:masterfrom
wpmed92:fix-zmq-in-cabana

Conversation

@wpmed92
Copy link
Copy Markdown
Contributor

@wpmed92 wpmed92 commented Feb 15, 2026

Since the removal of zmq from msgq, Cabana crashes when a zmq address is provided, as seen in this screenshot:

Screenshot 2026-02-14 at 21 08 41

This is because MSGQSubSocket asserts localhost, so when a non-localhost address in entered in the zmq address textbox, cabana crashes.

This PR fixes the crash, and so zmq streaming works again.
Cabana launches a bridge QProcess with zmq_address and can (whitelisted service) passed in as command line arguments. After the bridge is running, the normal msgq SubSocket can be used.

After the fix streaming works over zmq:

Screenshot 2026-02-15 at 16 48 18

@github-actions github-actions Bot added the tools label Feb 15, 2026
@wpmed92 wpmed92 marked this pull request as draft February 15, 2026 16:01
@wpmed92 wpmed92 changed the title Cabana: Fix zmq support Cabana: Fix zmq streaming Feb 15, 2026
@wpmed92 wpmed92 changed the title Cabana: Fix zmq streaming Cabana: fix zmq crash Feb 16, 2026
@wpmed92 wpmed92 marked this pull request as ready for review February 16, 2026 08:05
@wpmed92 wpmed92 changed the title Cabana: fix zmq crash cabana: fix zmq crash Feb 16, 2026
@wpmed92 wpmed92 changed the title cabana: fix zmq crash cabana: fix crash when zmq addresd is used Feb 16, 2026
@wpmed92 wpmed92 changed the title cabana: fix crash when zmq addresd is used cabana: fix crash when zmq address is used Feb 16, 2026
@wpmed92 wpmed92 marked this pull request as draft February 17, 2026 08:48
@wpmed92 wpmed92 marked this pull request as ready for review February 17, 2026 09:19
@adeebshihadeh
Copy link
Copy Markdown
Contributor

Thanks!

@adeebshihadeh adeebshihadeh merged commit 037e6e7 into commaai:master Feb 17, 2026
10 checks passed
@wpmed92 wpmed92 deleted the fix-zmq-in-cabana branch February 17, 2026 17:37
FrogAi pushed a commit to FrogAi/FrogPilot that referenced this pull request Apr 2, 2026
* Fix zmq support in cabana

* Refactor to launch bridge, remove socketadapter

* bridge_path should be camel_case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants