simconnect-rust
simconnect-rust copied to clipboard
Example aircraft_updates_on_change segfaults
Current master, both other examples work flawlessly. @BitsAndDroids Can you reproduce this one or is that just me? I reckon it worked on your machine
Output
$ cargo run --example aircraft_updates_on_change
Finished dev [unoptimized + debuginfo] target(s) in 0.15s
Running `target\debug\examples\aircraft_updates_on_change.exe`
Connected to simulator.
1
47.674717893853966
2
9.520238772817184
3
1370.4735475434936
error: process didn't exit successfully: `target\debug\examples\aircraft_updates_on_change.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
Segmentation fault
I'll have a look tomorrow and get back to you
@MrMinimal, I'm sorry for the late response. You were correct about the segfault. Why it used to work in the first place is a mystery, but I've opened a PR to tackle the issue.