Search Issue Tracker

Fixed

Fixed in 2021.3.31f1, 2022.3.5f1, 2023.1.5f1, 2023.2.0b6

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/|https://www.nvidia.com/en-eu/geforce/guides/broadcast-app-setup-guide/|smart-link]
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”

  1. Resolution Note (fix version 2023.2.0b6):

    Fix WebCamTexture throws error when asking a different configuration than the one specified in NVIDIA Broadcast

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.