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

Hotbits/Camera Bug on Mac #76

Open
keithorange opened this issue Sep 10, 2023 · 0 comments
Open

Hotbits/Camera Bug on Mac #76

keithorange opened this issue Sep 10, 2023 · 0 comments

Comments

@keithorange
Copy link

Hi there! Wonderful job with this software, I have grokked it and am very interested in both using it, and contributing to it potentially. First time I have seen the concept of Radionics Generator Dowsing applied computationally in a incredibly fast and testable way. However, I am getting a bug on my Macbook Pro with Hotbits generator. (Also great idea with hotbits to get true random numbers).

I have followed the steps outlined at https://radionics.home.blog/aetheonepi/reporting-errors-bugs/ like giving permission in developer tools and making the code adjustment to change camera number. However, still getting the same bugs:

First I launch the program from terminal,

[AetherOnePi-1.3.6] /usr/libexec/java_home -v 1.8 --exec java -jar AetherOnePi-1.3.6.jar

Next I click Show Webcams


[Animation Thread] INFO de.isuret.polos.AetherOnePi.processing2.AetherOneUI - Get list of Webcams ...
[Animation Thread] INFO com.github.sarxos.webcam.Webcam - WebcamDefaultDriver capture driver will be used
[Animation Thread] ERROR de.isuret.polos.AetherOnePi.processing2.AetherOneUI - Error searching webcam(s)
com.github.sarxos.webcam.WebcamException: java.util.concurrent.ExecutionException: com.github.sarxos.webcam.WebcamException: Cannot execute task
	at com.github.sarxos.webcam.WebcamDiscoveryService.getWebcams(WebcamDiscoveryService.java:124)
	at com.github.sarxos.webcam.Webcam.getWebcams(Webcam.java:893)
	at com.github.sarxos.webcam.Webcam.getWebcams(Webcam.java:866)
	at com.github.sarxos.webcam.Webcam.getWebcams(Webcam.java:845)
	at de.isuret.polos.AetherOnePi.processing2.AetherOneUI.initWebcamsList(AetherOneUI.java:108)
	at de.isuret.polos.AetherOnePi.processing2.events.AetherOneEventHandler.controlEvent(AetherOneEventHandler.java:283)
	at de.isuret.polos.AetherOnePi.processing2.AetherOneUI.controlEvent(AetherOneUI.java:406)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at controlP5.ControlBroadcaster.invokeMethod(ControlBroadcaster.java:331)
	at controlP5.ControlBroadcaster.broadcast(ControlBroadcaster.java:288)
	at controlP5.Controller.broadcast(Controller.java:1598)
	at controlP5.Button.setValue(Button.java:142)
	at controlP5.Button.activate(Button.java:126)
	at controlP5.Button.mouseReleased(Button.java:100)
	at controlP5.Controller.setMousePressed(Controller.java:605)
	at controlP5.ControllerGroup.setMousePressed(ControllerGroup.java:553)
	at controlP5.ControlWindow.mouseReleasedEvent(ControlWindow.java:665)
	at controlP5.ControlWindow.mouseEvent(ControlWindow.java:449)
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1408)
	at processing.core.PApplet.handleMethods(PApplet.java:1610)
	at processing.core.PApplet.handleMouseEvent(PApplet.java:2674)
	at processing.core.PApplet.dequeueEvents(PApplet.java:2596)
	at processing.core.PApplet.handleDraw(PApplet.java:2437)
	at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1557)
	at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)
Caused by: java.util.concurrent.ExecutionException: com.github.sarxos.webcam.WebcamException: Cannot execute task
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at com.github.sarxos.webcam.WebcamDiscoveryService.getWebcams(WebcamDiscoveryService.java:116)
	... 29 more
Caused by: com.github.sarxos.webcam.WebcamException: Cannot execute task
	at com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.process(WebcamProcessor.java:72)
	at com.github.sarxos.webcam.WebcamProcessor.process(WebcamProcessor.java:140)
	at com.github.sarxos.webcam.WebcamTask.process(WebcamTask.java:46)
	at com.github.sarxos.webcam.ds.buildin.WebcamDefaultDriver$GetDevicesTask.getDevices(WebcamDefaultDriver.java:79)
	at com.github.sarxos.webcam.ds.buildin.WebcamDefaultDriver.getDevices(WebcamDefaultDriver.java:124)
	at com.github.sarxos.webcam.WebcamDiscoveryService$WebcamsDiscovery.call(WebcamDiscoveryService.java:36)
	at com.github.sarxos.webcam.WebcamDiscoveryService$WebcamsDiscovery.call(WebcamDiscoveryService.java:26)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)
Caused by: java.lang.UnsatisfiedLinkError: com.github.sarxos.webcam.ds.buildin.natives.OpenIMAJGrabber.getVideoDevices()Lorg/bridj/Pointer;
	at com.github.sarxos.webcam.ds.buildin.natives.OpenIMAJGrabber.getVideoDevices(Native Method)
	at com.github.sarxos.webcam.ds.buildin.WebcamDefaultDriver$GetDevicesTask.handle(WebcamDefaultDriver.java:93)
	at com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.run(WebcamProcessor.java:81)
	... 3 more


Set Webcam returns no error message, but doesn't do anything I think.,

Finally, Show Image throws an error,

	... 3 more
Sep 10, 2023 5:06:07 PM controlP5.ControlBroadcaster printMethodError
SEVERE: An error occured while forwarding a Controller event, please check your code at controlEvent
java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at controlP5.ControlBroadcaster.invokeMethod(ControlBroadcaster.java:331)
	at controlP5.ControlBroadcaster.broadcast(ControlBroadcaster.java:288)
	at controlP5.Controller.broadcast(Controller.java:1598)
	at controlP5.Button.setValue(Button.java:142)
	at controlP5.Button.activate(Button.java:126)
	at controlP5.Button.mouseReleased(Button.java:100)
	at controlP5.Controller.setMousePressed(Controller.java:605)
	at controlP5.ControllerGroup.setMousePressed(ControllerGroup.java:553)
	at controlP5.ControlWindow.mouseReleasedEvent(ControlWindow.java:665)
	at controlP5.ControlWindow.mouseEvent(ControlWindow.java:449)
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1408)
	at processing.core.PApplet.handleMethods(PApplet.java:1610)
	at processing.core.PApplet.handleMouseEvent(PApplet.java:2674)
	at processing.core.PApplet.dequeueEvents(PApplet.java:2596)
	at processing.core.PApplet.handleDraw(PApplet.java:2437)
	at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1557)
	at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)
Caused by: java.lang.NullPointerException
	at de.isuret.polos.AetherOnePi.processing2.AetherOneUI.showWebCamImage(AetherOneUI.java:596)
	at de.isuret.polos.AetherOnePi.processing2.events.AetherOneEventHandler.controlEvent(AetherOneEventHandler.java:312)
	at de.isuret.polos.AetherOnePi.processing2.AetherOneUI.controlEvent(AetherOneUI.java:406)
	... 23 more

Is this to do with Camera Permissions? Or something to do with me missing a library or dependancy? Finally, if you don't have a solution for this, do you know if VirtualBox VMMachine Windows 10 will be a valid solution?

Thank you

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