Skip to content

Arduino crashes after removing boards from /hardware #11388

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
mrguen opened this issue Mar 29, 2021 · 9 comments
Closed

Arduino crashes after removing boards from /hardware #11388

mrguen opened this issue Mar 29, 2021 · 9 comments
Labels
Component: IDE The Arduino IDE Type: Bug Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug

Comments

@mrguen
Copy link

mrguen commented Mar 29, 2021

Hello,

The Arduino IDE (1.8.13) aborts launching after I defined some boards variants in the /hardware folder and removed them.

Here is what I did

Added new variants in the /hardware folder
The variant was listed but an error showed at compilation "Error resolving FQBN: getting"
So I removed the files in /hardware
Then the Arduino IDE does not launch

It seems Arduino still has a reference to these boards but pointing to nothing. The debug shows

"
...
TRACE StatusLogger Using default SystemClock for timestamps.
DEBUG StatusLogger org.apache.logging.log4j.core.util.SystemClock does not support precise timestamps.
TRACE StatusLogger Using DummyNanoClock for nanosecond timestamps.
DEBUG StatusLogger Reconfiguration complete for context[name=1e6f5c3] at URI jar:file:/C:/Program%20Files%20(x86)/Arduino/lib/pde.jar!/log4j2.xml (org.apache.logging.log4j.core.LoggerContext@f2bbc1) with optional ClassLoader: null
DEBUG StatusLogger Shutdown hook enabled. Registering a new one.
DEBUG StatusLogger LoggerContext[name=1e6f5c3, org.apache.logging.log4j.core.LoggerContext@f2bbc1] started OK.
Preparing boards...
java.lang.NullPointerException
at processing.app.Base.rebuildProgrammerMenu(Base.java:1705)
at processing.app.Base.(Base.java:286)
at processing.app.Base.main(Base.java:150)
"

How can I fix this?

@per1234
Copy link
Collaborator

per1234 commented Mar 29, 2021

Hi @mrguen. When you say this:

So I removed the files in /hardware

Are you referring to the hardware subfolder of the Arduino IDE installation folder?

@per1234 per1234 added the Waiting for feedback More information must be provided before we can proceed label Mar 29, 2021
@matthijskooijman
Copy link
Collaborator

Can you try the "Hourly build" to see if the issue also exists there? I saw this same (or similar) issue and fixed it in git master with #10922, but that's not part of the 1.8.13 release yet.

@mrguen
Copy link
Author

mrguen commented Mar 29, 2021

@per1234 : I mean the personal /hardware folder, not in the installation path.

@mrguen
Copy link
Author

mrguen commented Mar 29, 2021

@matthijskooijman

yes, it fixed the problem.

@matthijskooijman
Copy link
Collaborator

Thanks for checking, then I'm going to close this as fixed.

@matthijskooijman matthijskooijman removed the Waiting for feedback More information must be provided before we can proceed label Mar 29, 2021
@per1234 per1234 added the Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug label Mar 29, 2021
@mrguen
Copy link
Author

mrguen commented Mar 30, 2021

@matthijskooijman

I have a similar issue now.

I could upload sketches to Atmega1284p board using the MighyCore, but now when trying to upload the same sketch for an Atmega644pa, I get the error
"Error resolving FQBN: getting
Error compiling for board ATmega644."

@matthijskooijman
Copy link
Collaborator

Hm, I'm not sure I understand. If you removed stuff from hardware and that is now no longer available, that sounds like expected b behavior. But that's probably not what you mean.

Maybe your could create a new issue and describe in a bit more detail what happens, including full (verbose) compilation output?

@mrguen
Copy link
Author

mrguen commented Mar 31, 2021

@matthijskooijman The first issue was solved in the hourly build.

I can't give you more details on the second issue. I reinstalled the regular 1.8.13 version and did not investigate further on the first issue (that does not happen after a fresh install, i.e. with an empty personal / hardware folder) and apparently don't have problem with the second one.

@cmaglie
Copy link
Member

cmaglie commented May 15, 2021

This looks like a duplicate of #10580 and should be fixed in the latest release 1.8.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE Type: Bug Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug
Projects
None yet
Development

No branches or pull requests

4 participants