Phoenix logging crashing robot code with USB file system errors

Offen
#439 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
data

Rechercherichtung

The crash is an uncaught std::filesystem_error thrown while reading the size of a .hoot log file on a failing USB drive, so start in the Phoenix logging code that calls file size on the log path. Reproducing it needs a log file on a faulty or simulated I/O-error filesystem, and the fix should make the logger handle the error without terminating the robot code. The issue does not say what the expected behavior should be, so confirm that with maintainers first.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

CTR Electronics

I was helping a team that had a usb drive with filesystem errors, and it looks like at least once phoenix crashed the robot code.

Oct 30 17:24:28 robot bash[881]: terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
Oct 30 17:24:28 robot bash[881]:   what():  filesystem error: cannot get file size: Input/output error [/u/logs/2026-04-29_22-02-57/rio_2026-04-29_22-03-04.hoot]
Vorherrschende Sprache
Java
Sterne
195
Forks
26
Ø Merge
11 Std. 58 Min.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus wpilibsuite/SystemcoreTesting

Alle Issues in wpilibsuite/SystemcoreTesting

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.