"panic: runtime error: index out of range" when uploading code

49 views
Skip to first unread message

Philip (flip) Kromer

unread,
Mar 31, 2016, 5:21:45 AM3/31/16
to Developers
Hello,

I'm using the Arduino IDE with Redbear Duo, installed exactly as described here: https://github.com/redbear/STM32-Arduino.

All of the installation instructions go well and I'm able to burn the bootloader as described. However, when I attempt to upload any file, including unmodified examples, I get the following error:

panic: runtime error: index out of range
goroutine 1 [running]:
arduino.cc/builder.parseTag(0xc208a8a002, 0x11, 0xc5c)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/ctags_parser.go:206 +0x934
arduino.cc/builder.(*CTagsParser).Run(0x2bd908, 0xc20803c510, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/ctags_parser.go:65 +0x1e2
arduino.cc/builder.(*ContainerAddPrototypes).Run(0x2bd908, 0xc20803c510, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/container_add_prototypes.go:55 +0x51a
arduino.cc/builder.runCommands(0xc20803c510, 0xc208031b90, 0x1d, 0x1d, 0x19401, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:187 +0x139
arduino.cc/builder.(*Builder).Run(0xc208031d88, 0xc20803c510, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:118 +0xef7
arduino.cc/builder.RunBuilder(0xc20803c510, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:218 +0x49
main.main()
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/main.go:311 +0x1eb2
arduino-builder returned 2
Error compiling.

This error persists under both Arduino IDE v1.6.8 and v1.6.7. (I used CleanMyMac to do a complete uninstall, and removed my preferences file between trying the two versions).

Thoughts on why this is happening?

thanks,
flip
Reply all
Reply to author
Forward
0 new messages