Open billkearson opened 8 years ago
Try using the "Resize Image" operation instead of the low level CV one.
Thanks for the quick response. I changed to teh "Resize Image" operation and now this is the deploy output:
/usr/local/frc/JRE//bin/java -Xmx50m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -jar '/home/lvuser/grip.jar' '/home/lvuser/project.grip'
Loading Dependency Injection Framework
Feb 07, 2016 10:13:28 PM java.util.logging.LogManager$RootLogger log
CONFIG: Configuration done.
Feb 07, 2016 10:13:28 PM java.util.logging.LogManager$RootLogger log
CONFIG: GRIP Version: 1.2.0
platform: /Linux/arm/
Feb 07, 2016 10:13:33 PM edu.wpi.grip.core.Main start
INFO: Loading file /home/lvuser/project.grip
Feb 07, 2016 10:13:35 PM edu.wpi.grip.core.Main start
INFO: SUCCESS! The project is running in headless mode!
Feb 07, 2016 10:13:35 PM edu.wpi.grip.core.PipelineRunner$1 startUp
INFO: Pipeline Starting
OpenCV Error: Assertion failed (ssize.area() > 0) in resize, file /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/imgproc/src/imgwarp.cpp, line 3208
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Step runPerformIfPossible
WARNING: The Resize Image operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/imgproc/src/imgwarp.cpp:3208: error: (-215) ssize.area() > 0 in function resize
at org.bytedeco.javacpp.opencv_imgproc.resize(Native Method)
at edu.wpi.grip.core.operations.composite.ResizeOperation.perform(ResizeOperation.java:88)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Main onExceptionEvent
SEVERE: The Resize Image operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/imgproc/src/imgwarp.cpp:3208: error: (-215) ssize.area() > 0 in function resize
at org.bytedeco.javacpp.opencv_imgproc.resize(Native Method)
at edu.wpi.grip.core.operations.composite.ResizeOperation.perform(ResizeOperation.java:88)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Step runPerformIfPossible
WARNING: The HSV Threshold operation did not perform correctly.
java.lang.IllegalArgumentException: HSV Threshold needs a 3-channel input
at edu.wpi.grip.core.operations.composite.HSVThresholdOperation.perform(HSVThresholdOperation.java:71)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Main onExceptionEvent
SEVERE: The HSV Threshold operation did not perform correctly.
java.lang.IllegalArgumentException: HSV Threshold needs a 3-channel input
at edu.wpi.grip.core.operations.composite.HSVThresholdOperation.perform(HSVThresholdOperation.java:71)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
OpenCV Error: Assertion failed (m.dims >= 2) in Mat, file /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp, line 441
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Step runPerformIfPossible
WARNING: The CV erode operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp:441: error: (-215) m.dims >= 2 in function Mat
at org.bytedeco.javacpp.opencv_imgproc.erode(Native Method)
at edu.wpi.grip.generated.opencv_imgproc.Erode.perform(Erode.java:63)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Main onExceptionEvent
SEVERE: The CV erode operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp:441: error: (-215) m.dims >= 2 in function Mat
at org.bytedeco.javacpp.opencv_imgproc.erode(Native Method)
at edu.wpi.grip.generated.opencv_imgproc.Erode.perform(Erode.java:63)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
OpenCV Error: Assertion failed (m.dims >= 2) in Mat, file /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp, line 441
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Step runPerformIfPossible
WARNING: The CV dilate operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp:441: error: (-215) m.dims >= 2 in function Mat
at org.bytedeco.javacpp.opencv_imgproc.dilate(Native Method)
at edu.wpi.grip.generated.opencv_imgproc.Dilate.perform(Dilate.java:63)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Main onExceptionEvent
SEVERE: The CV dilate operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp:441: error: (-215) m.dims >= 2 in function Mat
at org.bytedeco.javacpp.opencv_imgproc.dilate(Native Method)
at edu.wpi.grip.generated.opencv_imgproc.Dilate.perform(Dilate.java:63)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Main onExceptionEvent
SEVERE: The camera returned a null frame Mat
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.sources.CameraSource$1 run
WARNING: The camera returned a null frame Mat
OpenCV Error: Assertion failed (ssize.area() > 0) in resize, file /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/imgproc/src/imgwarp.cpp, line 3208
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Step runPerformIfPossible
WARNING: The Resize Image operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/imgproc/src/imgwarp.cpp:3208: error: (-215) ssize.area() > 0 in function resize
at org.bytedeco.javacpp.opencv_imgproc.resize(Native Method)
at edu.wpi.grip.core.operations.composite.ResizeOperation.perform(ResizeOperation.java:88)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Main onExceptionEvent
SEVERE: The Resize Image operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/imgproc/src/imgwarp.cpp:3208: error: (-215) ssize.area() > 0 in function resize
at org.bytedeco.javacpp.opencv_imgproc.resize(Native Method)
at edu.wpi.grip.core.operations.composite.ResizeOperation.perform(ResizeOperation.java:88)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Step runPerformIfPossible
WARNING: The HSV Threshold operation did not perform correctly.
java.lang.IllegalArgumentException: HSV Threshold needs a 3-channel input
at edu.wpi.grip.core.operations.composite.HSVThresholdOperation.perform(HSVThresholdOperation.java:71)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Main onExceptionEvent
SEVERE: The HSV Threshold operation did not perform correctly.
java.lang.IllegalArgumentException: HSV Threshold needs a 3-channel input
at edu.wpi.grip.core.operations.composite.HSVThresholdOperation.perform(HSVThresholdOperation.java:71)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
OpenCV Error: Assertion failed (m.dims >= 2) in Mat, file /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp, line 441
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Step runPerformIfPossible
WARNING: The CV erode operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp:441: error: (-215) m.dims >= 2 in function Mat
at org.bytedeco.javacpp.opencv_imgproc.erode(Native Method)
at edu.wpi.grip.generated.opencv_imgproc.Erode.perform(Erode.java:63)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Main onExceptionEvent
SEVERE: The CV erode operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp:441: error: (-215) m.dims >= 2 in function Mat
at org.bytedeco.javacpp.opencv_imgproc.erode(Native Method)
at edu.wpi.grip.generated.opencv_imgproc.Erode.perform(Erode.java:63)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
OpenCV Error: Assertion failed (m.dims >= 2) in Mat, file /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp, line 441
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Step runPerformIfPossible
WARNING: The CV dilate operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp:441: error: (-215) m.dims >= 2 in function Mat
at org.bytedeco.javacpp.opencv_imgproc.dilate(Native Method)
at edu.wpi.grip.generated.opencv_imgproc.Dilate.perform(Dilate.java:63)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.Main onExceptionEvent
SEVERE: The CV dilate operation did not perform correctly.
java.lang.RuntimeException: /home/javacpp-presets/opencv/cppbuild/linux-frc/opencv-3.0.0/modules/core/src/matrix.cpp:441: error: (-215) m.dims >= 2 in function Mat
at org.bytedeco.javacpp.opencv_imgproc.dilate(Native Method)
at edu.wpi.grip.generated.opencv_imgproc.Dilate.perform(Dilate.java:63)
at edu.wpi.grip.core.Operation.perform(Operation.java:61)
at edu.wpi.grip.core.Step.runPerformIfPossible(Step.java:139)
at edu.wpi.grip.core.PipelineRunner.runPipeline(PipelineRunner.java:196)
at edu.wpi.grip.core.PipelineRunner.access$200(PipelineRunner.java:32)
at edu.wpi.grip.core.PipelineRunner$1.runOneIteration(PipelineRunner.java:76)
at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Feb 07, 2016 10:13:36 PM edu.wpi.grip.core.operations.networktables.NTManager lambda$new$16
INFO: NetworkTables: Dispatcher.cpp:392 client: CONNECTED to server 10.0.86.96 port 1735
How are you capturing images? It seems like you're getting an empty frame
From the Axis M1011 Ethernet camera. If the frame was empty or null wouldn't it just be ignored and wait for the next good frame?
I am also getting this problem with the same error for the second case with "Resize Image" (if my memory serves me correctly from my experiments yesterday). I can't speak for CV resize.
We are having the same issue, axis m1013 but we aren't doing any resizing. Seems like GRIP can't interact with an axis IP camera at all.
These are the same issue I think #494
Running Grip 1.2.0 and it works as expected on driver station, no issues.
When we deploy to the RobotRio we get the following output with error: CV resize operation did not perform #correctly.
Here is the output from the Deploy window: