yes -- that's the place. It's fixed. Somehow I had #comment lines going in
without a [0] element.
On Thu, Nov 13, 2008 at 7:23 PM, Jonathan Gutow <[EMAIL PROTECTED]> wrote:
> Ok,
> I think I found where the array index goes out of bounds, but I
> don't see how. If I'm reading the following loop correctly the array
> index is limited to the length of the array. Am I running into a bug
> in the Apple JVM or something corrupt on my computer? I haven't
> tried this on one of my Windows or Linux machines yet. Can somebody
> please run the script attached to this bug report on one of their
> machines and see if they get the same crash?
>
> code snippet from at org.jmol.viewer.Eval.gotocmd
> ------
> for (int i = 0; i < aatoken.length; i++) {
> Token[] tokens = aatoken[i];
> if (tokens[0].tok == Token.message)
> if (tokens[1].value.toString().equalsIgnoreCase(strTo)) {
> pcTo = i;
> break;
> }
> -------
>
> Thanks,
> Jonathan
> On Nov 13, 2008, at 1:09 PM, SourceForge.net wrote:
>
> > Bugs item #2278015, was opened at 2008-11-13 13:09
> > Message generated for change (Tracker Item Submitted) made by Item
> > Submitter
> > You can respond by visiting:
> > https://sourceforge.net/tracker/?
> > func=detail&atid=379133&aid=2278015&group_id=23629
> >
> > Please note that this message will contain a full copy of the
> > comment thread,
> > including the initial issue submission, for this request,
> > not just the latest update.
> > Category: Scripting
> > Group: v11
> > Status: Open
> > Resolution: None
> > Priority: 5
> > Private: No
> > Submitted By: Jonathan Gutow (gutow)
> > Assigned to: Miguel (migueljmol)
> > Summary: 11.6.4 "message loop [...] goto loop" only does one pass
> >
> > Initial Comment:
> > The "message loop [...] goto loop" structure now only does one
> > pass. An example script that fails and it's associated .pdb file
> > is attached as a zip file.
> >
> > The program crashes (applet too) on reaching the goto with the
> > following message:
> > Exception in thread "QueueThread0"
> > java.lang.ArrayIndexOutOfBoundsException: 0
> > at org.jmol.viewer.Eval.gotocmd(Unknown Source)
> > at org.jmol.viewer.Eval.instructionDispatchLoop(Unknown Source)
> > at org.jmol.viewer.Eval.script(Unknown Source)
> > at org.jmol.viewer.Eval.instructionDispatchLoop(Unknown Source)
> > at org.jmol.viewer.Eval.runEval(Unknown Source)
> > at org.jmol.viewer.Viewer.evalStringWaitStatus(Unknown Source)
> > at org.jmol.viewer.ScriptManager$ScriptQueueRunnable.runScript
> > (Unknown Source)
> > at org.jmol.viewer.ScriptManager$ScriptQueueRunnable.runNextScript
> > (Unknown Source)
> > at org.jmol.viewer.ScriptManager$ScriptQueueRunnable.run(Unknown
> > Source)
> > at java.lang.Thread.run(Thread.java:613)
> >
> > ----------------------------------------------------------------------
> >
> > You can respond by visiting:
> > https://sourceforge.net/tracker/?
> > func=detail&atid=379133&aid=2278015&group_id=23629
> >
> > ----------------------------------------------------------------------
> > ---
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge
> > Build the coolest Linux based applications with Moblin SDK & win
> > great prizes
> > Grand prize is a trip for two to an Open Source event anywhere in
> > the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Jmol-developers mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
> Dr. Jonathan H. Gutow
> Chemistry Department [EMAIL PROTECTED]
> UW-Oshkosh Office:920-424-1326
> 800 Algoma Boulevard FAX:920-424-2042
> Oshkosh, WI 54901
> http://www.uwosh.edu/faculty_staff/gutow/
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Jmol-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers