-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
RPi4 jSerialComm UnsatisfiedLinkError (Solarthing stopped working after installing updates) #122
Comments
Hmm. I've gotten that error before. If you restart your pi or restart solarthing does it go away? That's how I fixed the error when it appeared. I'll look into this further if that doesn't fix it. |
I've tried rebooting a few times and restarting solarthing, but to no avail.
|
There are a few possible issues that this relates to: (leaving these here for documentation purposes, you can ignore them)
Linking this relevant issue: #74 Can you run Secondly, have you always run SolarThing using the As a worse case scenario, I can update SolarThing to allow the option to use a different serial library. I think I had that option a while back but I scrapped it when I realized I didn't need it anymore. |
Thanks for looking into this.
Output of
I have always used |
Alright I want you to try a couple of things. I suspect this has something to do with the arm64 architecture. I want to try to modify some of the arguments being passed to the pi@ShedPi:/opt/solarthing/program/custom_rover$ java --add-opens=java.base/java.lang.invoke=ALL-UNNAMED -jar ../solarthing.jar config/base.json That should give you the same error. Now I want you to try to run this: java --add-opens=java.base/java.lang.invoke=ALL-UNNAMED -Dos.arch_full=armv8_64 -jar ../solarthing.jar run --base config/base.json If that gives you the same error I want you to try this: java --add-opens=java.base/java.lang.invoke=ALL-UNNAMED -Dos.arch_full=armv8_32 -jar ../solarthing.jar run --base config/base.json If that still does not work, try this command: java --add-opens=java.base/java.lang.invoke=ALL-UNNAMED -Dos.arch_full=armv7-hf -jar ../solarthing.jar run --base config/base.json And then also try this: java --add-opens=java.base/java.lang.invoke=ALL-UNNAMED -Dos.arch_full=armv7 -jar ../solarthing.jar run --base config/base.json Notice I am just changing this: Ideally one of those commands will work and I can either report a but in jSerialComm or create some sort of workaround in SolarThing. |
All of those give errors, including the following:
I suspect there's a flag missing? |
That's my bad. Before that argument you need to include |
Ooh! Looks like |
As a temporary solution, you could add that argument inside of This has the downside of potentially causing a merge conflict if I change that file and you run |
Brilliant, I'm back up and running. Cheers for your help, I've thrown a pint or two your way :) |
Thanks for the donation 😄. I'm going to reopen this issue as it's something I need to come back to. I believe more RPi4s may be affected by this. Glad your setup is working, though. |
@MarkSmurph I was curious if you had any problems with this since you got it working? |
No, it's worked flawlessly since you sent me the fix. Thanks! |
Hi, I've been using solarthing for about a year and it's been working great - thanks for sharing your awesome work!
I installed some updates on the Raspberry Pi today and solarthing stopped working. Logs below.
Any ideas as to what is wrong?
Thanks,
Mark
The text was updated successfully, but these errors were encountered: