{"action":"created","issue":{"url":"https://api.github.com/repos/nasa/XPlaneConnect/issues/128","repository_url":"https://api.github.com/repos/nasa/XPlaneConnect","labels_url":"https://api.github.com/repos/nasa/XPlaneConnect/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/nasa/XPlaneConnect/issues/128/comments","events_url":"https://api.github.com/repos/nasa/XPlaneConnect/issues/128/events","html_url":"https://github.com/nasa/XPlaneConnect/issues/128","id":312313028,"number":128,"title":"getDREF returning empty float array even though the dataref is not blank","user":{"login":"mob9221","id":35857741,"avatar_url":"https://avatars0.githubusercontent.com/u/35857741?v=4","gravatar_id":"","url":"https://api.github.com/users/mob9221","html_url":"https://github.com/mob9221","followers_url":"https://api.github.com/users/mob9221/followers","following_url":"https://api.github.com/users/mob9221/following{/other_user}","gists_url":"https://api.github.com/users/mob9221/gists{/gist_id}","starred_url":"https://api.github.com/users/mob9221/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mob9221/subscriptions","organizations_url":"https://api.github.com/users/mob9221/orgs","repos_url":"https://api.github.com/users/mob9221/repos","events_url":"https://api.github.com/users/mob9221/events{/privacy}","received_events_url":"https://api.github.com/users/mob9221/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-08T15:06:26Z","updated_at":"2018-04-08T22:57:57Z","closed_at":null,"author_association":"NONE","body":"Hello, I've recently started a project with XPC and using the Java interface for it. \r\n\r\nMy issue is that XPC is returning empty float arrays for datarefs.\r\n\r\nThis is what I read from XPCLog.txt which seems to indicate everything is fine:\r\n\r\n22:56:39.029|TRACE|MESG|Read message with length 17\r\n22:56:39.029| INFO|MSGH|Handling message from 127.0.0.1:49001\r\n22:56:39.029|DEBUG|MSGH|Existing connection. ID=0, Remote=127.0.0.1:49001\r\n22:56:39.029|TRACE|DBUG| 47 45 54 44 ff 01 0a 70 61 6e 65 6c 73 74 61 74 65\r\n22:56:39.029|DEBUG|DBUG|Head: GETD Size: 17\r\n22:56:39.030|DEBUG|DBUG|    #1/1 (size:10) panelstate\r\n22:56:39.030|TRACE|GETD|DATA Requested: New Request for connection 0 (1 data refs)\r\n22:56:39.030|TRACE|DMAN|Entered Get(string, float*, int)\r\n22:56:39.030| INFO|DMAN|Get DREF panelstate (x:9D33C300) Type: 32\r\n22:56:39.030| INFO|DMAN| -- value count was 5\r\n22:56:39.030| INFO|SOCK|Send succeeded. (remote: 127.0.0.1:49001)\r\n\r\nBut then when I go into debugging my program to see what is causing the problem, \r\n\r\nI see that the result array being returned by getDREF method is empty:\r\n\r\n![image](https://user-images.githubusercontent.com/35857741/38469069-67df6fca-3b81-11e8-8a7f-16846cc79241.png)\r\n\r\nIf someone could help me out here, It would be great :)"},"comment":{"url":"https://api.github.com/repos/nasa/XPlaneConnect/issues/comments/379589672","html_url":"https://github.com/nasa/XPlaneConnect/issues/128#issuecomment-379589672","issue_url":"https://api.github.com/repos/nasa/XPlaneConnect/issues/128","id":379589672,"user":{"login":"jason-watkins","id":1038224,"avatar_url":"https://avatars1.githubusercontent.com/u/1038224?v=4","gravatar_id":"","url":"https://api.github.com/users/jason-watkins","html_url":"https://github.com/jason-watkins","followers_url":"https://api.github.com/users/jason-watkins/followers","following_url":"https://api.github.com/users/jason-watkins/following{/other_user}","gists_url":"https://api.github.com/users/jason-watkins/gists{/gist_id}","starred_url":"https://api.github.com/users/jason-watkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jason-watkins/subscriptions","organizations_url":"https://api.github.com/users/jason-watkins/orgs","repos_url":"https://api.github.com/users/jason-watkins/repos","events_url":"https://api.github.com/users/jason-watkins/events{/privacy}","received_events_url":"https://api.github.com/users/jason-watkins/received_events","type":"User","site_admin":false},"created_at":"2018-04-08T22:57:57Z","updated_at":"2018-04-08T22:57:57Z","author_association":"MEMBER","body":"Hi mob,\r\n\r\nInteresting that we've never seen this before, but the misordering makes me think you are having the same basic issue as #123. I have a hunch that increasing the timeout would help. Could you let me know what the result is if you run the code with a timeout of 1/2/4 seconds (note that that the `timeout` constructor parameter is in ms).\r\n\r\n-Jason"}}
{"actor":{"display_login":"jason-watkins"}}