Skip to content

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

Closed
rjs5327 opened this issue Jun 9, 2020 · 101 comments
Closed

Editor Failing to start #10332

rjs5327 opened this issue Jun 9, 2020 · 101 comments
Labels
Component: Board/Lib Manager Boards Manager or Library Manager Component: IDE The Arduino IDE Type: Bug Type: Duplicate Another item already exists for this topic

Comments

@rjs5327
Copy link

rjs5327 commented Jun 9, 2020

(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

@rjs5327
Copy link
Author

rjs5327 commented Jun 9, 2020

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

@niclas0219
Copy link

Hi!
I get the same thing. When I delete the package_index.json file it starts again.
But when using the board manager i get a null pointer exception and then it stops working again. I'm thinking something is broken in the standard board index that the IDE downloads from somewhere.

@willeccles
Copy link

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.

@niclas0219
Copy link

niclas0219 commented Jun 9, 2020

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:

Index error: could not find referenced tool name=openocd version=0.10.0-arduino12 packager=arduino
Index error: could not find referenced tool name=dfu-util version=0.9.0-arduino2 packager=arduino
Index error: could not find referenced tool name=openocd version=0.10.0-arduino12 packager=arduino
Index error: could not find referenced tool name=dfu-util version=0.9.0-arduino2 packager=arduino
Index error: could not find referenced tool name=openocd version=0.10.0-arduino12 packager=arduino
Index error: could not find referenced tool name=dfu-util version=0.9.0-arduino2 packager=arduino

Perhaps a clue?

@willeccles
Copy link

Seconded, 1.9 works here.

@CptAdventure
Copy link

CptAdventure commented Jun 9, 2020

Yup, I just upgraded to 1.8.12 after running 1.8.5 flawlessly.
When I try to start the GUI, I get the splash screen with "Initializing Packages..." and then the splash screen goes away and no editor. Nana. Dead in the water.
I going to try 1.9 and see if any changes.

I just tried 1.9 BETA and everything is working good again.

@877dev
Copy link

877dev commented Jun 9, 2020

Exactly the same here, occured on both my separate machines. Driving me mad.
Happens when going to board manager:

java.lang.NullPointerException java.lang.RuntimeException: java.lang.NullPointerException at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:150) at java.lang.Thread.run(Thread.java:748) Caused by: 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$9.onIndexesUpdated(Base.java:1400) at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:148) ... 1 more 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.openBoardsManager(Base.java:1418) at processing.app.Base$10.actionPerformed(Base.java:1441) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886) at java.awt.Component.processMouseEvent(Component.java:6539) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6304) at java.awt.Container.processEvent(Container.java:2239) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2297) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) at java.awt.Container.dispatchEventImpl(Container.java:2283) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

@AngryArduino
Copy link

Same,
java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:150)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:124)
at processing.app.BaseNoGui.initPackages(BaseNoGui.java:484)
at processing.app.Base$9.onIndexesUpdated(Base.java:1376)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:148)
... 1 more
java.lang.NullPointerException
at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:124)
at processing.app.BaseNoGui.initPackages(BaseNoGui.java:484)
at processing.app.Base.openBoardsManager(Base.java:1394)
at processing.app.Base$10.actionPerformed(Base.java:1417)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886)
at java.awt.Component.processMouseEvent(Component.java:6539)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

@pfeigl
Copy link

pfeigl commented Jun 9, 2020

Can also reproduce this.

  • Fresh install of 1.8.12
  • Add https://arduino.esp8266.com/stable/package_esp8266com_index.json in board manager
  • Go to board manager and get NullPointerException

After that, the editor cannot start any longer and fails with

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.<init>(Base.java:273)
        at processing.app.Base.main(Base.java:150)

Perhaps something specific with the esp8266 json?

@Erwin-66
Copy link

Erwin-66 commented Jun 9, 2020

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.

@Danixu
Copy link

Danixu commented Jun 9, 2020

Can also reproduce this.

  • Fresh install of 1.8.12
  • Add https://arduino.esp8266.com/stable/package_esp8266com_index.json in board manager
  • Go to board manager and get NullPointerException

After that, the editor cannot start any longer and fails with

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.<init>(Base.java:273)
        at processing.app.Base.main(Base.java:150)

Perhaps something specific with the esp8266 json?

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.

@APJoshi-Projects
Copy link

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.

@zeucxb
Copy link

zeucxb commented Jun 9, 2020

@APJoshi-Projects same here.

@luk3skyw4lker
Copy link

same here, trying 1.9 now

@Petorrr
Copy link

Petorrr commented Jun 9, 2020

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.

@luk3skyw4lker
Copy link

luk3skyw4lker commented Jun 9, 2020

1.9 opens here, board manager works fine, but returns:

Index error: could not find referenced tool name=openocd version=0.10.0-arduino12 packager=arduino Index error: could not find referenced tool name=dfu-util version=0.9.0-arduino2 packager=arduino Index error: could not find referenced tool name=openocd version=0.10.0-arduino12 packager=arduino Index error: could not find referenced tool name=dfu-util version=0.9.0-arduino2 packager=arduino Index error: could not find referenced tool name=openocd version=0.10.0-arduino12 packager=arduino Index error: could not find referenced tool name=dfu-util version=0.9.0-arduino2 packager=arduino Index error: could not find referenced tool name=openocd version=0.10.0-arduino12 packager=arduino Index error: could not find referenced tool name=dfu-util version=0.9.0-arduino2 packager=arduino Index error: could not find referenced tool name=openocd version=0.10.0-arduino12 packager=arduino Index error: could not find referenced tool name=dfu-util version=0.9.0-arduino2 packager=arduino

@obdevel
Copy link

obdevel commented Jun 9, 2020

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.

@osvaldo13576
Copy link

I have the same issue in Archlinux

@l1ttled3vil
Copy link

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.

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...

@l1ttled3vil
Copy link

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.

@avillacis
Copy link

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.

@jPerotto
Copy link

https://forum.arduino.cc/index.php?topic=689307.msg4635898#msg4635898

temporary solution:

  1. Disable machine's networking.
  2. Copy the .../arduino15 directory to,say, arduino15.backup
  3. Remove the files package_index.json and package_index.json.sig from the ..../arduino15
  4. Start the IDE. It should start without network access. Go to Preferences, disable "check for updates at start". Stop the IDE.
  5. Start networking
  6. Start IDE. It starts.
  7. Avoid any touching of the network resources! The board_manager or library_manager buggers the package_index again and again.

But add firewall exit rules from arduino.exe, arduino_debug.exe, arduino-builder.exe and arduino-cli.exe.

@jonasbradstreet
Copy link

jonasbradstreet commented Jun 10, 2020

Picked up JAVA_TOOL_OPTIONS:
Set log4j store directory /home/programming/.arduino15
Gtk-Message: 18:58:14.166: Failed to load module "canberra-gtk-module"
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)

@mjs513
Copy link

mjs513 commented Jun 10, 2020

Having exactly the same issue:
https://forum.arduino.cc/index.php?topic=671157.new#new since this morning

@ubdussamad
Copy link

Can also reproduce this.

* Fresh install of 1.8.12

* Add `https://arduino.esp8266.com/stable/package_esp8266com_index.json` in board manager

* Go to board manager and get `NullPointerException`

After that, the editor cannot start any longer and fails with

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.<init>(Base.java:273)
        at processing.app.Base.main(Base.java:150)

Perhaps something specific with the esp8266 json?

HI, it's not just limited to the ESP family.

@chrissbarr
Copy link

I'm seeing this as well. Fresh install of 1.8.12, opening the Boards Manager downloads the default packages then throws a NullPointerException. This is without any extra packages added, just the stock Arduino ones.

@nateimig18
Copy link

https://forum.arduino.cc/index.php?topic=689307.msg4635898#msg4635898

temporary solution:

  1. Disable machine's networking.
  2. Copy the .../arduino15 directory to,say, arduino15.backup
  3. Remove the files package_index.json and package_index.json.sig from the ..../arduino15
  4. Start the IDE. It should start without network access. Go to Preferences, disable "check for updates at start". Stop the IDE.
  5. Start networking
  6. Start IDE. It starts.
  7. Avoid any touching of the network resources! The board_manager or library_manager buggers the package_index again and again.

But add firewall exit rules from arduino.exe, arduino_debug.exe, arduino-builder.exe and arduino-cli.exe.

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?

@JCT250
Copy link

JCT250 commented Jun 10, 2020

https://forum.arduino.cc/index.php?topic=689307.msg4635898#msg4635898

temporary solution:

  1. Disable machine's networking.
  2. Copy the .../arduino15 directory to,say, arduino15.backup
  3. Remove the files package_index.json and package_index.json.sig from the ..../arduino15
  4. Start the IDE. It should start without network access. Go to Preferences, disable "check for updates at start". Stop the IDE.
  5. Start networking
  6. Start IDE. It starts.
  7. Avoid any touching of the network resources! The board_manager or library_manager buggers the package_index again and again.

But add firewall exit rules from arduino.exe, arduino_debug.exe, arduino-builder.exe and arduino-cli.exe.

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)

@darshit115
Copy link

Hey friends, Issue is resolve. Its start working.

@Wally-B
Copy link

Wally-B commented Jun 10, 2020

All good. (Windows 10 User)
Happened in the middle of Debugging HW/SW which made it double whammy confusing.
Sanity back!!
Thanks so much !!

@rbaumann
Copy link

Linux:

remove file /home/YourUsername/.arduino15/package_index.json
remove folder /home/YourUsername/.arduino15/cache

Worked great for me, thanks a lot!!

@Bharath-M-R
Copy link

We had a problem on our package_index.json that caused the error and prevented the IDE to start.
Now the package_index has been fixed, but to recover a working installation you must delete once again the package_index.json with the cache folder and restart the IDE as usual.

