-
Notifications
You must be signed in to change notification settings - Fork 633
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
Mechanism2d field not published to network table with smartdashboard #7868
Comments
It's a problem we started seeing after updating to 2025.3.2 yesterday. We've not seen this problem before with older version of WPILib. Here is a log file from yesterday after updating 2025.3.2 It is not just this one log file with this problem; it is every log file since updating 2025.3.2. We are using DogLog, so maybe it has something to do with DogLog instead of WPILib. Here is our code where we are publishing the Mechanism2d to SmartDashboard, and we log NT into log files with DogLog |
I examined the log using https://github.com/wpilibsuite/allwpilib/blob/main/wpiutil/examples/printlog/datalog.py and can confirm that the data for several of the other topics is missing. I haven't been able to root cause it though, and there's no changes to WPILib since 2025.3.1 that would affect that part of the code. It is possible you're seeing a weird interaction/race condition and 2025.3.2 just happened to trigger it. If you have time, could you start DogLog before RobotContainer is constructed? I'm curious to see if that will properly capture the data. |
Interesting. Moved doglog before robot container initialization and it's working now. Thanks! |
Yeah, it sounds like you hit some sort of race condition where you started NT capture just after a bunch of data gets published and so the log misses that data and somehow 2025.3.2 triggered it. It's a little bit weird that data that gets published periodically seems to also be missing, but as long as it all gets resolved by turning on NT logging first, you're probably fine. |
Sounds like a bug in DogLog? It should properly handle this case (starting it after some stuff has already been written to NT). |
I'm having the same problem and I don't use DogLog. I will try to put together a test case but at this point it seems to work in Live Mode (NT) and the logs created using simulation but not the logs created on the RoboRio. |
Describe the bug
We notice that we cannot see our mechanism2d in ascope. It seems the .controllable/.name/.type and many other fields are empty after updating to 2025.3.2. In simulation, this works as expected. Only in log files.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Left is a log from today with 2025.3.2. RIght is a log from saturday with 2025.3.1
Desktop (please complete the following information):
WPILib Information:
Project Version: 2025.3.2
VS Code Version: 1.96.2
WPILib Extension Version: 2025.3.2
C++ Extension Version: 1.23.2
Java Extension Version: 1.38.0
Java Debug Extension Version: 0.58.1
Java Dependencies Extension Version 0.24.1
Java Version: 17
Java Location: C:\Users\Public\wpilib\2025\jdk
Vendor Libraries:
DogLog (2025.4.0)
PathplannerLib (2025.2.6)
CTRE-Phoenix (v6) (25.3.1)
photonlib (v2025.2.1)
PlayingWithFusion (2025.01.23)
REVLib (2025.0.3)
WPILib-New-Commands (1.0.0)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: