Compilation error 'panic: runtime error: index out of range'

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Compilation error 'panic: runtime error: index out of range'

Post by majenko » Wed Dec 14, 2016 1:06 am

's OK...

I guess the next step will be to identify the commits that happened between 1.6.11 and 1.6.12 and find the one that broke it.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Compilation error 'panic: runtime error: index out of range'

Post by majenko » Wed Dec 14, 2016 1:54 am

Wild guess:

Code: Select all

commit 17063d0fec7d3269d65a0563dbd9e5bd8f4459ef
Author: Martino Facchin <m.facchin@arduino.cc>
Date:   Thu Sep 15 18:10:51 2016 +0200

    Update arduino-builder to 1.3.21_r1
    
    Like 1.3.21 but recompiled with go 1.7.1 on OSX to avoid crashing on Sierra

Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Compilation error 'panic: runtime error: index out of range'

Post by majenko » Wed Dec 14, 2016 1:56 am

Nope. Maybe this one:

Code: Select all

commit e9439c2c32ca6cf7c731dbc1402de3ae37435af9
Author: jenkins <jenkins@jenkins.fablabtorino>
Date:   Fri Aug 26 19:19:46 2016 +0200

    update arduino-builder to 1.3.21

Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Compilation error 'panic: runtime error: index out of range'

Post by majenko » Wed Dec 14, 2016 1:59 am

Yep, that's the puppy. Upgrading to Arduino-builder 1.3.21 broke it.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Compilation error 'panic: runtime error: index out of range'

Post by majenko » Wed Dec 14, 2016 2:09 am

Ok, tomorrow's task - trawl through arduino-builder's commits between 1.3.20 and 1.3.21 and see what broke (btw, I tried upgrading to 1.3.22 and it was just as broken).
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

photomankc
Posts: 23
Joined: Sat Nov 12, 2011 4:34 am

Re: Compilation error 'panic: runtime error: index out of range'

Post by photomankc » Wed Jan 11, 2017 7:48 am

Any news on this issue? I've run right into it on my system with Arduino 1.8.1 and ChipKit 1.3.0 and 1.3.1. Very frustrating. I have to change boards under tools for each compile after the first one.

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Compilation error 'panic: runtime error: index out of range'

Post by majenko » Wed Jan 11, 2017 11:41 am

The simple fix is to not use Arduino IDE past 1.6.11. Better, use UECIDE - there is no problem with that.

Arduino Builder is very much a closed book to me. It's written in some strange language that only three people on the planet understand.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

photomankc
Posts: 23
Joined: Sat Nov 12, 2011 4:34 am

Re: Compilation error 'panic: runtime error: index out of range'

Post by photomankc » Wed Jan 11, 2017 8:00 pm

Thanks for the tip! I downgraded to 1.6.11 and presto it's working again. I really only use it to push the code to the board so as long as it compiles and loads the program, I'm good to go. I use Eclipse to edit the source so I don't much care about the Arduino IDE features so no big bother to back-track.

I tried the UCEIDE, and it almost worked but it chokes on some 3rd party libraries even when I point the locations preferences to the folders or copy them into the default libraries folder. Didn't pry much further because 1.6.11 works and I'm lazy. I'll just stay at 1.6.11. I do like the interface and code organization from what I saw.

Thanks again for pointing me to the right version. I'm on now to writing working code!

=======================================================+

Just an observation from someone coming back after several years. The development tools are kind of a tangled web. MPIDE is mentioned all over of course but a note says it's no longer developed and Arduino is preferred and where to go for current Programming. That of course leads one to the 1.8.1 version now. But now we have this bug and it *sounds* as though that's not going to be fixed soon. Then MPLAB X is mentioned but that is a whole 'nother world to jump into and now you are developing for only the PIC platform.

Don't take this as a swipe, it's not, just noting that for a person first looking at the platform it's a bit confusing how to get the right development environment going.

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Compilation error 'panic: runtime error: index out of range'

Post by majenko » Wed Jan 11, 2017 9:59 pm

You are quite right, yes, it is a bit confusing.

MPIDE is dead. The problem is the documentation doesn't know it.

Arduino IDE is broken, but isn't under our control, so getting it fixed isn't an easy job, especially as we don't really know what is wrong with it.

MPLAB-X is not for mere humans.

UECIDE is what I would always recommend, but it is only me working on it. Feedback on things not working is essential so I can get it working. I'd love it if you could give it another go and let me know what isn't working.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

photomankc
Posts: 23
Joined: Sat Nov 12, 2011 4:34 am

Re: Compilation error 'panic: runtime error: index out of range'

Post by photomankc » Wed Jan 11, 2017 11:28 pm

majenko wrote: UECIDE is what I would always recommend, but it is only me working on it. Feedback on things not working is essential so I can get it working. I'd love it if you could give it another go and let me know what isn't working.
Very nice effort for a one-man show! I'll try to create something simple from the ground up and see if I can isolate what it's griping about really. The library in question was a psuedo-threading library and the compiler was claiming the included headers were not found despite including it in the preferences dialog under locations. So it's just an environment setup issue. I imagine if I pulled it all into the project folder it would compile fine.
Attachments
Screen Shot 2017-01-11 at 4.23.58 PM.png
Screen Shot 2017-01-11 at 4.23.58 PM.png (81.24 KiB) Viewed 419 times

Post Reply