Windows:

  • remove file C:\Users\YourUsername\AppData\Local\Arduino15\package_index.json
  • remove folder C:\Users\YourUsername\AppData\Local\Arduino15\cache

Mac:

  • remove file /Users/YourUsername/Library/Arduino15/package_index.json
  • remove folder /Users/YourUsername/Library/Arduino15/cache

Linux:

  • remove file /home/YourUsername/.arduino15/package_index.json
  • remove folder /home/YourUsername/.arduino15/cache

Please note that the problem that prevents the IDE to start has already been fixed and it's ready for the next release, that's the reason why the Nightly/Beta Builds are not affected, and also the reason why we did not detect this problem earlier, sorry about that!

This is working one..Thanks

@efrankx
Copy link

efrankx commented Jun 10, 2020

Many Thanks for fixing the problem!

@carryonrewardless
Copy link

carryonrewardless commented Jun 10, 2020

"Doesn’t look like anyone on *nix or Mac operating systems are having any issues with 1.8.12? Only windows?"

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.

@Gandboss
Copy link

Thanks for fixing - have a coffee on me :-)
G

@adamalfath
Copy link

Removing cache and package index works for me (#10332 (comment)).
Last time I open IDE in poor network and getting error to retrieve board package (forgot the exact message), currently I'm adding esp32, esp8266, tennsy and stm32 board. Maybe it has something to do with that? failed to rollback?

@rjs5327
Copy link
Author

rjs5327 commented Jun 10, 2020

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.

@matthijskooijman
Copy link
Collaborator

So on startup we need a try catch statement that if a exception is found

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.

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?

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).

@fere
Copy link

fere commented Jun 10, 2020

Im use Linux Mint.
Arduino IDE 1.8.12.
Erron on run IDE:
**Picked up JAVA_TOOL_OPTIONS: Set log4j store directory /home/username/.arduino15 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.<init>(Base.java:273) at processing.app.Base.main(Base.java:150)**
On run or SU user IDE normal starting.
Im delete 2 files package_index.json and package_index.json.sig in /home/username/.arduino15 folder.
Now Arduino IDE run is nornal.

@alex-gab
Copy link

alex-gab commented Jun 10, 2020

I am on Ubuntu. In order to fixed the issue (java.lang.NullPointerException), I just backed up my settings folder:
mv ~/.arduino15/ ~/arduino15_bak
Arduino IDE launched successfully after that. I have lost my settings (board, processor, port), but it was easy to re-apply them in my case.

@quangchungnguyen
Copy link

Simply is delete all files and folders in "\AppData\Local\Arduino15" directory. After that start Arduino IDE.

@3mc2
Copy link

3mc2 commented Jun 11, 2020

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.

@leoncoolmoon
Copy link

del C:\Users\xxxx\AppData\Local\Arduino15\package_index.json

@avnamer
Copy link

avnamer commented Jun 11, 2020

We had a problem on our package_index.json that caused the error and prevented the IDE to start.
Now the package_index has been fixed, but to recover a working installation you must delete once again the package_index.json with the cache folder and restart the IDE as usual.
Windows:

  • remove file C:\Users\YourUsername\AppData\Local\Arduino15\package_index.json
  • remove folder C:\Users\YourUsername\AppData\Local\Arduino15\cache

Mac:

  • remove file /Users/YourUsername/Library/Arduino15/package_index.json
  • remove folder /Users/YourUsername/Library/Arduino15/cache

Linux:

  • remove file /home/YourUsername/.arduino15/package_index.json
  • remove folder /home/YourUsername/.arduino15/cache

Please note that the problem that prevents the IDE to start has already been fixed and it's ready for the next release, that's the reason why the Nightly/Beta Builds are not affected, and also the reason why we did not detect this problem earlier, sorry about that!

This is working one..Thanks

work for me!
Thanks a lot

@aidtopia
Copy link

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.

@JPaulMora
Copy link

JPaulMora commented Jun 11, 2020

Hey I just got this error. For a simple fix just move your current ~/Library/Arduino15 folder and let the app rebuild it.

# One liner
mv ~/Library/Arduino15  ~/Library/Arduino15-bak && open /Applications/Arduino.app

@matthijskooijman
Copy link
Collaborator

I'm closing this issue, the primary issue (and official solution) is here: #10345.

@jmgandarias
Copy link

Linux:

remove file /home/YourUsername/.arduino15/package_index.json
remove folder /home/YourUsername/.arduino15/cache

Worked great for me, thanks a lot!!

Worked for me too (Ubuntu 20.04)

@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Jun 12, 2020
@rubenwardy
Copy link

rubenwardy commented Aug 11, 2020

Sorry for the bump: For those using an arch linux distro, you need to install arduino-avr-core

@sciolus
Copy link

sciolus commented Sep 19, 2020

Thanks rubenwardy! This worked to get it running on my Pinebook Pro running Manjaro.

Sorry for the bump: For those using an arch linux distro, you need to install arduino-avr-core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Board/Lib Manager Boards Manager or Library Manager Component: IDE The Arduino IDE Type: Bug Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests