Welcome, Guest. Please Login.
Surveyor Corporation Surveyor SRV-1
Home Help Search Login

Surveyor Robotics Forum

Welcome to the user support forum for Surveyor SRV-1 robots, SRV-1 robot controllers and SVS stereo vision systems. To register for this forum, please send an email to support@surveyor.com which includes your desired forum user name, your registration email address, and a brief explanation of why you wish to join, and we will create a forum account for you.

Please note that there is a Search button in the forum toolbar for forum topics. Another effective search method for the entire surveyor.com site is to use Google, e.g. "xyz site://www.surveyor.com" where "xyz" is the search topic.



Pages: 1
Send Topic Print
Troubleshooting Errors (Read 4790 times)
endure
YaBB Newbies
*


/train FTW

Posts: 27
Troubleshooting Errors
09/13/06 at 2:47pm
 
After a few hours, I encounter the following error:
 
Error sending command:  
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.surveyor.wstreamd.servlets.SRVServlet.doGet(Unknown Source)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.surveyor.wstreamd.clients.ServletWrapper.(Unknown Source)
     at com.surveyor.wstreamd.clients.WCSClientClosed.read(Unknown Source)
     at com.surveyor.wstreamd.clients.WCSConnection.read(Unknown Source)
     at com.surveyor.wstreamd.StreamServer.start(Unknown Source)
     at com.surveyor.wstreamd.StreamServer.main(Unknown Source)
     at SRV1Console$WCSServer.run(SRV1Console.java:1159)
Caused by: java.lang.OutOfMemoryError: Java heap space
 
Any insight is much appreciated.
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Troubleshooting Errors
Reply #1 - 09/13/06 at 4:00pm
 
No - we haven't seen that before.  Are you running the EXE version of SRV1Console under Windows, or are you running SRV1Console from a command prompt ?
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
endure
YaBB Newbies
*


/train FTW

Posts: 27
Re: Troubleshooting Errors
Reply #2 - 09/13/06 at 8:08pm
 
I'm running it from a command prompt.  Mac OSX.  Smiley
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Troubleshooting Errors
Reply #3 - 09/14/06 at 6:46am
 
Okay - I checked on this, and found that Java's default memory allocations aren't very large.  Increasing them should fix the error:  
 
 
java -Xms64M -Xmx128M -cp .:RXTXcomm.jar:ImageButton:wstreamd_embed.jar: SRV1Console
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
endure
YaBB Newbies
*


/train FTW

Posts: 27
Re: Troubleshooting Errors
Reply #4 - 09/14/06 at 10:23am
 
Thanks for this.  I will post results later today.
 
Does this allocate 128M for Java going forward or will I have to set this everytime I run the SRV1Console?
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Troubleshooting Errors
Reply #5 - 09/14/06 at 10:24am
 
You'll need to do the allocation each time you start SRV1Console
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
TDA
YaBB Newbies
*


robots rule !

Posts: 26
Re: Troubleshooting Errors
Reply #6 - 09/14/06 at 10:48am
 
Does this apply to PC users as well?
 
Haven't really toyed around with the software for more then a few minutes at a time...
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Troubleshooting Errors
Reply #7 - 09/14/06 at 10:56am
 
I haven't seen this error on the PC or Mac, but generally don't run for long stretches of time. In any case, there's no harm in increasing the memory allocation.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
endure
YaBB Newbies
*


/train FTW

Posts: 27
Re: Troubleshooting Errors
Reply #8 - 09/14/06 at 10:35pm
 
It looks like there were no errors of that sort during the day today.  But, I lost picture an hour or two in.  I will try again tomorrow and post the results.
Back to top
 
 
  IP Logged
endure
YaBB Newbies
*


/train FTW

Posts: 27
Re: Troubleshooting Errors
Reply #9 - 09/15/06 at 9:33am
 
Switched it on this morning and tried to connect.  Both with and without setting memory allocation for Java.  I seem to have lost video altogether.  No errors were thrown.
 
I'm going to update to the test firmware tonight.
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Troubleshooting Errors
Reply #10 - 09/15/06 at 9:57am
 
Certainly, give the new firmware and Java console a try.   Whether you're using the new firmware or old firmware, however, the following instructions apply ...
 
One of the problems we're occasionally seeing is interference with the Zigbee radio channels, perhaps from other WiFi radios in the 2.4GHz range.  Before checking this, try unplugging and replugging the ARM7 processor card (the red PCB) a few times to make certain there isn't an intermittent connection between the processor and controller.  If that doesn't help, you'll need to check the radio modules.  To do this, you'll need to use a PC.  Download the radio configuration program - X-CTU from
 
    http://www.maxstream.net/support/setup_xctu_4.9.8.exe
 
and the radio firmware from
 
    http://www.surveyor.com/srvdownload/xbee_v1090.zip
 
Make certain the robot is turned off, because the configuration program gets screwed up if another module is transmitting.
 
Start X-CTU, set the baud rate to 115200, and try Test/Query.  You may have to run the Test a few times before the radio is recognized.  Then change to the Modem Configuration screen, and Read the radio configuration.  Under Networking, the first parameter is Channel.  Change from Channel C to Channel E.  Then Write the radio configuration.
 
Do this with both radios (the one in the USB board and the one in the robot).  
 
If you get an error message about the version 1090 firmware not being found, click on Download New Versions, then load the xbee_v1090.zip file.
 
Let us know if this helps.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
Pages: 1
Send Topic Print