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

Network Protocol: DREFs with result lengths greater than 255 byte can not be read #146

Open
rthaenert opened this issue Nov 26, 2018 · 1 comment

Comments

@rthaenert
Copy link

Hi,

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.

@rthaenert 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 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
@jason-watkins
Copy link
Contributor

Hi Ralf,

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.

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

No branches or pull requests

2 participants