simconnect-rust icon indicating copy to clipboard operation
simconnect-rust copied to clipboard

Example aircraft_updates_on_change segfaults

Open MrMinimal opened this issue 1 year ago • 2 comments

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

MrMinimal avatar Mar 19 '24 20:03 MrMinimal

I'll have a look tomorrow and get back to you

BitsAndDroids avatar Mar 19 '24 20:03 BitsAndDroids

@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.

BitsAndDroids avatar Mar 25 '24 14:03 BitsAndDroids