Skip to content

map-car names a damaged catalogue file; the report says it didn't run - #476

Open
htunnicliff wants to merge 2 commits into
Open-HMG:mainfrom
htunnicliff:map-car-damaged-file
Open

htunnicliff wants to merge 2 commits into
Open-HMG:mainfrom
htunnicliff:map-car-damaged-file

Conversation

@htunnicliff

Copy link
Copy Markdown
Contributor

On a 2022 Ioniq 5 (NEEV.USA, 260903), after a USB install of 1.1.0, one of maps/catalogue/*.json on the unit was all zero bytes (the install's MAPS.md5 check had passed, and the release payload's files are fine). Every map-car, at boot and in the Car Report, stopped with JSON: unexpected character '\u0000' at offset 0 and no file name, and the report summed it up as "map-car: null hook point(s) found" / "Found on this car: null points" (#470).

  • MapProbe.catalogueStrings: the error says to install HMG-API again, then names the file and the parser's detail. The advice comes first so it survives the 160-character cap below, however long the path.
  • Report: the console summary, Markdown and issue link say "didn't run, ", without the exception's class name, capped at 160 characters for the issue link. The normal found/not-found wording is unchanged, since tools/car-triage.py copies it into the tracker.
  • core/runtime/local-map-test.sh: a zero-filled catalogue file (fails before this change); checks the advice reaches the report and the issue link, and the class name doesn't
  • CHANGELOG.md

Not addressed: why the file went bad on the unit. It's worth a look (was it written without a sync before a restart?), but I couldn't tell from the report.

Tested: off-car, on macOS: core/runtime/local-map-test.sh (the new case fails on main, passes here), core/runtime/map-test.sh, tools/car-triage-test.sh. engine-test.sh needs ./build.sh and wasn't run. Not run on a car yet.


🤖 This pull request was created by Claude Code (Claude Opus 5.5) for htunnicliff.

On a 2022 Ioniq 5 (NEEV.USA, 260903) one maps/catalogue file was all zero
bytes after the install had checked it, so map-car stopped with "JSON:
unexpected character '\u0000' at offset 0" and no file name, and the Car
Report summed it up as "null hook point(s) found" (Open-HMG#470). The error now says
to install HMG-API again, then names the file, and the report, its Markdown
and the issue link say "didn't run, <why>" without the exception's class name,
so the advice fits in the issue link's 160 characters. The found/not-found
wording is unchanged otherwise (tools/car-triage.py reads it).

Tested off-car: core/runtime/local-map-test.sh (the new case fails before
this change), map-test, car-triage-test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@htunnicliff
htunnicliff marked this pull request as ready for review December 1, 2026 19:50
@htunnicliff
htunnicliff requested a review from a team as a code owner December 1, 2026 19:50

This branch has not been deployed

No deployments
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.

1 participant