Search Issue Tracker
Fixed in 2021.3.31f1
Fixed in 2021.3.X, 2022.3.X, 2023.1.X, 2023.2.X, 2023.3.X
Votes
0
Found in
2020.3.47f1
2021.3.22f1
2022.2.14f1
2023.1.0b11
2023.2.0a9
2023.3.0a3
Issue ID
UUM-32751
Regression
No
WebCamTexture throws "SampleCB() - buffer sizes do not match" error when using NVIDIA Broadcast virtual camera
How to reproduce:
1. Setup NVIDIA Broadcast app and create a virtual camera
2. Open the “Nvidia_Virtual_Camera_Bug” project
3. Open the “SampleScene”
4. In Hierarchy navigate to “WebcamTextureTest” GameObject
5. In the Inspector change the “Device Match” field in the “Webcam Texture Test” Script Component to the NVIDIA Broadcast virtual camera and makes sure that “Request Width”, “Request Height”, and “Request Fps” fields are set to “0”
6. Enter Play Mode and observe the scene
Expected result: WebCamTexture renders NVIDIA Broadcast virtual camera
Actual result: WebCamTexture does not render NVIDIA Broadcast virtual camera and “SampleCB() - buffer sizes do not match” error is logged in Console
Reproduced with: 2020.3.47f1, 2021.3.22f1, 2022.2.14f1, 2023.1.0b11, 2023.2.0a9
Reproduced on: Windows 10 (by reporter), Windows 11
Notes:
1. Also reproducible in Player
2. To reproduce, in the “Webcam Virtual Texture“ Script Component, the “Device Match” field must have the exact name of the camera or webcam device i.e. “Camera (NVIDIA Broadcast)”, “Integrated Webcam“, “OBS Virtual Camera“. Please refer to this documentation on how devices are named when you want to use them through the NVIDIA Broadcaster app: https://www.nvidia.com/en-eu/geforce/guides/broadcast-app-setup-guide/
3. NVIDIA Broadcast virtual camera is rendered by WebCamTexture when in the “Webcam Texture Test” Script Component, the “Request Width” and "Request Height" match the exact values that are indicated within the NVIDIA Broadcast app (ABC x XYZ @ 00FPS → ABC (WIDTH) x XYZ (HEIGHT))
4. In the “Webcam Texture Test” Script Component, the “Request Fps” could be incorrect, but it still renders. From the testing that I did, this value did not affect the outcome, meaning, if other fields are set correctly, then it will work regardless of this field’s value. This might mean, that the constructor, that takes in the fps value in the parameter, doesn’t work.
5. OBS Virtual camera and Integrated Webcam are rendered by WebCamTexture when “Request Width” and "Request Height" fields are set to “0”
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- OnPreprocessAsset is not triggered when AssetPostprocessor version is changed and script recompiles
- Terrain Component and Overlay Text Rendering is broken when using Bitmap Text Rendering Mode
- “No Overlays” Overlay overlaps with the Tile Palette toolbar when docked on the left
- One Camera is not being rendered correctly when the Upscaling Filter is set to Automatic or Bilinear
- Terrain Layer is used for Painting Texture and will be added to the Terrain Layer List after being replaced by another Terrain Layer
Resolution Note (fix version 2023.2):
Fix WebCamTexture throws error when asking a different configuration than the one specified in NVIDIA Broadcast