You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in X-Plane 11 there are a couple of Datarefs which return byte arrays greater than 255 bytes:
sim/aircraft/view/acf_author
sim/operation/failures/failures
If I request such a DREF with the Matlab or Java Client the following Exception is raised (due to the size of the result being incorrect in the response packet).
java.lang.NegativeArraySizeException: -1
at gov.nasa.xpc.XPlaneConnect.getDREFs(XPlaneConnect.java:311)
Issue #45 already notices the 1 byte limitation but as far as I understood having one dataref result greater than 1 byte was not considered.
The text was updated successfully, but these errors were encountered:
rthaenert
changed the title
Network Protocol: DREFs with strings greater than 1 byte can not be read
Network Protocol: DREFs with result lengths greater than 1 byte can not be read
Nov 26, 2018
rthaenert
changed the title
Network Protocol: DREFs with result lengths greater than 1 byte can not be read
Network Protocol: DREFs with result lengths greater than 255 byte can not be read
Nov 26, 2018
I don't even own a copy of X-Plane 11 yet, so I haven't done any testing with it at all. I'm slowly working towards introducing a new, more flexible network protocol that will remove arbitrary limits like this.
Thanks for the report, and I'll leave this open until I have a working build that resolves this.
Hi,
in X-Plane 11 there are a couple of Datarefs which return byte arrays greater than 255 bytes:
If I request such a DREF with the Matlab or Java Client the following Exception is raised (due to the size of the result being incorrect in the response packet).
Issue #45 already notices the 1 byte limitation but as far as I understood having one dataref result greater than 1 byte was not considered.
The text was updated successfully, but these errors were encountered: