Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Resolved Validation: The number of dynamic offsets (6) does not match the number of dynamic buffers (5) in [B

Discussion in 'Unity 6 Beta' started by BlackSpider, Apr 18, 2024.

  1. BlackSpider

    BlackSpider

    Joined:
    Oct 8, 2011
    Posts:
    52
    With the latest Unity Beta I get the following error. It only happens when I build and run a big scene. If I have the normal SampleScene with a capsule it doesn't show up.

    The screen of webgpu becomes fully black and shows the error every frame but sometimes it renders correctly for a few frames without error.

    Anyone has any idea where I should start looking?


    Validation: The number of dynamic offsets (6) does not match the number of dynamic buffers (5) in [BindGroupLayout (unlabeled)].
    - While encoding [RenderPassEncoder (unlabeled)].SetBindGroup(1, [BindGroup], 6, ...).

    WebGPU.framework.js.br:9 Validation: [Invalid CommandBuffer] is invalid.
    - While calling [Queue].Submit([[Invalid CommandBuffer]])
     
    Last edited: Apr 19, 2024
  2. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    467
    I just fixed this bug recently and hope to get the fix out soon, but it will likely be a couple weeks due to release management. The bug is a result of the SRP Batcher code that was added to the WebGPU device, so if you want to get around the problem in the mean time, it might be possible to do that by disabling SRP Batcher in the project for now.
     
    BlackSpider likes this.
  3. BlackSpider

    BlackSpider

    Joined:
    Oct 8, 2011
    Posts:
    52
    Thank you @brendanduncan_u3d for the quick answer, that indeed looks to be fixing it. When I create builds I will make sure to disable that for WebGPU and wait for the fix to land in one of the upcoming releases.

    Please keep me posted in this thread when the release is available.
     
    brendanduncan_u3d likes this.
  4. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    467
    @BlackSpider The batch of fixes that include this should be in the 02f1 release.
     
    BlackSpider likes this.
  5. BlackSpider

    BlackSpider

    Joined:
    Oct 8, 2011
    Posts:
    52
    @brendanduncan_u3d Thank you for the heads up. Will have a look once 02 releases. Any ETA when it will release?
     
  6. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    467
    @BlackSpider Sorry I have no idea about release schedules
     
  7. BlackSpider

    BlackSpider

    Joined:
    Oct 8, 2011
    Posts:
    52
    brendanduncan_u3d likes this.