Open alexbool opened 6 years ago
My similar backtrace from vulkano-examples triangle example:
0 triangle 0x00000001009ec7da alloc_system::platform::_$LT$impl$u20$alloc..allocator..Alloc$u20$for$u20$$RF$$u27$a$u20$alloc_system..System$GT$::oom::h7ba03423480c6435 + 90 (lib.rs:210)
1 triangle 0x00000001009ec778 _$LT$alloc_system..System$u20$as$u20$alloc..allocator..Alloc$GT$::oom::h1cf7c566a518ba1a + 40 (lib.rs:81)
2 triangle 0x00000001009c535c __rde_oom + 44 (lib.rs:126)
3 triangle 0x00000001009b80d9 _$LT$alloc..heap..Heap$u20$as$u20$alloc..allocator..Alloc$GT$::oom::h3685bc2cb5516d9c + 9 (heap.rs:98)
4 triangle 0x00000001009b80c3 _$LT$alloc..raw_vec..RawVec$LT$T$C$$u20$A$GT$$GT$::reserve::h9f053b2c575fd046 + 339 (raw_vec.rs:557)
5 triangle 0x00000001009b155f _$LT$core..fmt..Write..write_fmt..Adapter$LT$$u27$a$C$$u20$T$GT$$u20$as$u20$core..fmt..Write$GT$::write_str::h1d32baed33c7429b + 31 (mod.rs:214)
6 triangle 0x00000001008f94c2 _$LT$alloc..string..String$u20$as$u20$core..fmt..Display$GT$::fmt::h8e8ee9dc63e63bfb + 50 (string.rs:1836)
7 triangle 0x00000001008fcfd8 _$LT$objc..message..MessageError$u20$as$u20$core..fmt..Display$GT$::fmt::hc4da75ee8325b1eb + 40 (mod.rs:157)
8 triangle 0x00000001009f29c9 core::fmt::write::hef443c0bb15170fe + 601 (mod.rs:1035)
9 triangle 0x00000001009b2234 std::panicking::begin_panic_fmt::hc0d47fefde30b0eb + 116 (panicking.rs:349)
10 triangle 0x00000001008c77fd metal_rs::CoreAnimationLayerRef::set_presents_with_transaction::hbaf562b3f4356cce + 509 (lib.rs:306)
It seems the objc send is failing, returning an undefined MessageError which on display in the panic!() tries to allocate a huge vec. My guess it it's due to https://github.com/SSheldon/rust-objc/issues/62.
Running examples (from HEAD of this repository) fails:
Still works on stable (1.25.0). I think this is rust issue, but cannot figure it out.