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

catch unable to find hid library #1199

Merged
merged 4 commits into from
Oct 16, 2024
Merged

catch unable to find hid library #1199

merged 4 commits into from
Oct 16, 2024

Conversation

sctanf
Copy link
Member

@sctanf sctanf commented Oct 14, 2024

No description provided.

i like kotlin
Copy link
Member

@ImUrX ImUrX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still crashes

java -jar Downloads/SlimeVR-Server/slimevr.jar run
21:48:30 [INFO] Using log folder: /home/uri/.local/share/dev.slimevr.SlimeVR/logs
21:48:30 [INFO] Running version e5a6322
21:48:30 [INFO] Using config dir: /home/uri/.config/dev.slimevr.SlimeVR/vrconfig.yml
21:48:30 [INFO] Starting the tracker server on port 6969...
21:48:30 [SEVERE] SLF4J: No SLF4J providers were found.
21:48:30 [SEVERE] SLF4J: Defaulting to no-operation (NOP) logger implementation
21:48:30 [SEVERE] SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
21:48:30 [SEVERE] org.hid4java.HidException: Hidapi did not initialise: libudev.so.1: cannot open shared object file: No such file or directory
21:48:30 [SEVERE]       at org.hid4java.HidDeviceManager.<init>(HidDeviceManager.java:87)
21:48:30 [SEVERE]       at org.hid4java.HidServices.<init>(HidServices.java:81)
21:48:30 [SEVERE]       at org.hid4java.HidManager.getHidServices(HidManager.java:72)
21:48:30 [SEVERE]       at dev.slimevr.desktop.tracking.trackers.hid.TrackersHID.<init>(TrackersHID.kt:42)
21:48:30 [SEVERE]       at dev.slimevr.desktop.Main.main(Main.kt:130)
21:48:30 [SEVERE] Caused by: java.lang.UnsatisfiedLinkError: libudev.so.1: cannot open shared object file: No such file or directory
21:48:30 [SEVERE]       at com.sun.jna.Native.open(Native Method)
21:48:30 [SEVERE]       at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:300)
21:48:30 [SEVERE]       at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:481)
21:48:30 [SEVERE]       at com.sun.jna.Library$Handler.<init>(Library.java:197)
21:48:30 [SEVERE]       at com.sun.jna.Native.load(Native.java:618)
21:48:30 [SEVERE]       at com.sun.jna.Native.load(Native.java:592)
21:48:30 [SEVERE]       at org.hid4java.jna.HidrawHidApiLibrary.<clinit>(HidrawHidApiLibrary.java:37)
21:48:30 [SEVERE]       at org.hid4java.jna.HidApi.init(HidApi.java:123)
21:48:30 [SEVERE]       at org.hid4java.HidDeviceManager.<init>(HidDeviceManager.java:84)
21:48:30 [SEVERE]       ... 4 more

@sctanf
Copy link
Member Author

sctanf commented Oct 14, 2024

oh, it is HidException not UnsatisfiedLinkError

@ButterscotchV ButterscotchV mentioned this pull request Oct 15, 2024
@ImUrX ImUrX merged commit 5d65b80 into SlimeVR:main Oct 16, 2024
8 checks passed
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

Successfully merging this pull request may close these issues.

3 participants