Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion error on present index under wayland. #60

Open
halli2 opened this issue Jun 8, 2022 · 2 comments
Open

Assertion error on present index under wayland. #60

halli2 opened this issue Jun 8, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@halli2
Copy link

halli2 commented Jun 8, 2022

Describe the bug
Panics on assertion about present index and next semaphore value when running under wayland.

To Reproduce
Under wayland run:
cargo r --bin view --release --no-default-features -- --scene mini_battle --width 1920 --height 1080 --no-debug

Expected behavior
No panic.

Device:

  • Linux - Fedora
  • Running under wayland
  • AMD RADV - Mesa 22.0.3

Additional context
Error message:

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `0`,
 right: `3`', crates/lib/kajiya-backend/src/vulkan/swapchain.rs:242:17

If I remove the assertion it runs as expected.

I tried logging the values and most of the time it seems to loop around from index 2 instead of 3 as expected.

[2022-06-08 19:18:30][kajiya_backend::vulkan::swapchain][INFO] Present Index: 0 Next Semaphore Value: 0
[2022-06-08 19:18:30][kajiya_backend::vulkan::swapchain][INFO] Present Index: 1 Next Semaphore Value: 1
[2022-06-08 19:18:30][kajiya_backend::vulkan::swapchain][INFO] Present Index: 2 Next Semaphore Value: 2
[2022-06-08 19:18:30][kajiya_backend::vulkan::swapchain][INFO] Present Index: 3 Next Semaphore Value: 3
[2022-06-08 19:18:30][kajiya_backend::vulkan::swapchain][INFO] Present Index: 0 Next Semaphore Value: 0
[2022-06-08 19:18:31][kajiya_backend::vulkan::swapchain][INFO] Present Index: 1 Next Semaphore Value: 1
[2022-06-08 19:18:31][kajiya_backend::vulkan::swapchain][INFO] Present Index: 2 Next Semaphore Value: 2
[2022-06-08 19:18:31][kajiya_backend::vulkan::swapchain][INFO] Present Index: 0 Next Semaphore Value: 3
[2022-06-08 19:18:31][kajiya_backend::vulkan::swapchain][INFO] Present Index: 1 Next Semaphore Value: 0
[2022-06-08 19:18:31][kajiya_backend::vulkan::swapchain][INFO] Present Index: 2 Next Semaphore Value: 1
[2022-06-08 19:18:31][kajiya_backend::vulkan::swapchain][INFO] Present Index: 0 Next Semaphore Value: 2
@halli2 halli2 added the bug Something isn't working label Jun 8, 2022
@EntityinArray
Copy link

Same error on Windows 10 with any scene, or even without it

cargo run --bin view --release
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `0`,
 right: `1`', crates\lib\kajiya-backend\src\vulkan\swapchain.rs:242:17

@zeozeozeo
Copy link

Seems to work just fine on Windows after commenting out this line:

assert_eq!(present_index, self.next_semaphore);

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants