stride3d / stride3d/stride

[Vulkan] Memory management and object sharing issues

Open
#631 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Graphics bug
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

1)Call vkCmdCopyBufferToImage with error
validation layer: vkCmdCopyBufferToImage(): VkBuffer object 0x2f0 used with no memory bound. Memory should be bound by calling vkBindBufferMemory(). The Vulkan spec states: If srcBuffer is non-sparse then it must be bound completely and contiguously to a single VkDeviceMemory object (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkCmdCopyBufferToImage-srcBuffer-00176)
validation layer: vkCmdCopyBufferToImage(): VkBuffer object 0x2f0 used with no memory bound. Memory should be bound by calling vkBindBufferMemory(). The Vulkan spec states: If srcBuffer is non-sparse then it must be bound completely and contiguously to a single VkDeviceMemory object (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkCmdCopyBufferToImage-srcBuffer-00176)
validation layer: THREADING ERROR : object of type VkBuffer is simultaneously used in thread 0x4a70 and thread 0x5ec4
validation layer: THREADING ERROR : object of type VkBuffer is simultaneously used in thread 0x4a70 and thread 0x5ec4

2)Call vkBindBufferMemory with error
validation layer: In vkBindBufferMemory(), attempting to bind memory (0x55ce) to object (0x55cb) which has already been bound to mem object 0x55cc. The Vulkan spec states: buffer must not already be backed by a memory object (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkBindBufferMemory-buffer-01029)
validation layer: In vkBindBufferMemory(), attempting to bind memory (0x55ce) to object (0x55cb) which has already been bound to mem object 0x55cc. The Vulkan spec states: buffer must not already be backed by a memory object (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkBindBufferMemory-buffer-01029)
validation layer: THREADING ERROR : object of type VkBuffer is simultaneously used in thread 0x5cac and thread 0x3b04
validation layer: THREADING ERROR : object of type VkBuffer is simultaneously used in thread 0x5cac and thread 0x3b04

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported validation errors around vkCmdCopyBufferToImage and vkBindBufferMemory. Trace the VkBuffer creation, memory binding, and concurrent use paths, then verify that buffers are bound once before use and are not accessed simultaneously across threads; the issue provides no file or test entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.