Skip to content

Null Pointer Exception with no AVR Core installed #10580

Closed
@NicoHood

Description

@NicoHood

Also see: https://bugs.archlinux.org/task/67452

The Arduino IDE should handle the case when no avr core is installed. I remember that worked before, so it must be a problem of some newer versions? Since not everybody wants to use the IDE with AVR we should not rely on it. Especially on archlinux I left the choice to the user to either use the upstream arduino avr core or the archlinux avr core.

Activity

NicoHood

NicoHood commented on Feb 14, 2021

@NicoHood
ContributorAuthor

The issue still exists and archlinux users open bug reports/email me over and over again about this issue. I guess it is quite easy to fix, can you please have a look at this again?

NicoHood

NicoHood commented on Apr 21, 2021

@NicoHood
ContributorAuthor

push Please are reporting this issue over and over again

cmaglie

cmaglie commented on Apr 21, 2021

@cmaglie
Member

The issue still exists and archlinux users open bug reports/email me over and over again about this issue. I guess it is quite easy to fix, can you please have a look at this again?

I tried a light_bundle build and the IDE seems to start just fine:
image

did you have a way to reproduce the issue? maybe it's has been fixed after 1.8.13?

added this to the Release 1.8.14 milestone on Apr 21, 2021
NicoHood

NicoHood commented on Apr 22, 2021

@NicoHood
ContributorAuthor

Hey @cmaglie thanks for picking this up! :)

We are also using a light bundle:
https://github.com/archlinux/svntogit-community/blob/packages/arduino/trunk/PKGBUILD

It is not fixed in the recent release, as users still reported the issue. You can reproduce this on a fresh archlinux install. The user folder must not have any arduino related content (like the avr boards) and the package itself should also not ship the arduino avr boards.

cmaglie

cmaglie commented on Apr 22, 2021

@cmaglie
Member

if I build a light bundle from the tag 1.8.13 I got this error:

     [exec] java.lang.NullPointerException
     [exec] 	at processing.app.Base.rebuildProgrammerMenu(Base.java:1705)
     [exec] 	at processing.app.Base.<init>(Base.java:286)
     [exec] 	at processing.app.Base.main(Base.java:150)

If I build from master the IDE starts cleanly, so I assume it was fixed in a way or another. Is the error above that are you experiencing?

If not, may you send me a stack trace or something else to debug it? I'm having trouble reproducing it on the master branch.

NicoHood

NicoHood commented on Apr 22, 2021

@NicoHood
ContributorAuthor

That is the error I get:

$ arduino
Picked up JAVA_TOOL_OPTIONS: 
Set log4j store directory /home/user/.arduino15
java.lang.NullPointerException
	at processing.app.Base.rebuildProgrammerMenu(Base.java:1705)
	at processing.app.Base.<init>(Base.java:286)
	at processing.app.Base.main(Base.java:150)

Maybe it got fixed, we will see with 1.8.14. When will it be released?

Offtopic: Can you also have a look at arduino/arduino-cli#1265 please?

NicoHood

NicoHood commented on May 13, 2021

@NicoHood
ContributorAuthor

It was fixed with 1.8.14, thanks a lot!

2 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Null Pointer Exception with no AVR Core installed · Issue #10580 · arduino/Arduino