Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ntjohnson1
Copy link
Member

What

Our code gen treats all enums as uint8_t however they can be other types. In this instance we have a uint32_t and by shaving off that precision we get the fairly ambiguous missing_union_arm error. Reported on discord here but it means the VideoStream isn't available on C++ right now.

re_viewer_context::component_ui_registry] Failed to deserialize component of type rerun.components.VideoCodec: Failed to deserialize "rerun.components.VideoCodec"

See my first commit for the point fix then my second commit resolves this in code gen.

@ntjohnson1 ntjohnson1 added this to the 0.24.1 (maybe) milestone Jul 23, 2025
Copy link

github-actions bot commented Jul 23, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
8fb3d94 https://rerun.io/viewer/pr/10745 +nightly +main

Note: This comment is updated whenever you push a commit.

Copy link
Member

@jleibs jleibs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to ask you to make a change and then realized I should make sure the change was possible, and in doing so wrote the change, so I pushed it 😆

Looks good.

@ntjohnson1
Copy link
Member Author

I was going to ask you to make a change and then realized I should make sure the change was possible, and in doing so wrote the change, so I pushed it 😆

Looks good.

I can't approve my own PR but your changes LGTM as well.

@ntjohnson1 ntjohnson1 merged commit 6ebedf6 into main Jul 24, 2025
47 checks passed
@ntjohnson1 ntjohnson1 deleted the nick/cpp_video_stream branch July 24, 2025 17:54
emilk pushed a commit that referenced this pull request Aug 6, 2025
### What
Our code gen treats all enums as uint8_t however they can be other
types. In this instance we have a uint32_t and by shaving off that
precision we get the fairly ambiguous `missing_union_arm` error.
Reported on discord
[here](https://discord.com/channels/1062300748202921994/1397335975364919392/1397335975364919392)
but it means the VideoStream isn't available on C++ right now.

```console
re_viewer_context::component_ui_registry] Failed to deserialize component of type rerun.components.VideoCodec: Failed to deserialize "rerun.components.VideoCodec"
```

See my first commit for the point fix then my second commit resolves
this in code gen.

---------

Co-authored-by: Jeremy Leibs <[email protected]>
@emilk emilk changed the title Fix CPP Interface to VideoStream Fix C++ interface for VideoStream Aug 7, 2025
@emilk emilk mentioned this pull request Aug 7, 2025
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants