-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Editor Failing to start #10332
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
Comments
Interesting I tried the 1.9 Beta and it will run in portable but the 1.8.12 will not. I saw in the release notes that there was a change in the JAVA maybe that is where the issue lays |
Hi! |
I have encountered the same issue. This seems to be a bit of sticking point for Arduino, as I have found multiple other old issues about very similar issues. |
I can also confirm that the 1.9 beta is working! Starting the board manager in 1.9 i get the following in the console:
Perhaps a clue? |
Seconded, 1.9 works here. |
Yup, I just upgraded to 1.8.12 after running 1.8.5 flawlessly. I just tried 1.9 BETA and everything is working good again. |
Exactly the same here, occured on both my separate machines. Driving me mad.
|
Same, |
Can also reproduce this.
After that, the editor cannot start any longer and fails with
Perhaps something specific with the |
Same problem here. Tried 1.8.12 and earlier versions. Also removed \AppData\Local\Arduino15 folder and installed again. Then I can start the editor but after first board manager entrance I get the java.lang.nullpointexception error. After closing the editor it does not start up anymore. |
Nope, I've cleaned everything and installed an older version that was working (1.8.10), and same error. Maybe is something related with packages index, because is working fine until I enter into cards manager. The I got the already mentioned errors and never again starts until I remove the package_index.json files. 1.9 BETA is working because seems to ignore those errors. Best regards. |
Same problem here with arduino ide 1.8.12: uploaded FSBrowser example code to nodemcu-esp8266 and closed the ide. When i try to start the ide now it shows Initializing Packages... and crashes. |
@APJoshi-Projects same here. |
same here, trying 1.9 now |
Same problem here, worked flawlessly with multiple boards and projects ever since I installed 1.8.12. Tonight it stopped working when I opened the Boards Manager. Re-install doesn't work, and neither the Nightly build. Same problem also now on my other computer! You can delete the Arduino15 folder in Appdata, and it will start once, but when the indexes are generated the next time it won't start anymore. When it starts and you open the Boards Manager it acts really weird and a nullpointer exception comes in the bottom of the window. |
1.9 opens here, board manager works fine, but returns:
|
There have been multiple posts on Reddit about this in the past few hours. Has some random Windows update triggered this behaviour ? fwiw my Mac is fine. |
I have the same issue in Archlinux |
My Arduino IDE 1.8.12 has been running fine for a long time on Windows 10, and this morning it just won't boot. I've not changed anything on my PC so it must be an update that has automatically gone through somewhere... |
A workaround for now is to delete the Arduino folder under (C:\Users\user\AppData\Local). The IDE will boot, but you won't have your additional boards available. |
Just delete the package_index.json and package_index.json.sig files inside said directory. Will preserve current board support, but you will not be able to install or update boards until this is fixed. |
https://forum.arduino.cc/index.php?topic=689307.msg4635898#msg4635898 temporary solution:
But add firewall exit rules from arduino.exe, arduino_debug.exe, arduino-builder.exe and arduino-cli.exe. |
Picked up JAVA_TOOL_OPTIONS: |
Having exactly the same issue: |
HI, it's not just limited to the ESP family. |
I'm seeing this as well. Fresh install of 1.8.12, opening the Boards Manager downloads the default packages then throws a |
Thanks, I had narrowed it down to these two files but they kept cropping back up. Why do the firewall exit rules need to be in place? |
If you do this you still won't have access to any boards aside from teh default ones though yea? (at least that is my experience) |
Hey friends, Issue is resolve. Its start working. |
All good. (Windows 10 User) |
Linux:
Worked great for me, thanks a lot!! |
This is working one..Thanks |
Many Thanks for fixing the problem! |
Nope. I had the problem on Ubu 18.04.3 firstly with version 1.8.7 and then on a new install of 1.8.12 when trying to troubleshoot. Can confirm that deleting cache and package_index.json also allows the IDE to re-start. |
Thanks for fixing - have a coffee on me :-) |
Removing cache and package index works for me (#10332 (comment)). |
This is all great feedback, So what needs to be done is a script need written to auto repair the issue if the package_index is the primary issue. I removed it on the one machine and V1.8.12 is back and running. So on startup we need a try catch statement that if a exception is found that kills the runtime that it catches it and deletes the %APPDATA%\Local\Arduino15\package_Index.json and retrys or closes and the user just trys again. Also to Developers on the Editor: If we can delete the file and Arduino studio will reinstate it why not just delete it on closing as a patch to the bug? What is the purpose of the file? Since the studio is clearly querying the hardware folders. |
Something like this is already implemented in the git master branch (better exception handling, so server-side problems will not prevent further startup), but this was just not released yet. So 1.8.13 (when it is released) should handle all this more gracefully.
That would probably cause additional unnecessary downloads and prevent some boards from working when you have no internet connection. It would probably not solve the original problem either (since the file is then redownloaded on startup, which would yesterday just redownload the corrupt file and then bail out). |
Im use Linux Mint. |
I am on Ubuntu. In order to fixed the issue (java.lang.NullPointerException), I just backed up my settings folder: |
Simply is delete all files and folders in "\AppData\Local\Arduino15" directory. After that start Arduino IDE. |
Same Issue, Was working yesterday, today it would not start. Reinstalled the app 1.8.12 which is what was running prior. Splash comes up then nothing. Run the debug and I get same java error Followed what @Bharath-M-R stated. It is working now. |
del C:\Users\xxxx\AppData\Local\Arduino15\package_index.json |
work for me! |
I updated to 1.8.12 yesterday and it worked fine all afternoon. Last night I got a Windows 10 update, and this morning I'm getting the same stack trace, so perhaps it's related to the OS update. Winver currently reports Version 1909 (OS Build 18363.900) with a copyright year of 2019. I'll try the workarounds listed above. |
Hey I just got this error. For a simple fix just move your current ~/Library/Arduino15 folder and let the app rebuild it.
|
I'm closing this issue, the primary issue (and official solution) is here: #10345. |
Worked for me too (Ubuntu 20.04) |
Sorry for the bump: For those using an arch linux distro, you need to install arduino-avr-core |
Thanks rubenwardy! This worked to get it running on my Pinebook Pro running Manjaro.
|
(EDIT by @cmaglie: For people looking for the "solution" here the comment -> #10332 (comment))
So i am running a Win 10 machine and on 2 of them i get the same problem, including both the desktop and portable version. This issue just arose all was working and then i got the normal double port error where it shows say COM 8 twice and wont do anything so i rebooted the Editor and it wont start.
Here is the debug print out:
Loading configuration...
Initializing packages...
java.lang.NullPointerException
at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:134)
at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483)
at processing.app.Base.(Base.java:273)
at processing.app.Base.main(Base.java:150)
This all happened after trying to connect to some MKR's having trouble i think they are too close and the WIFI is screwing up. Since the boards randomly reboot and LED_BUILTIN pulses slow. So i been messing with positioning the boards and pulling things out of the code to find the issue. And my machines have locked up with the above. So i tried portable doesnt work. Tried uninstalling and reinstalling does not work. So im stuck
The text was updated successfully, but these errors were encountered: