Phoenix logging crashing robot code with USB file system errors

Open
#439 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
data

Research direction

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.

Written by the indexing model from the issue text.

Description

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]
Dominant language
Java
Stars
195
Forks
26
Avg merge
11h 58m
Merged PRs (30d)
10

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wpilibsuite/SystemcoreTesting

All issues in wpilibsuite/SystemcoreTesting

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.