Sequal32 / simconnect-rust

SimConnect bindings for rust.
MIT License
32 stars 14 forks source link

Example aircraft_updates_on_change segfaults #16

Open MrMinimal opened 8 months ago

MrMinimal commented 8 months ago

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
BitsAndDroids commented 8 months ago

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

BitsAndDroids commented 8 months ago

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