Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example aircraft_updates_on_change segfaults #16

Open
MrMinimal opened this issue Mar 19, 2024 · 2 comments
Open

Example aircraft_updates_on_change segfaults #16

MrMinimal opened this issue Mar 19, 2024 · 2 comments

Comments

@MrMinimal
Copy link

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
Copy link
Contributor

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

BitsAndDroids added a commit to BitsAndDroids/simconnect-rust that referenced this issue Mar 25, 2024
BitsAndDroids added a commit to BitsAndDroids/simconnect-rust that referenced this issue Mar 25, 2024
…oids:BitsAndDroids/simconnect-rust into Sequal32#16-fix-update-example
@BitsAndDroids
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants