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

swaglog: delay creating zmq socket to first use - fix modeld crash in sim #24271

Merged
merged 5 commits into from
Apr 20, 2022

Conversation

gijskoning
Copy link
Contributor

@gijskoning gijskoning commented Apr 20, 2022

Fixes modeld crash in simulator. The zmq_socket was created at import leading to two sockets in one thread. This pr calls initialize() on the first usage of the logs.
Problem started here: #23596

Fixes #23666
And prs #24203 and #23792 can be closed.

selfdrive/common/swaglog.cc Outdated Show resolved Hide resolved
selfdrive/common/util.h Outdated Show resolved Hide resolved
@pd0wm pd0wm changed the title Fix modeld crash in simulator swaglog: delay creating zmq socket to first use - fix modeld crash in sim Apr 20, 2022
@pd0wm pd0wm merged commit 6ab7b2f into master Apr 20, 2022
@pd0wm pd0wm deleted the fix_zmq_error branch April 20, 2022 13:03
spektor56 pushed a commit to spektor56/ghostpilot that referenced this pull request May 7, 2022
… sim (commaai#24271)

* Initialize zmq socket later with initialize method

* empty lines

* Add lock and move initialize function

* Check for initialized
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 this pull request may close these issues.

CARLA: modeld crashes on startup
2 participants