FS#60378 - [arduino] Fails to run after update
Attached to Project:
Community Packages
Opened by Doğukan Korkmaztürk (dogukan) - Wednesday, 10 October 2018, 22:58 GMT
Last edited by NicoHood (NicoHood) - Monday, 20 May 2019, 15:30 GMT
Opened by Doğukan Korkmaztürk (dogukan) - Wednesday, 10 October 2018, 22:58 GMT
Last edited by NicoHood (NicoHood) - Monday, 20 May 2019, 15:30 GMT
|
Details
Description:
Upon installing 1:1.8.7-1, it is impossible to run the application. It gives the following exception when I try to run it from command line. Picked up JAVA_TOOL_OPTIONS: java.lang.NullPointerException at processing.app.BaseNoGui.onBoardOrPortChange(BaseNoGui.java:679) at processing.app.Base.onBoardOrPortChange(Base.java:1313) at processing.app.Base.<init>(Base.java:276) at processing.app.Base.main(Base.java:145) I tried removing .arduino15 directory from my user's home directory but it didn't solve the problem. Steps to reproduce: Update to latest, launch the Arduino application |
This task depends upon
Closed by NicoHood (NicoHood)
Monday, 20 May 2019, 15:30 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed by upstream
Monday, 20 May 2019, 15:30 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed by upstream
- java-8-openjdk (extra/jdk8-openjdk)
- java-10-openjdk (extra/jdk10-openjdk)
- java-8-jdk (aur/jdk8)
Still, I can reproduce the issue with all Java versions noted above when directly running /usr/share/arduino/arduino without a hardcoded JVM.
Classic NPE in BaseNoGui.java:
TargetPlatform targetPlatform = getTargetPlatform();
if (targetPlatform != null) {
[...]
}
[...]
librariesIndexer.setArchitecturePriority(getTargetPlatform().getId()); <-- CRASH
If you install arduino-avr-core it should work.
java.lang.NullPointerException
at processing.app.BaseNoGui.onBoardOrPortChange(BaseNoGui.java:679)
at processing.app.Base.onBoardOrPortChange(Base.java:1313)
at processing.app.Base$12.actionPerformed(Base.java:1540)
at processing.app.Base.rebuildBoardsMenu(Base.java:1490)
at processing.app.Base.<init>(Base.java:267)
at processing.app.Base.main(Base.java:145)
I just tried copying the .arduino15 directory from another machine and the application started. Maybe this is a possibility until fixed upstream?
But I still have the warning
Picked up JAVA_TOOL_OPTIONS:
Error parsing gtk-icon-sizes string: ''
(edit) Think i solved it by removing .arduino15 directory:
$ mv .arduino15 .arduino15old
And then it worked for me.
If I am not wrong arduino-avr-core installs packages necessary for the Arduino IDE to compile code, but why is it an optional dependency then?
https://github.com/arduino/Arduino/issues/8229
https://github.com/arduino/Arduino/pull/8857
Also backported the patch for current version.