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

Fix ASCReader Crash on "Start of Measurement" Line #1811

Merged

Conversation

RitheeshBaradwaj
Copy link
Contributor

@RitheeshBaradwaj RitheeshBaradwaj commented Jul 8, 2024

Summary

This PR addresses an issue where the ASCReader crashes when encountering the line 0.000000 CANFD Start of measurement in ASC log files. This line is a combination of two different conventions and should not contain the "CANFD" flag.

Changes

  • Added logic in the __iter__ method of ASCReader to skip lines matching the regex pattern for "Start of measurement".
  • This ensures that such special indicator lines are handled separately and do not cause parsing errors.

Fixes #1786.

@RitheeshBaradwaj
Copy link
Contributor Author

@hardbyte I am unable to merge the PR. Could you please merge it?

@hardbyte hardbyte merged commit d34b2d6 into hardbyte:main Jul 26, 2024
2 checks passed
@RitheeshBaradwaj RitheeshBaradwaj deleted the bugfix/asc-reader-invalid-line-crash branch July 26, 2024 22:24
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.

Crash in ASCReader
2 participants