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>(GRIPCoreModule.java:77)
… 1 more
Caused by: java.io.IOException: Couldn’t get lock for %h/GRIP.log
at java.util.logging.FileHandler.openFiles(FileHandler.java:422)
at java.util.logging.FileHandler.<init>(FileHandler.java:284)
at edu.wpi.grip.core.GRIPCoreModule.<clinit>(GRIPCoreModule.java:47)
… 1 more

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

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.

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!!

I used PuTTY to run that command on the roboRIO. After re-deploying the pipeline GRIP seemed to work. Thanks.

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.

lsof doesn’t fix anything, it just outputs some stuff about open files that should be useful for debugging. What was the output?

There is no output. It just goes to a new line.

We’re getting new errors on deploy…
We commented out this code and pushed:


table = NetworkTable.getTable("/GRIP/Mar20");
		try {
			new ProcessBuilder("/home/lvuser/grip1x.log").inheritIO().start();
		} catch (Exception e) {
			DriverStation.reportError("



Grip Has Errored!



", 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:


/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