Why am I getting heap corruption (only in release build) from a derived Deserialize
impl?
And how can I prevent this from happening?
> ntdll.dll!00007ffb48211cd0() Unknown
ntdll.dll!00007ffb48214f12() Unknown
ntdll.dll!00007ffb48215b10() Unknown
ntdll.dll!00007ffb481ca61b() Unknown
myproject.exe!serde::de::SeqAccess::next_element<bincode::de::{{impl}}::deserialize_tuple::Access<bincode::de::read::SliceReader, bincode::Infinite, byteorder::LittleEndian>,myproject::devices::launchpad::widget::NoteInputW>(bincode::de::{{impl}}::deserialize_tuple::Access<bincode::de::read::SliceReader, bincode::Infinite, byteorder::LittleEndian> * self) Line 1442 Unknown
myproject.exe!myproject::devices::launchpad::_IMPL_DESERIALIZE_FOR_SessionData::{{impl}}::deserialize::{{impl}}::visit_seq<bincode::de::{{impl}}::deserialize_tuple::Access<bincode::de::read::SliceReader, bincode::Infinite, byteorder::LittleEndian>>(myproject::devices::launchpad::_IMPL_DESERIALIZE_FOR_SessionData::{{impl}}::deserialize::__Visitor __seq, bincode::de::{{impl}}::deserialize_tuple::Access<bincode::de::read::SliceReader, bincode::Infinite, byteorder::LittleEndian>) Line 39 Unknown
myproject.exe!myproject::devices::launchpad::thread_fn_launchpad(alloc::arc::Arc<core::sync::atomic::AtomicBool> terminate, std::sync::mpsc::Receiver<window::MsgCoreToWin> rx_core_to_launchpad, std::sync::mpsc::Sender<myproject::devices::launchpad::MsgLaunchpadToCore> tx_launch_to_core2, std::sync::mpsc::Sender<myproject::devices::launchpad::MsgLaunchpadToDaw> tx_launch_to_daw, std::sync::mpsc::Receiver<myproject::devices::launchpad::MsgDawToLaunchpad> rx_daw_to_launchpad) Line 572 Unknown
myproject.exe!std::sys_common::backtrace::__rust_begin_short_backtrace<closure,()>(closure f) Line 136 Unknown
myproject.exe!std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure>,()>(unsigned char * data) Line 308 Unknown
myproject.exe!panic_unwind::__rust_maybe_catch_panic() Line 102 Unknown
myproject.exe!alloc::boxed::{{impl}}::call_box<(),closure>(closure * self, ...) Line 783 Unknown
myproject.exe!std::sys::windows::thread::{{impl}}::new::thread_start() Line 55 Unknown
[External Code]