-
Notifications
You must be signed in to change notification settings - Fork 44
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
Crash or no update when requesting array values #26
Comments
Sounds valid, needs to be checked & fixed. |
Ok, first the sub commands are wrong, you should subscribe to whole dataref, not just one index. So the correct would be: sub sim/cockpit2/switches/generic_lights_switch I did manage to reproduce the crash. Looks like there is some memory allocation issue related to array datarefs. The sim crashes with a delay and stack trace looking: #0 0x00007ffff35b3eaa in _int_malloc (av=av@entry=0x7ffff3902c20 <main_arena>, bytes=bytes@entry=24) at malloc.c:3677 I'll continue investigation. |
There was a bug in array dataref handling which has now been fixed. |
I finally manage to find some time to test this out, and it looks like it fixes everything up. Sorry for the delayed response. I appreciate your fix for this! |
I am trying to get the value of the light switches in the cockpit for the Boeing 737.
sub sim/cockpit2/switches/generic_lights_switch[0]
sub sim/cockpit2/switches/generic_lights_switch[1]
sub sim/cockpit2/switches/landing_lights_switch[0]
When I make these requests, nothing happens, so its like they are not found. If I remove the array index, it crashes the whole sim.
I am able to get these values out via the X-Plane UDP RREF command, so it should be possible to do this. Also, a while ago you fixed up #22 which seemed to fix up anything without an array index, but that does not fix this problem.
Thanks!
The text was updated successfully, but these errors were encountered: