Go to Post What we may be looking at is a confusing situation and that can be confusing. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-23-2016, 02:47 PM
AMendenhall AMendenhall is offline
Registered User
FRC #3925
 
Join Date: Sep 2015
Location: Ventura
Posts: 24
AMendenhall is an unknown quantity at this point
GRIP Deploy Error

I changed the IP of the camera in my pipeline after updating to GRIP 1.3. When I deploy, the status switches to "Running GRIP", but the Network Table Viewer doesn't update values. I checked all settings for the correct team number and can't understand the error I'm getting when I deploy the pipeline:
/usr/local/frc/JRE//bin/java -Xmx50m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -jar '/home/lvuser/grip.jar' '/home/lvuser/project.grip'
Exception in thread "main" java.lang.ExceptionInInitializerError
at edu.wpi.grip.core.Main.main(Main.java:31)
Caused by: java.lang.IllegalStateException: Failed to configure the Logger
at edu.wpi.grip.core.GRIPCoreModule.<clinit>(GRIPCore Module.java:77)
... 1 more
Caused by: java.io.IOException: Couldn't get lock for %h/GRIP.log
at java.util.logging.FileHandler.openFiles(FileHandle r.java:422)
at java.util.logging.FileHandler.<init>(FileHandler.j ava:284)
at edu.wpi.grip.core.GRIPCoreModule.<clinit>(GRIPCore Module.java:47)
... 1 more
Reply With Quote
  #2   Spotlight this post!  
Unread 02-23-2016, 03:43 PM
Dcoyle10 Dcoyle10 is offline
Registered User
FRC #0811
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: New Hampshire
Posts: 2
Dcoyle10 is an unknown quantity at this point
Re: GRIP Deploy Error

Hey, we are having that same problem. Our grip was working last night and haven't made any changes but now we are having the same problem that you are having. Any help would be appreciated
Reply With Quote
  #3   Spotlight this post!  
Unread 02-23-2016, 06:29 PM
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
Re: GRIP Deploy Error

Sounds like some process (possibly a previous instance of GRIP) has a lock on the log file. Can you try running "lsof | grep GRIP.log" on the RIO using SSH?

It also might be a good idea to just remove any previous GRIP.log files just in case.
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
Reply With Quote
  #4   Spotlight this post!  
Unread 02-26-2016, 10:26 AM
wlogeais wlogeais is offline
Registered User
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2011
Location: Minnesota
Posts: 1
wlogeais is an unknown quantity at this point
Re: GRIP Deploy Error

Quote:
Originally Posted by Dcoyle10 View Post
Hey, we are having that same problem. Our grip was working last night and haven't made any changes but now we are having the same problem that you are having. Any help would be appreciated
Yes, our team observed this just before ship too. And as a CSA I wanted to get a handle on the why to confirm the fix. It appears to me that when grip has terminated 100 times that currently it fails starting with this exception, until a remove-all for GRIP.* is issued.

Good luck at the competitions everyone!!
Reply With Quote
  #5   Spotlight this post!  
Unread 03-08-2016, 12:50 AM
AMendenhall AMendenhall is offline
Registered User
FRC #3925
 
Join Date: Sep 2015
Location: Ventura
Posts: 24
AMendenhall is an unknown quantity at this point
Re: GRIP Deploy Error

I used PuTTY to run that command on the roboRIO. After re-deploying the pipeline GRIP seemed to work. Thanks.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-19-2016, 10:59 PM
AMendenhall AMendenhall is offline
Registered User
FRC #3925
 
Join Date: Sep 2015
Location: Ventura
Posts: 24
AMendenhall is an unknown quantity at this point
Re: GRIP Deploy Error

Recently I tried to deploy a pipeline to a different robot. After getting the same error on deploy (to the roboRIO), I ran "lsof | grep GRIP.log" with putty (logged in to both lvuser and admin). I still get the same error when I try to deploy.
Reply With Quote
  #7   Spotlight this post!  
Unread 03-19-2016, 11:04 PM
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
Re: GRIP Deploy Error

Quote:
Originally Posted by AMendenhall View Post
I ran "lsof | grep GRIP.log"
lsof doesn't fix anything, it just outputs some stuff about open files that should be useful for debugging. What was the output?
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
Reply With Quote
  #8   Spotlight this post!  
Unread 03-20-2016, 02:41 PM
AMendenhall AMendenhall is offline
Registered User
FRC #3925
 
Join Date: Sep 2015
Location: Ventura
Posts: 24
AMendenhall is an unknown quantity at this point
Re: GRIP Deploy Error

There is no output. It just goes to a new line.
Reply With Quote
  #9   Spotlight this post!  
Unread 03-20-2016, 09:45 PM
AMendenhall AMendenhall is offline
Registered User
FRC #3925
 
Join Date: Sep 2015
Location: Ventura
Posts: 24
AMendenhall is an unknown quantity at this point
Re: GRIP Deploy Error

We're getting new errors on deploy...
We commented out this code and pushed:
Code:
table = NetworkTable.getTable("/GRIP/Mar20");
		try {
			new ProcessBuilder("/home/lvuser/grip1x.log").inheritIO().start();
		} catch (Exception e) {
			DriverStation.reportError("\n\n\n\nGrip Has Errored!\n\n\n\n", true);
		}
Then we deployed a pipeline that creates a webcam on port 0 (the usb webcam on the robot is "cam0") and publishes the framerate as a number. This is the error message we get when we deploy:
Code:
/usr/local/frc/JRE//bin/java -Xmx50m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -jar '/home/lvuser/grip.jar' '/home/lvuser/project.grip'
Mar 21, 2016 1:39:23 AM java.util.logging.LogManager$RootLogger log
CONFIG: Configuration done.
Mar 21, 2016 1:39:23 AM java.util.logging.LogManager$RootLogger log
CONFIG: GRIP Version: 1.3.0-rc1
platform: /Linux/arm/
Mar 21, 2016 1:39:29 AM edu.wpi.grip.core.operations.networktables.NTManager lambda$new$32
SEVERE: NetworkTables: TCPConnector.cpp:157 select() to  port 1735 error 111 - Connection refused
Mar 21, 2016 1:39:30 AM edu.wpi.grip.core.Main start
INFO: Loading file /home/lvuser/project.grip
Mar 21, 2016 1:39:31 AM edu.wpi.grip.core.GRIPCoreModule onThreadException
SEVERE: Error from Thread[main,5,main]
java.lang.UnsatisfiedLinkError: java.io.IOException: No space left on device
	at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:613)
	at org.bytedeco.javacpp.Loader.load(Loader.java:438)
	at org.bytedeco.javacpp.Loader.load(Loader.java:381)
	at org.bytedeco.javacpp.opencv_core.<clinit>(opencv_core.java:10)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:340)
	at org.bytedeco.javacpp.Loader.load(Loader.java:413)
	at org.bytedeco.javacpp.Loader.load(Loader.java:381)
	at org.bytedeco.javacpp.helper.opencv_core$AbstractArray.<clinit>(opencv_core.java:109)
	at edu.wpi.grip.core.operations.opencv.MatFieldAccessor.<clinit>(MatFieldAccessor.java:12)
	at edu.wpi.grip.core.operations.Operations.addOperations(Operations.java:36)
	at edu.wpi.grip.core.Main.start(Main.java:44)
	at edu.wpi.grip.core.Main.main(Main.java:32)
Caused by: java.io.IOException: No space left on device
	at java.io.FileOutputStream.writeBytes(Native Method)
	at java.io.FileOutputStream.write(FileOutputStream.java:307)
	at org.bytedeco.javacpp.Loader.extractResource(Loader.java:306)
	at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:563)
	... 12 more
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:57 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi