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

loggerd: extract write_encode_data and eliminate recursion from handle_encoder_msg #33219

Closed
wants to merge 10,000 commits into from

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Aug 7, 2024

Changes:

  1. Refactored handle_encoder_msg: Moved the encoding packet writing logic to a new function, write_encode_data, improving code clarity and separation of concerns while preserving the existing writing behavior.
  2. Eliminated Recursive Calls: Replaced recursive calls within handle_encoder_msg with direct calls to write_encode_data for writing queued packets in the new segment. This change prevents potential crashes by handling queued packets safely, even if they are out of sync with the encoderd.
  3. Improved Memory Management: Replaced raw pointers with std::unique_ptr for managing Message objects, improving memory safety.
  4. Removed Redundant Parameter: Removed the service.name parameter from handle_encoder_msg, as it duplicates the re.publish_name value already available through the re parameter.

Resolves #28857

maxime-desroches and others added 30 commits July 29, 2024 11:52
* manual matrix exp

* remove control
…ai#33108)

* ensure proper resource management with io.BytesIO

* improve
* Add Support for Decompressing ZST Log Files

* 2 space and check magic number

* match BZ2

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
* Filter out non-relevant services in most_messages_valid check

* Set as comprehension

* Update segments

* Update ref commit

* New check for hyundai2
* Use livePose instead  of llk

* Update process replay sockets

* Fix import

* Fix calib

* Fix field name

* Dont store device_from_calib

* Update ref commit
* Use livePose

* Replace it in process replay

* Add liveCalibration to messages

* Update ref commit
* test

* update refs to zst

* update
fix multiprocessing issue with can_replay.py on mac
* unlock numpy

* remove old cache

* sheel

* lock

* remove temp

* depends

* export

* put this back

* use __version__

* move this

---------

Co-authored-by: quebec <quebec@quebec.attlocal.net>
* md

* Update README.md

* rename

* exclude

* Update README.md
* ford and gm

* clean that up

* also this

* honda

* temp fix

* move into selfdrive.car

* clean up

* more
* deprecate busTime

* bump

* do car can + more

* forgot some

* bump opendbc

* fix that too

* bump
This reverts commit 7824074.
* this should be common

* super!

* bump

* and frame is common

* bump
* use new opendbc api

* export pandad_python

* merge master

* merge master

* bump opendbc

* bump opendbc

* improve func

* keep interface unchanged

* fix test_car_interfaces

* bump opendbc

* bump opendbc

* fix test_models

* the interface now has to convert from can capnp to list, so we should include this time

* goes from ~210 to ~240 mean ms real time

* remoe busTime

* lowercase sendcan

* consistent msgtype

* bump

* bump

* not used in lat_mpc

* space

* bump to master

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
* improve

* update readme

* stdin

* better

* allow non interactive

* specify dir
* remove hexdump

* uv lock

* cleanup
* add the test

fix

* bump

* not sure why mypy didn't catch this
maxime-desroches and others added 20 commits August 30, 2024 20:08
* minimal

* uv.lock

* remove anisotropic filtering

* new wheel
* controlsd: deprecate alertBlinkingRate

* simplify

* update refs
* setup selfdriveState

* little more

* update refs

* migration

* all too slow
* personality-alerts

* Update events.py

* Update car.capnp

* no AudibleAlert

* shorter

* no VisualAlert

* one liner

* smaller

* normal

* what am I doing wrong?

* it works, but is it messy?

* arg all

* lil more

* update that

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
…parsing (commaai#33425)

Migrate Old ControlState Event to New Format During Log File Parsing
remove copy initialization of dialogs
* athena: use dongle ID on /persist/ when available

* comment

* test

* cleanup
…rRenderer` class (commaai#33375)

* Refactor Driver Monitor Updating and Rendering

add comments

* rebase master

* rename dmon to driver_monitoring
Copy link
Contributor

github-actions bot commented Sep 2, 2024

This PR has been automatically closed due to inactivity. Feel free to re-open once activity resumes.

@github-actions github-actions bot closed this Sep 2, 2024
@adeebshihadeh adeebshihadeh reopened this Sep 2, 2024
@maxime-desroches
Copy link
Contributor

This PR was closed because of a git history rewrite.
Please read #33399 for what to do with your fork and your PRs.

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.

memory leak when loggerd/encoderd get out of sync