Bug 1237 : IDE crashed when changing color scheme on windows
Last modified: 2009-05-07 15:18




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
christian_parsons
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2009-05-02 11:27
Hey, found a bug. this report should help fixing it:

the IDE crashes when you change your color scheme in windows. I had
HighContrast#1 and this gave me a real headache because there was no
verbose or console tracking when launching the IDE. it just sometimes threw
this alert:
virtual machine launcher
fatal error occured. program will exit.

and the launch4j.log didn't say anything clear.

arduino IDE have the same crash but when I launch it with run.bat, the DOS
console said:

Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
String ind
ex out of range: -1
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at processing.app.Preferences.setColor(Preferences.java:795)
at processing.app.Preferences.init(Preferences.java:185)
at processing.app.Editor.<init>(Editor.java:163)
at processing.app.Base.<init>(Base.java:149)
at processing.app.Base.main(Base.java:104)
Press any key to continue . . .

so there is a string not taken into account there. apparently on
Prefences.setColor() or something like that.

found a clarifying thread in the arduino forum:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1232148583

thanks.
Additional Comment #1 From fry 2009-05-02 11:45
are you using 1.0.3? i thought we had fixed this.
Additional Comment #2 From christian_parsons 2009-05-02 12:01
(In reply to comment #1)
>
>
>
> Additional Comment #1 From
>
> fry
> 2009-05-02 11:45
>
> <!--
> addReplyLink(1); //-->[reply]
>
>
>
>
> are you using 1.0.3? i thought we had fixed this.
>
>


These were my tests:

(versions with java)
0121 crashed
0124 crashed
0125 crashed
0135 ok
0148 ok
0157 crashed
1.0.3 crashed
(version without java)
1.0-expert crashed
Additional Comment #3 From fry 2009-05-07 15:18
ah, changed it in one place and not the other. fixed for the next release,
thanks for the report.
Additional Comment #4 From fry 2009-05-07 15:18
(next release should be 1.0.4.)