winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.88k stars 763 forks source link

Joistick is not working #1412

Closed avarakin closed 1 year ago

avarakin commented 4 years ago

Problem description

Most likely I am missing something basic, but I can not get Joystick working. I enabled the plugin in the plugins screen but when I come to the settings screen, which has the configuration for Joystick, I am not seeing any settings and checkbox for enabling Joystick. I was able to get it working on my PC few weeks ago but for some reason, it does not work on my Pi3.

Specifications

Version

Latest nightly for Pi

Operating system

Ubuntu on RaspberryPI 3

Platform

GRBL 1.1f

breiler commented 4 years ago

A screenshot of the settings screen would help.

Also if you Could post your log file: https://github.com/winder/Universal-G-Code-Sender/wiki/Configuration#log-files

avarakin commented 4 years ago

I think I found the relevant error in the log:

INFO [com.willwinder.ugs.nbp.core.lifecycle.startup]: Loading JogService... SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor com.willwinder.ugs.nbp.joystick.Startup java.lang.UnsatisfiedLinkError: /tmp/jnigen/923140537/libjamepadArm.so: libbcm_host.so: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1088) at com.badlogic.gdx.jnigen.JniGenSharedLibraryLoader.loadLibrary(JniGenSharedLibraryLoader.java:105) at com.badlogic.gdx.jnigen.JniGenSharedLibraryLoader.load(JniGenSharedLibraryLoader.java:191) at com.studiohartman.jamepad.ControllerManager.(ControllerManager.java:65) at com.studiohartman.jamepad.ControllerManager.(ControllerManager.java:42) at com.willwinder.ugs.nbp.joystick.service.JoystickServiceImpl.(JoystickServiceImpl.java:93) at com.willwinder.ugs.nbp.joystick.Startup.run(Startup.java:50) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

breiler commented 4 years ago

Aha, it looks like it is depending on the /opt/vc directory. And this directory needs to be removed/moved for the visualizer to work...

khturnings commented 4 years ago

At the end of issue https://github.com/winder/Universal-G-Code-Sender/issues/1247 it is noted that you can use a script to run UGS that moves the /opt/vc during startup and then in the last post it mentions that it can be reinstated after a pause.

Its a bit of a workaround but might help.

avarakin commented 4 years ago

My original issue was caused due to ubuntu missing VC. I migrated to Rasbpian and now I have catch 22 situation - rename vc, joystick does not work, restore vc, visualizer does not work.

This post on jogl forum suggests that version of jogl library is outdated and the issue with visualizer can be fixed by using the latest builds of jogl: http://forum.jogamp.org/Available-GLVersions-not-set-for-EGLGraphicsDevic-td4040111.html

breiler commented 4 years ago

We are actually using the latest build 2.3.2 and the fix will be available in 2.4.0. We will just have to wait. 😞

breiler commented 1 year ago

We are now using 2.4.0, so you might want to try this with the latest version of UGS

breiler commented 1 year ago

Closing as we can't reproduce the error and we didn't get a response from the user.