![]() |
Output console prints text... in reverse
This is something that happened seeming out of the blue, not right after immediately re-imaging the cRIO or anything like that.
When I download code to the robot, everything is perfectly normal until this line Code:
[cRIO] [Squawk VM] Version: 2011 FRC, Jan 6 2011, 09:58:39Code:
System.out.println("Hello");Code:
[cRIO] ollHHas anyone else been having a problem anything like this? I'm using Java and running Netbeans 6.9.1 on Mac OS X 10.6.6 Edit: I tried this out on a team mate's computer, everything works fine for him. |
Re: Output console prints text... in reverse
We have had a similar problem. The main difference is that it outputs gibberish, not just in reverse.
The proper output loop is as follows: Code:
[cRIO] LEFT CENTER RIGHTCode:
[cRIO] te ue truLEFT CER IGHtru t truLEFT CER tru tr e |
Re: Output console prints text... in reverse
@jeremypg399: Your problem might be because of multithreading. As hard to miss as it sounds, are you printing in two places?
|
Re: Output console prints text... in reverse
I am simply polling a digital input. It is only printing in one place
|
Re: Output console prints text... in reverse
Would you please post your code? I don't think this will be easy to diagnose without it.
Sorry to hijack the OP's thread! Perhaps you could PM me the code, instead of cluttering up this one? |
Re: Output console prints text... in reverse
dude, crazy win
my suggestion to combat it is to either make a function that inverses strings you print, or reformat crio and pray |
Re: Output console prints text... in reverse
Hmm, I recently encountered something similar which I believe to be an error with however the cRIO handles sending/receiving information. I send some text, but only get less than half of it. Not sure what's going on, will try re-flashing it, this HAS to be a problem with the cRIO. This same exact code didn't work before, but something similar did.
|
Re: Output console prints text... in reverse
This is a known issue, thought to affect only the new router when connected wirelessly. This is due to an issue with the router and an issue with the cRIO that only affects console output. We are working on a fix.
In the meantime, if you see this on the old access point or connected via ethernet cable, please post the details. |
Re: Output console prints text... in reverse
Quote:
|
Re: Output console prints text... in reverse
Quote:
-Joe |
Re: Output console prints text... in reverse
Quote:
We expect to see a fix for the wifi related issue in the next Java update. We've never been able to reproduce the bug when hard wired. |
Re: Output console prints text... in reverse
Yeah, it's like you said, I happened to be on wireless. The problem I had with characters disappearing is a problem with how DataInputStream.readUTF() (or, rather UTFReader or something) reads data. It always expects 16-bit UTF characters, for some reason.
|
| All times are GMT -5. The time now is 11:20. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi