Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webcam-capture with v4l4j crash on RaspPi (64b) #919

Open
relaxmax01 opened this issue Dec 14, 2023 · 0 comments
Open

webcam-capture with v4l4j crash on RaspPi (64b) #919

relaxmax01 opened this issue Dec 14, 2023 · 0 comments

Comments

@relaxmax01
Copy link

Hello,
I'm building a simple app using JavaFX19 for both Windows and Linux (running on Raspi ARM64). no problem with the default windows platform using webcam-capture default driver (OpenIMAJGrabber); Porting to Raspberry pi4 Bulleyes I'm running into crash during Webcam init.
Per the wiki (https://github.com/sarxos/webcam-capture/wiki/How-To-Configure-Raspberry-Pi) I'm configuring the driver to V4L4J and getting the following exception: "java.io.IOException: java.lang.NoSuchFieldException: usr_paths" (full dump below).

jdk-19.0.1+10
javafx-19
Jars used:

  • v4l4j-0.9.1-r507.jar
  • webcam-capture-0.3.12.jar
  • webcam-capture-driver-v4l4j-0.3.12.jar

full exception dump:
java.io.IOException: java.lang.NoSuchFieldException: usr_paths
at v4l4j@0.9.1-r507/com.github.sarxos.v4l4j.NativeUtils.loadLibraryFromJar(NativeUtils.java:62)
at v4l4j@0.9.1-r507/com.github.sarxos.v4l4j.V4L4J.init(V4L4J.java:50)
at webcam.capture.driver.v4l4j@0.3.12/com.github.sarxos.webcam.ds.v4l4j.V4l4jDriver.(V4l4jDriver.java:33)
at WebcamJavaFxTest/com.relaxmax.webcamcapturetest.WebCamMain.start(WebCamMain.java:88)
at javafx.graphics@19/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:847)
at javafx.graphics@19/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:484)
at javafx.graphics@19/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at javafx.graphics@19/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
at javafx.graphics@19/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics@19/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at javafx.graphics@19/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:316)
at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: java.lang.NoSuchFieldException: usr_paths
at java.base/java.lang.Class.getDeclaredField(Class.java:2663)
at v4l4j@0.9.1-r507/com.github.sarxos.v4l4j.NativeUtils.addLibraryPath(NativeUtils.java:109)
at v4l4j@0.9.1-r507/com.github.sarxos.v4l4j.NativeUtils.loadLibraryFromJar(NativeUtils.java:60)
... 12 more

thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant