-
Notifications
You must be signed in to change notification settings - Fork 277
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
X-Plane crashes when retrieving DREFS #226
Comments
I just noticed the |
I confirm GETD can cause a CTD of the simulator due to a segmentation fault when the data refs queried hold all together more data than what fits into the response buffer. The related piece of code is here: https://github.com/nasa/XPlaneConnect/blob/master/xpcPlugin/MessageHandlers.cpp#L536 XPC uses a fixed buffer size of 4096 bytes to assemble the response. However, there is no check in place whether adding the next data ref's content will exceed the buffer size or not. |
👍 also noticed while trying to cycle through all the datarefs listed in |
Using Python I retrieved a list of DREFS, I think it might be the length of the request that is causing trouble, but I'm not sure. And
Log.txt
has no info. No other plugins (apart from the ToLiss A319) or custom scenery was loaded.This is the request using
getDREFS
andsendUDP
:The text was updated successfully, but these errors were encountered: