Panic: runtime error when compiling on previously working sketch

I have a sketch that was previously working. It's for an Adafruit Huzzah ESP8266 board (not the Feather variant). The sketch has been running fine on two devices for many months. Then I wanted to make one small change - just a IP address in the code. But when I try to compile (not even trying to upload at this stage) I get:

Arduino: 1.8.10 (Mac OS X), Board: "Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, All Flash Contents, 115200"

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1440824]

goroutine 1 [running]:
github.com/arduino/arduino-cli/legacy/builder.ResolveLibrary(0xc000124c00, 0xc00032c2ff, 0x5, 0xc00032c2ff)
	/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/resolve_library.go:64 +0x1d4
github.com/arduino/arduino-cli/legacy/builder.findIncludesUntilDone(0xc000124c00, 0xc0000762a0, 0x1578ca0, 0xc0000c94f0, 0xc00009cbb0, 0xc0002f0000, 0x0)
	/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/container_find_includes.go:358 +0x3db
github.com/arduino/arduino-cli/legacy/builder.(*ContainerFindIncludes).Run(0x1bacff0, 0xc000124c00, 0x1bacff0, 0x0)
	/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/container_find_includes.go:152 +0x4e6
github.com/arduino/arduino-cli/legacy/builder.runCommands(0xc000124c00, 0xc0005d3c20, 0x20, 0x20, 0x401, 0x20300000000000, 0x50)
	/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/builder.go:210 +0xdf
github.com/arduino/arduino-cli/legacy/builder.(*Builder).Run(0xc0000ade70, 0xc000124c00, 0x1bacef0, 0xc000194020)
	/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/builder.go:117 +0xd28
github.com/arduino/arduino-cli/legacy/builder.RunBuilder(...)
	/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-cli/legacy/builder/builder.go:226
main.main()
	/home/jenkins/workspace/arduino-builder-all-cross-cli-inception/src/github.com/arduino/arduino-builder/main.go:398 +0x800
/Applications/Arduino.app/Contents/Java/arduino-builder returned 2
Error compiling for board Adafruit Feather HUZZAH ESP8266.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

The Arduino IDE is 1.8.10 on a Mac. I reinstalled the ESP8266 boards and libraries, but that hasn't helped.

Any thoughts about what I try next?

You might want to do want's suggested at the bottom of the error :slight_smile:

And I have to say, complicated path. Did you put the files there or is that the IDE default on a Mac?

Does the problem still occur if you use Arduino IDE 1.8.9? You can download it here:
https://www.arduino.cc/en/Main/OldSoftwareReleases#previous

pert:
Does the problem still occur if you use Arduino IDE 1.8.9?

I rolled back from 1.8.10 to 1.8.9 and the problem went away, so I guess there are issues with 1.8.10. I've seen other, similar complaints.

I'm glad to hear you were able to work around the problem by rolling back the IDE version. Hopefully they will have this resolved for the 1.8.11 release.

pert:
I'm glad to hear you were able to work around the problem by rolling back the IDE version. Hopefully they will have this resolved for the 1.8.11 release.

Indeed. Thanks for your help.

@machina
may I ask you a copy of your sketchbook folder?
I'm trying to fix this problem, but I'm still not able to reproduce the error.

Faced same issue here.
Just rolled back to 1.8.9 to be able to build same previously working project.
Detail it was working on 1.8.10 until yesterday.

I updated the software earlier today and experienced various weird errors mainly with the serial not working occasionally. After a reboot I then received the above error. I rolled back to 1.8.9 and got the strange Serial error. Reconnecting the USB cable fixed it all again. Just adding this as it may have something to do with the serial communication.