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

NullPointerException when selecting port after running PDE in Linux #124

Open
kierannolan opened this issue Dec 13, 2022 · 0 comments
Open

Comments

@kierannolan
Copy link

Hello,

When I run the p5.serialserver PDE and select the Arduino port from the drop down menu the app crashes. Please see the screenshot and error log below.

I'm running Processing 4 on Manjaro

Any suggestions on a bug fix would be greatly appreciated, thank you

screen

SEVERE: An error occured while forwarding a Controller event, please check your code at selectPort
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at controlP5.ControlBroadcaster.invokeMethod(Unknown Source)
at controlP5.ControlBroadcaster.callTarget(Unknown Source)
at controlP5.ControlBroadcaster.broadcast(Unknown Source)
at controlP5.Controller.broadcast(Unknown Source)
at controlP5.Controller.setValue(Unknown Source)
at controlP5.ScrollableList.updateIndex(Unknown Source)
at controlP5.ScrollableList.onRelease(Unknown Source)
at controlP5.Controller.setMousePressed(Unknown Source)
at controlP5.ControllerGroup.setMousePressed(Unknown Source)
at controlP5.ControlWindow.mouseReleasedEvent(Unknown Source)
at controlP5.ControlWindow.mouseEvent(Unknown Source)
at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1309)
at processing.core.PApplet.handleMethods(PApplet.java:1456)
at processing.core.PApplet.handleMouseEvent(PApplet.java:2368)
at processing.core.PApplet.dequeueEvents(PApplet.java:2261)
at processing.core.PApplet.handleDraw(PApplet.java:2104)
at processing.awt.PSurfaceAWT$9.callDraw(PSurfaceAWT.java:1386)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:356)
Caused by: java.lang.RuntimeException: Error opening serial port /dev/ttyACM0: Permission denied
at processing.serial.Serial.(Unknown Source)
at processing.serial.Serial.(Unknown Source)
at p5_serialserver.selectPort(p5_serialserver.java:245)
... 25 more
NullPointerException

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