question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Apple Silicon (macOS M1)

See original GitHub issue

Describe the bug I’m failing to run studio 0.3.0 on my M1 Mac. There seems to be an issue with missing libusb4java binaries Caused by: org.usb4java.LoaderException: Native library not found in classpath: /org/usb4java/darwin-aarch64/libusb4java.dylib It seems that libusb4java recently added support for aarch64 but the darwin-aarch64 jar is missing in the lib folder of studio.

Thank you.

To Reproduce Steps to reproduce the behavior:

  1. Install openjdk using homebrew (install aarch64 version) : brew install openjdk
  2. Run : studio-macos.sh

Logs

java.lang.ExceptionInInitializerError
	at studio.driver.LibUsbDetectionHelper.initializeLibUsb(LibUsbDetectionHelper.java:50)
	at studio.driver.raw.RawStoryTellerAsyncDriver.<init>(RawStoryTellerAsyncDriver.java:45)
	at studio.webui.service.StoryTellerService.<init>(StoryTellerService.java:54)
	at studio.webui.MainVerticle.start(MainVerticle.java:60)
	at io.vertx.core.AbstractVerticle.start(AbstractVerticle.java:106)
	at io.vertx.core.Verticle.start(Verticle.java:66)
	at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$9(DeploymentManager.java:556)
	at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369)
	at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.usb4java.LoaderException: Native library not found in classpath: /org/usb4java/darwin-aarch64/libusb4java.dylib
	at org.usb4java.Loader.extractLibrary(Loader.java:246)
	at org.usb4java.Loader.load(Loader.java:323)
	at org.usb4java.LibUsb.<clinit>(LibUsb.java:690)
	... 16 more

Desktop and environment

  • OS: macOS Big Sur 11
  • Browser safari
  • Java version: OpenJDK 64-Bit Server VM Homebrew (build 17+0, mixed mode)
  • Maven version: N/A
  • STUdio application version 0.3.0

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:15

github_iconTop GitHub Comments

1reaction
olupcommented, Jul 18, 2022

Hey, just FIY I created a golang app that can install STUdio packs on your lunii: https://github.com/olup/lunii-admin

The macos version is built for intel but works fine on M1 (I am developing on m1, and can provide m1 builds if really needed)

0reactions
tomtomtlscommented, Oct 23, 2022

Did anyone face this error in the past and/or could help me to get Studio running on my Mac M1 please?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Revive or restore a Mac with Apple silicon using Apple ...
Revive or restore a Mac with Apple silicon using Apple Configurator · Step 1: Connect the Mac computers · Step 2: Prepare the...
Read more >
Porting Your macOS Apps to Apple Silicon
Overview. Port your existing macOS app to Apple silicon by creating a universal binary and modifying your code to handle architectural differences.
Read more >
Mac computers with Apple silicon
Mac computers with Apple silicon · MacBook Air (M2, 2022) · MacBook Pro (13-inch, M2, 2022) · Mac Studio (2022) · MacBook Pro...
Read more >
Use macOS Recovery on a Mac with Apple silicon
You can use the apps in macOS Recovery on a Mac with Apple silicon to repair your internal storage device, reinstall macOS, restore...
Read more >
Apple Silicon | Apple Developer Documentation
Create a version of your macOS app that runs on both Apple silicon and Intel-based Mac computers. ... Create macOS apps and other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found