Arduino 1.8.12 Refuses to Open

Status
Not open for further replies.

nateimig

Member
So i've been struggling to figure out why arduino (v1.8.12) installer and zipped versions is refusing to open up normally after the loading screen. The only thing that works is if i delete the Appdata/Local/Arduino15 it will open up on that instance, but closing and reopening fails. I've tried rebooting/reinstalling/turning off RT Windows Security, everything besides converting fron windows to linux OS, but the only thing that seems to work is installing the the hourly build (Last Update 20/06/03 9:13:17 GMT) which will allow me to open-close consecutively without deleting the AppData/Local/Arduino15 directory.

[UPDATE as I type this]
Ok i just figured out if I delete these two files in AppData/Local/Arduino15/ it works flawlessly for consecutive reopening ("package_index.json" and "package_index.json.sig") this also works with the latest Teensyduino. Good deal.

Im not sure what could have happened i went away from my computer for about 2 hours after closing arduino to find this crap (w/ no recent windows/arduino updates).
 
Ok so it appears these files get added when the USB from at least the Teensy 4.0 get plugged in and is recognized by the OS.
 
I am having exactly the same problem. Warning though every time I would close the IDE and then try to open it would not open again and I would have to delete the folder. At least you isolated it to 2 files.

It appears that this an issue across the board with the IDE not just with Teensy's, see these:\
https://github.com/arduino/Arduino/issues/10335#issuecomment-641675074
https://forum.arduino.cc/index.php?topic=671157.new#new

EDIT: check the temporary solution: https://github.com/arduino/Arduino/issues/10332#issuecomment-641677557
 
I am having exactly the same problem. Warning though every time I would close the IDE and then try to open it would not open again and I would have to delete the folder. At least you isolated it to 2 files.

It appears that this an issue across the board with the IDE not just with Teensy's, see these:\
https://github.com/arduino/Arduino/issues/10335#issuecomment-641675074
https://forum.arduino.cc/index.php?topic=671157.new#new

EDIT: check the temporary solution: https://github.com/arduino/Arduino/issues/10332#issuecomment-641677557

Thanks for the links! That solution from jPerotto in the github post you last linked was spot on, worked like a charm!

Did you by chance lookup those files i said to delete to find this? jw

Thanks again
 
Wondered why it didn't hit here - already had disabled the 'check for updates on startup' - never needed the wait and annoyance with TeensyDuino

this line ?? >> update.check=false

in >> "C:\Users\_your_name_\AppData\Local\Arduino15\preferences.txt"

Just recently added adafruit nRF52840 here and it worked with new JSON to get the board and to then some number of libraries ... just won't get notice when they update ...
 
Looks like the Arduino has it fixed for the next release. Heres the final solution from the issues on GITHUB:
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!
 
Always think about the security implications of running buggy/poorly checked/poorly secured applications on your PC. Even more so when that application downloads from the Internet. One solution is to run apps inside a virtual machine.
 
Just had it happen on one of my three Linux machines. Backed up the original .arduino15 folder and restarted arduino-1.8.12 with no problem. I use the laptop more than the two desktops and that is the one that failed. Will be waiting to see if the other two fail over time and usage.

EDIT: I compared file sizes in both the new and old .arduino15 folders and found a 5kB difference in package_index.json. So I copied that file from the new .arduino15 folder to the old one. After doing that arduino IDE came up without a problem. Went ahead and copied all of the rest of .json and .json.sig files and it still runs. Will be interesting to see what happens over time.
 
Last edited:
Status
Not open for further replies.
Back
Top