Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   GRIP Deploy Error (http://www.chiefdelphi.com/forums/showthread.php?t=144529)

AMendenhall 02-23-2016 02:47 PM

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

Dcoyle10 02-23-2016 03:43 PM

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

ThomasClark 02-23-2016 06:29 PM

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.

wlogeais 02-26-2016 10:26 AM

Re: GRIP Deploy Error
 
Quote:

Originally Posted by Dcoyle10 (Post 1545246)
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!!

AMendenhall 03-08-2016 12:50 AM

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

AMendenhall 03-19-2016 10:59 PM

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.

ThomasClark 03-19-2016 11:04 PM

Re: GRIP Deploy Error
 
Quote:

Originally Posted by AMendenhall (Post 1559830)
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?

AMendenhall 03-20-2016 02:41 PM

Re: GRIP Deploy Error
 
There is no output. It just goes to a new line.

AMendenhall 03-20-2016 09:45 PM

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



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

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