Skip to content

Arduino crashes after removing boards from /hardware #11388

Closed
@mrguen

Description

@mrguen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: IDEThe Arduino IDEType: BugType: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions