Closed
Description
Describe the bug
After opening an IDE, it soon appears as OffLine in the status bar
After that, no menu works. Nor the Open
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Kubtunu 19.04
- Version v0.0.6-alpha.preview
Additional context
Console error
root INFO Changed application state from 'initialized_layout' to 'ready'.
daemon INFO current best: arduino:avr@1.8.2 [bundle: false, managed: true, version: 1.8.2]
daemon INFO current best: arduino:sam@1.6.11 [bundle: false, managed: true, version: 1.6.11]
daemon INFO current best: digistump:avr@1.6.7 [bundle: false, managed: true, version: 1.6.7]
daemon INFO current best: esp8266:esp8266@2.4.1 [bundle: false, managed: true, version: 2.4.1]
daemon INFO current best: Cosa:avr@1.2.0 [bundle: false, managed: true, version: 1.2.0]
daemon INFO current best: esp32:esp32@1.0.4 [bundle: false, managed: true, version: 1.0.4]
daemon INFO current best: Cosa:avr@1.2.0 [bundle: false, managed: true, version: 1.2.0]
daemon INFO current best: esp32:esp32@1.0.4 [bundle: false, managed: true, version: 1.0.4]
daemon INFO current best: arduino:avr@1.8.2 [bundle: false, managed: true, version: 1.8.2]
daemon INFO current best: arduino:sam@1.6.11 [bundle: false, managed: true, version: 1.6.11]
daemon INFO current best: digistump:avr@1.6.7 [bundle: false, managed: true, version: 1.6.7]
daemon INFO current best: esp8266:esp8266@2.4.1 [bundle: false, managed: true, version: 2.4.1]
root INFO Index has been updated.
daemon INFO panic: runtime error: invalid memory address or nil pointer dereference
daemon INFO [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x7b926c]
daemon INFO goroutine 15 [running]:
daemon INFO go.bug.st/relaxed-semver.(*Version).CompareTo(0xc0020e2630, 0x0, 0xc00149e8c0)
daemon INFO /github/home/go/pkg/mod/go.bug.st/relaxed-semver@v0.0.0-20190922224835-391e10178d18/version.go:115 +0x3c
daemon INFO go.bug.st/relaxed-semver.(*Version).GreaterThan(...)
daemon INFO /github/home/go/pkg/mod/go.bug.st/relaxed-semver@v0.0.0-20190922224835-391e10178d18/version.go:202
daemon INFO github.com/arduino/arduino-cli/arduino/libraries/librariesindex.(*Index).FindLibraryUpdate(0xc00000e008, 0xc000488360, 0x0)
daemon INFO /__w/arduino-cli/arduino-cli/arduino/libraries/librariesindex/index.go:121 +0x88
daemon INFO github.com/arduino/arduino-cli/commands/lib.listLibraries(0xc002e80340, 0xc000170000, 0x1, 0xc0000b2178, 0x1)
daemon INFO /__w/arduino-cli/arduino-cli/commands/lib/list.go:65 +0xe8
daemon INFO github.com/arduino/arduino-cli/commands/lib.LibraryList(0xe0f800, 0xc001d94480, 0xc001d944b0, 0xcc4700, 0xc0004f8300, 0xe1dd40)
daemon INFO /__w/arduino-cli/arduino-cli/commands/lib/list.go:38 +0xb5
daemon INFO github.com/arduino/arduino-cli/commands/daemon.(*ArduinoCoreServerImpl).LibraryList(0xc0001b0f60, 0xe0f800, 0xc001d94480, 0xc001d944b0, 0xc0001b0f60, 0xc001d94480, 0xc00009fb30)
daemon INFO /__w/arduino-cli/arduino-cli/commands/daemon/daemon.go:288 +0x3f
daemon INFO github.com/arduino/arduino-cli/rpc/commands._ArduinoCore_LibraryList_Handler(0xcc4700, 0xc0001b0f60, 0xe0f800, 0xc001d94480, 0xc0004f8300, 0x0, 0xe0f800, 0xc001d94480, 0xc000617240, 0x4)
daemon INFO /__w/arduino-cli/arduino-cli/rpc/commands/commands.pb.go:1799 +0x217
daemon INFO google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000ae900, 0xe17e40, 0xc000001800, 0xc00112fe00, 0xc0001b3e90, 0x135ea90, 0x0, 0x0, 0x0)
daemon INFO /github/home/go/pkg/mod/google.golang.org/grpc@v1.27.0/server.go:1024 +0x4f4
daemon INFO google.golang.org/grpc.(*Server).handleStream(0xc0000ae900, 0xe17e40, 0xc000001800, 0xc00112fe00, 0x0)
daemon INFO /github/home/go/pkg/mod/google.golang.org/grpc@v1.27.0/server.go:1313 +0xd97
daemon INFO google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc000036100, 0xc0000ae900, 0xe17e40, 0xc000001800, 0xc00112fe00)
daemon INFO /github/home/go/pkg/mod/google.golang.org/grpc@v1.27.0/server.go:722 +0xbb
daemon INFO created by google.golang.org/grpc.(*Server).serveStreams.func1
daemon INFO /github/home/go/pkg/mod/google.golang.org/grpc@v1.27.0/server.go:720 +0xa1
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ricardojlrufino commentedon May 12, 2020
I tryied old version:0.0.5-alpha.preview-linux64/
It goes online and the Menus work. But I can't compile
I got this error:

kittaakos commentedon May 14, 2020
@ricardojlrufino, do you have
arduino-cli
on yourPATH
? Have you customized the CLI configuration file under~/.arduinoProIDE/arduino-cli.yaml
?kittaakos commentedon May 14, 2020
Here is a very similar error from the CLI: arduino/arduino-cli#28
Let's keep an eye on that and reopen if required.
ricardojlrufino commentedon May 14, 2020
No
Does it matter any configuration of the old Arduino?
For it has already opened in a random sketch ... (I think maybe even the Platform IO)
ricardojlrufino commentedon May 14, 2020
Hi, i fixed...
Now works...
Try revert : 2. MOVE old: ~/.arduino15-bck/ to ~/.arduino15
Works..
I think it was the folder:
~ / Arduino
, I don't know which IDE created this folder.kittaakos commentedon May 14, 2020
Thanks for the update.
This is where you store Pro IDE settings, such as your workbench layout, CLI config, other VS Code extensions, etc.
This is managed by the CLI. I do not know much about it or why it caused any issues but we can dig deeper if you will.
I do not know either, I bet the Java-based, "old" IDE.
Very nice 👍
ricardojlrufino commentedon May 14, 2020
~/.arduino15
is maneged by Java IDE. But as I said I moved it, then I came back and it worked ...It is definitely something that was in the folder: /home/ricardo/Arduino
I copied the folder back that I had backed up, and the problem came up.
Probably some old library or incompatible core.
See my tree : /home/ricardo/Arduino
ricardojlrufino commentedon May 14, 2020
Mystery solved, incompatible library.
UIPEthernet
The strange thing is that this error broke the entire IDE, nor did the menus work. It would be interesting to have an error handling in that part ..
kittaakos commentedon May 14, 2020
By the CLI, as far as I know. See the corresponding code here. Maybe the Java IDE too, I do not know.
How did you manage to figure it out? How can I reproduce the incompatible
UIPEthernet
lib? Thanks!I agree. First, I have to understand how can I reproduce this. Can you help?
ricardojlrufino commentedon May 14, 2020
Test using this lib please.
UIPEthernet.zip
kittaakos commentedon May 15, 2020
@ricardojlrufino, thanks for zipping up the lib, how can I try it? Can you tell me the steps you did? I have to figure out if the CLI (without the Pro IDE) can use this lib or not.
ricardojlrufino commentedon May 15, 2020
Put in library folder:
/home/USER/Arduino/libraries
per1234 commentedon Feb 17, 2021
The problem with this library is the value of the
version
field in the library.properties metadata file is non "relaxed semver" compliant, as required by the Arduino Library specification:(note the leading 0 on the minor version component)
We have a bug report (arduino/arduino-cli#1176) and work in progress on a PR (arduino/arduino-cli#1177) right now in the Arduino CLI repo to handle this circumstance gracefully. @kittaakos. Do you think the planned improvement in Arduino CLI will be sufficient to resolve this issue without any need for changes to Arduino Pro IDE? If so, I would go ahead and close this issue.
per1234 commentedon Apr 5, 2021
Closing as fixed by arduino/arduino-cli#1189. Thanks to @r10r and silvanocerza for the fix!