-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Arduino 1.8.13 crashes on startup on macOS Big Sur 11.0.1 #10964
Comments
Additional Information: Tried another newly created user account (same result), deleting preferences (same result), redownloading (same result), downloading beta of Arduino IDE 1.19 (same result). |
I have this similar problem , any idea ? |
I could fix the problem by updating Java on Big Sur. Head to the System Preferences and click on Java -> Update. It would be nice if the Arduino IDE would fail in a more explanatory fashion :-) |
The IDE comes with a bundled Java 8 runtime environment, so updating Java shouldn't be necessary 🤔 |
Very strange indeed. I did not spent much time debugging this issue, but it was completely reproducible: Arduino IDE was crashing with the call stack I posted above and as soon as I updated the java version through macOS system preferences, it worked. Guessing, there seems to be a dependency to the java version installed on macOS despite Arduino having and embedded runtime. |
Confirmed here as well. When I hit 'Reopen' on the crash notice rather than 'Ignore', I get it to start on the second try. Seems like (fragile) work around but wth?! |
I also have Big Sur 11.0.1. Arduino starts with the smash screen and then just stops without giving any error message. Running the application from the terminal, I also get a Java runtime error:
output of the error report file:
|
Hello, I use the Arduino IDE since several month. Now I made the update on my 2017 MacBook to Big Sur. After all was ready I had the problem to upload any code to my esp8266. I find the solution here https://forum.arduino.cc/index.php?topic=702144.0 and it works now. But when I tried to use my esp32 I got again an error. But all I did to solve the problem does not work. Then I took a second MacBook (2017) with already installed Big Sur. I installed the Arduino IDE for the first time on this MacBook. After the download I copied the Folder in my applications folder and started the IDE. After a moment I saw the information, that there is a problem, should it start again? I tried it, then I got the same error and the possibility to send an error report to apple (it looks like the other here). After I tried it 2-3 times the IDE was running. Then I tried to made the patches about the problems with the esp8266. But I was wondering, because in the folder "Arduini15" in the Library I didn't found the folder Java. I tried to install it again, but I had the same problem. So it seams here is the problem? |
Oh sorry, there is a mistake in relation to the Java folder. This folder does not exist in the Library, only in the program folder under applications is a Java folder. And in this folder I have to put the portable folder. Than I could see it in the Library under Arduino15. |
So I was running into the issues with Java. To fix this I removed all my installed Java versions. Every version works differently and it's all garbage. The one that is bundled with the IDE works. |
It appears to me that Arduino does a search for JRE's in the /Library/Java/JavaVirtualMachines folder. After much consternation and messing with java_home, I determined this by manually launching Arduino from the terminal and looking at the output. I had a leftover java 1.8 folder in in the /Library/Java/JavaVirtualMachines folder. I deleted just that folder and presto, Arduino worked. I have remaining /Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk and /Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk folders that do not seem to bother Arduino, it was only the older 1.8.x version. I deleted it. So, I'm now not sure if it was jre-1.8... or jdk-1.8... But, getting rid of it solved my problem with Arduino launching. |
@claudeheintz I also had a leftover in the /Library/Java/JavaVirtualMachines folder (jdk1.8.0_181.jdk) When I deleted that directory, Arduino just started as normal. |
Confirming @claudeheintz. Even though the IDE bundles Java, I removed an old 1.8.0_101 version from 2016 in that area (since the new Java version on macOS appears to be in the |
@claudeheintz Deleting the JDK's in /Library/Java/JavaVirtualMachines also fixed it for me with Arduino 1.8.13 on Big Sur. |
There are a couple other issues that seem to be about the same thing, which I'll mention here for the sake of keeping everything linked together:
And maybe even this one: #11150 |
Deleting lingering old java versions did the trick for me as well. |
I stuck with this problem for months and kept using 1.8.12. Today I finally see this thread and tried the method mentioned by @claudeheintz and it works like a charm. By deleting all Oracle 1.8.x JVMs, Arduino IDE 1.8.3 now starts normally. In case you DO need 1.8.x JVM, you can try OpenJDK 1.8 from AdopeOpenJDK. It won't crash Arduino IDE 1.8.3. |
The fix from @claudeheintz also worked for me. Removing |
This fix does not work for me on Arduino 1.8.15, MacOS version 11.5 (20G71). I've uninstalled all versions of Java on my Mac and yet the Arduino editor still crashes on launch. I see the splash screen, and it successfully opens previously-opened windows, and then crashes. I've seen a lot of folks on this (and other) threads saying that removing java fixes the problem for them. I'll point out that Arduino is a hobby platform that is used by lots of kids and these kinds of workarounds are probably too hard for them to figure out. This issue really ought to be fixed and pushed in a broad release so it's not creating frustration for users, especially new users. (Plus, the workaround doesn't work for me, so I'd like to see the issue just fixed.) But, here's a strange workaround I've just found that does work on my system. Instead of launching the application package directly (by clicking the icon in the Applications directory), I can "show package contents", navigate to the MacOS folder, and click on the Arduino item there, which launches a terminal window and then launches the editor. This seems to work without crashing. Again, I'd never expect a student to be able to figure this out. |
This is a macOS issue and not really Arduino, but many users will encounter this so I would suggest detecting it in the Arduino installer to help this. Typing this in Terminal:
... will show you the currently installed version. In my case, this returns:
To change your Java install to use OpenJDK and solve the issue, just follow these instructions: https://mkyong.com/java/how-to-install-java-on-mac-osx/ After installing and executing the commands that Homebrew suggests after the install, you should have a working install and the Java version command will return this:
|
Hi, just installed the final version of macOS 11.0.1 Big Sur (20B29) and the Arduino IDE 1.8.13 crashes during launch. The startup window becomes visible and then it crashes with the following crashlog:
The text was updated successfully, but these errors were encountered: