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

Crash buddy::PairState::replace_next #16

Closed
kvark opened this issue Nov 4, 2020 · 3 comments
Closed

Crash buddy::PairState::replace_next #16

kvark opened this issue Nov 4, 2020 · 3 comments

Comments

@kvark
Copy link
Contributor

kvark commented Nov 4, 2020

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Illegal instruction: 4
Termination Reason:    Namespace SIGNAL, Code 0x4
Terminating Process:   exc handler [1338]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   cube                          	0x000000010e447014 core::hint::unreachable_unchecked::h7e948729dce20eef + 4 (hint.rs:51)
1   cube                          	0x000000010e44503b gpu_alloc::buddy::PairState::replace_next::hd644150acb99daa5 + 75 (buddy.rs:37)
2   cube                          	0x000000010e4453ff gpu_alloc::buddy::Size::acquire::h27b3e461dc60d6b9 + 383 (buddy.rs:159)
3   cube                          	0x000000010e209730 gpu_alloc::buddy::BuddyAllocator$LT$M$GT$::alloc::hb0998c057cbd506a + 944 (buddy.rs:345)
4   cube                          	0x000000010e1b7baa gpu_alloc::allocator::GpuAllocator$LT$M$GT$::alloc_internal::h33ffc27b6ac6d927 + 3354 (allocator.rs:317)
5   cube                          	0x000000010e1b7e34 gpu_alloc::allocator::GpuAllocator$LT$M$GT$::alloc_with_strategy::hd0b8beb74e7f121c + 68 (allocator.rs:140)
6   cube                          	0x000000010e01509a wgpu_core::device::alloc::MemoryAllocator$LT$B$GT$::allocate::h371a98d8c4aa3e1a + 362 (alloc.rs:80)
7   cube                          	0x000000010e185698 wgpu_core::device::Device$LT$B$GT$::create_buffer::hed67cbbc7728bce3 + 1944 (mod.rs:472)
8   cube                          	0x000000010e04efa6 wgpu_core::device::_$LT$impl$u20$wgpu_core..hub..Global$LT$G$GT$$GT$::device_create_buffer::hd87c51df08fd4f54 + 3270 (mod.rs:1002)
9   cube                          	0x000000010e1b5075 _$LT$wgpu..backend..direct..Context$u20$as$u20$wgpu..Context$GT$::device_create_buffer::hb23665a174b9be64 + 261 (direct.rs:894)
10  cube                          	0x000000010e1b0263 _$LT$wgpu..Device$u20$as$u20$wgpu..util..DeviceExt$GT$::create_buffer_init::h90c5b4529b02d706 + 387 (mod.rs:93)
@kvark
Copy link
Contributor Author

kvark commented Nov 4, 2020

I got this when running the cube example of wgpu-rs on top of gfx-rs/wgpu#1015

@zakarumych
Copy link
Owner

I will look into this

@zakarumych
Copy link
Owner

See #19 and kvark/wgpu#1

bors bot added a commit to gfx-rs/wgpu that referenced this issue Nov 9, 2020
1015: Replace gfx-memory by gpu-alloc r=cwfitzgerald a=kvark

**Connections**
Fixes #1011
Blocked on:
- zakarumych/gpu-alloc#4
- zakarumych/gpu-alloc#14
- zakarumych/gpu-alloc#16

**Description**
Moves us to gpu-allocator, which should be simpler and better supported than gfx-memory.

**Testing**
Untested and unfinished (to be updated)

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants