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

Sim GUI can't display protobuf data #6443

Closed
Gold856 opened this issue Mar 15, 2024 · 2 comments · Fixed by #6979
Closed

Sim GUI can't display protobuf data #6443

Gold856 opened this issue Mar 15, 2024 · 2 comments · Fixed by #6979
Labels
component: ntcore NetworkTables library os: simulation type: bug Something isn't working.

Comments

@Gold856
Copy link
Contributor

Gold856 commented Mar 15, 2024

Describe the bug
When publishing protobuf data, like a Pose2d or Translation2d, Sim GUI will display the fields (like translation and rotation for Pose2d or x and y for Translation2d) but it won't display the actual data.

To Reproduce
Steps to reproduce the behavior:

  1. Use a ProtobufPublisher to publish an object like Pose2d.
  2. Run the simulator.
  3. Observe the lack of data, but the presence of the fields.

Expected behavior
Sim GUI should display the data like Glass does.

Screenshots
Glass showing data:
image

Sim GUI not showing data but showing fields:
image

Desktop (please complete the following information):

  • OS: Windows 11
  • WPILib Information:
    Project Version: 2024.3.2
    VS Code Version: 1.84.0
    WPILib Extension Version: 2024.3.1
    C++ Extension Version: 1.19.1
    Java Extension Version: 1.26.2023121408
    Java Debug Extension Version: 0.55.2023121302
    Java Dependencies Extension Version 0.23.2023120100
    Java Version: 17
    Java Location: C:\Users\Public\wpilib\2024\jdk
    Vendor Libraries:
    NavX (2024.1.0)
    CTRE-Phoenix (v6) (24.1.0)
    REVLib (2024.2.0)
    WPILib-New-Commands (1.0.0)
@PeterJohnson
Copy link
Member

Weird. The same code is used for both. Will look into it.

@calcmogul calcmogul added type: bug Something isn't working. os: simulation component: ntcore NetworkTables library labels Jun 18, 2024
@ThadHouse
Copy link
Member

This is a bug exclusively on Windows, caused by invalid use on data exports across dll boundaries. Thats why this doesn't show in glass. Glass is entirely statically linked. #6979 when done right will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ntcore NetworkTables library os: simulation type: bug Something isn't working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants