Alice Community  

Go Back   Alice Community > Alice 2 > Bugs and Troubleshooting

Reply
 
Thread Tools Display Modes
Error during simulation
Old
Informatikkurs
Guest
 
Status:
Posts: n/a
Default Error during simulation - 05-29-2006, 05:15 AM

Hello,

we have a problem with our Alice ( 2.0 04/05/2005 )!

Here is the Error:




Error during simulation.




Alice version: 2.0 04/05/2005

os.name: Windows 98

os.version: 4.10

os.arch: x86

java.vm.name: Java HotSpot(TM) Client VM

java.vm.version: 1.3.1_10-b03

user.dir: \\LEHRER\ALICE\Required



Throwable that caused the error:

java.lang.ArrayIndexOutOfBoundsException: -1 not in range [0,2)

at edu.cmu.cs.stage3.alice.core.Behavior$Fork.getNext (Behavior.java:113)

at edu.cmu.cs.stage3.alice.core.Behavior$RuntimeStack .top(Behavior.java:55)

at edu.cmu.cs.stage3.alice.core.Behavior$RuntimeStack .pop(Behavior.java:48)

at edu.cmu.cs.stage3.alice.core.Behavior.closeFork(Be havior.java:176)

at edu.cmu.cs.stage3.alice.core.response.DoTogether$R untimeDoTogether.epilogue(DoTogether.java:85)

at edu.cmu.cs.stage3.alice.core.response.CompositeRes ponse$RuntimeCompositeResponse.childrenEpiloguesIf Necessary(CompositeResponse.java:67)

at edu.cmu.cs.stage3.alice.core.response.CompositeRes ponse$RuntimeCompositeResponse.epilogue(CompositeR esponse.java:73)

at edu.cmu.cs.stage3.alice.core.response.DoTogether$R untimeDoTogether.epilogue(DoTogether.java:81)

at edu.cmu.cs.stage3.alice.core.behavior.AbstractCond itionalBehavior.internalSchedule(AbstractCondition alBehavior.java:112)

at edu.cmu.cs.stage3.alice.core.Behavior.schedule(Beh avior.java:225)

at edu.cmu.cs.stage3.alice.core.Sandbox.scheduleBehav iors(Sandbox.java:70)

at edu.cmu.cs.stage3.alice.core.World.scheduleBehavio rs(World.java:444)

at edu.cmu.cs.stage3.alice.core.World.schedule(World. java:486)

at edu.cmu.cs.stage3.alice.core.clock.DefaultClock.sc hedule(DefaultClock.java:94)

at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l$11.run(AuthoringTool.java:681)

at edu.cmu.cs.stage3.alice.authoringtool.util.Default Scheduler.simulateOnce(DefaultScheduler.java:115)

at edu.cmu.cs.stage3.alice.authoringtool.util.Default Scheduler.run(DefaultScheduler.java:76)

at edu.cmu.cs.stage3.scheduler.AbstractScheduler.run( AbstractScheduler.java:45)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

at java.awt.Dialog.show(Unknown Source)

at edu.cmu.cs.stage3.swing.DialogManager.showModalDia log(DialogManager.java:58)

at edu.cmu.cs.stage3.swing.DialogManager.showDialog(D ialogManager.java:123)

at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.play(AuthoringTool.java:5073)

at edu.cmu.cs.stage3.alice.authoringtool.Actions$15.a ctionPerformed(Actions.java:167)

at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)

at javax.swing.AbstractButton$ForwardActionEvents.act ionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)


This error occours while simulating our Project, in which we have to press a button, BUT when we stop to press the button this error occours.

Our teacher in computing is unsystematic with this thematic....

And we hope YOU can help us!!

Yours Informatikkurs
   
Reply With Quote
Old
gabe
Administrator
 
gabe's Avatar
 
Status: Offline
Posts: 461
Join Date: Jul 2005
Location: Pittsburgh, PA
Default 05-29-2006, 12:26 PM

If you can attach your world that demonstrates this bug, we can take a look at it and try to figure out what is causing the problem.
   
Reply With Quote
problem solved
Old
Informatikkurs
Guest
 
Status:
Posts: n/a
Cool problem solved - 06-07-2006, 02:11 AM

Thank you for your help,
but this problem was caused by our 133mhz computers.
   
Reply With Quote
Old
lanceA
Guest
 
Status:
Posts: n/a
Default 06-09-2006, 09:22 PM

I would be interested in understanding how the speed of your processor caused the problem. And more importantly, how did you determine that the problem was attributable to the processor speed?

How you localized the problem to the processor speed would be beneficial to all of us.

Simply running a program on another machine is not indicative of the cause of the problem. The other machine might have more memory, a different processor, fewer processes running, etc.

Any additional information other than the speed of the processor which helped you solve this problem would be very helpful.

Thanks

Last edited by lanceA; 06-09-2006 at 09:36 PM.
   
Reply With Quote
98
Old
Jabberwocky
Guest
 
Status:
Posts: n/a
Default 98 - 06-10-2006, 01:30 AM

Could this have been an operating system problem? The minimum OS requirements for Alice are Windows ME, 2000 or XP (See How fast a machine do I need?on the troubleshooting page). The error output above shows the system producing the error was a Windows 98 machine.
   
Reply With Quote
CPU bottleneck
Old
Jabberwocky
Guest
 
Status:
Posts: n/a
Default CPU bottleneck - 06-10-2006, 02:02 AM

Perhaps it's a thread overrun, to many processes are generated and it bogs down the CPU. The second line in the error log does mention forking...

Here's an article from the Sun site: Analyzing Process Behavior
   
Reply With Quote
Need help on Error During Simulation
Old
AliceNoob
Guest
 
Status:
Posts: n/a
Default Need help on Error During Simulation - 10-09-2008, 04:41 AM

Hi,

i just created an simple alice world with controls to move a bikerkid object with the a chase cam feature.

However, when i start to run the simulation and hold down "w" for a few seconds to move the the bikerkid forward and release "w" key, an error occurs saying "Error during simulation". (some ArrayIndexOutOfBoundsException)

Error message as follow:

Error during simulation.

Alice version: 2.0 04/05/2005

os.name: Windows XP

os.version: 5.1

os.arch: x86

java.vm.name: Java HotSpot(TM) Client VM

java.vm.version: 1.3.1_10-b03

user.dir: D:\My NTU\FYP\ALICE\Prog\Alice 2.0\Required



Throwable that caused the error:

java.lang.ArrayIndexOutOfBoundsException: -1 not in range [0,2)

at edu.cmu.cs.stage3.alice.core.Behavior$Fork.getNext (Behavior.java:113)

at edu.cmu.cs.stage3.alice.core.Behavior$RuntimeStack .top(Behavior.java:55)

at edu.cmu.cs.stage3.alice.core.Behavior$RuntimeStack .pop(Behavior.java:48)

at edu.cmu.cs.stage3.alice.core.Behavior.closeFork(Be havior.java:176)

at edu.cmu.cs.stage3.alice.core.response.DoTogether$R untimeDoTogether.epilogue(DoTogether.java:85)

at edu.cmu.cs.stage3.alice.core.response.CompositeRes ponse$RuntimeCompositeResponse.childrenEpiloguesIf Necessary(CompositeResponse.java:67)

at edu.cmu.cs.stage3.alice.core.response.CompositeRes ponse$RuntimeCompositeResponse.epilogue(CompositeR esponse.java:73)

at edu.cmu.cs.stage3.alice.core.response.CallToUserDe finedResponse$RuntimeCallToUserDefinedResponse.epi logue(CallToUserDefinedResponse.java:94)

at edu.cmu.cs.stage3.alice.core.response.CompositeRes ponse$RuntimeCompositeResponse.childrenEpiloguesIf Necessary(CompositeResponse.java:67)

at edu.cmu.cs.stage3.alice.core.response.CompositeRes ponse$RuntimeCompositeResponse.epilogue(CompositeR esponse.java:73)

at edu.cmu.cs.stage3.alice.core.response.DoTogether$R untimeDoTogether.epilogue(DoTogether.java:81)

at edu.cmu.cs.stage3.alice.core.response.CompositeRes ponse$RuntimeCompositeResponse.childrenEpiloguesIf Necessary(CompositeResponse.java:67)

at edu.cmu.cs.stage3.alice.core.response.CompositeRes ponse$RuntimeCompositeResponse.epilogue(CompositeR esponse.java:73)

at edu.cmu.cs.stage3.alice.core.response.CallToUserDe finedResponse$RuntimeCallToUserDefinedResponse.epi logue(CallToUserDefinedResponse.java:94)

at edu.cmu.cs.stage3.alice.core.behavior.AbstractCond itionalBehavior.internalSchedule(AbstractCondition alBehavior.java:112)

at edu.cmu.cs.stage3.alice.core.Behavior.schedule(Beh avior.java:225)

at edu.cmu.cs.stage3.alice.core.Sandbox.scheduleBehav iors(Sandbox.java:70)

at edu.cmu.cs.stage3.alice.core.World.scheduleBehavio rs(World.java:444)

at edu.cmu.cs.stage3.alice.core.World.schedule(World. java:486)

at edu.cmu.cs.stage3.alice.core.clock.DefaultClock.sc hedule(DefaultClock.java:94)

at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l$11.run(AuthoringTool.java:681)

at edu.cmu.cs.stage3.alice.authoringtool.util.Default Scheduler.simulateOnce(DefaultScheduler.java:115)

at edu.cmu.cs.stage3.alice.authoringtool.util.Default Scheduler.run(DefaultScheduler.java:76)

at edu.cmu.cs.stage3.scheduler.AbstractScheduler.run( AbstractScheduler.java:45)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

at java.awt.Dialog.show(Unknown Source)

at edu.cmu.cs.stage3.swing.DialogManager.showModalDia log(DialogManager.java:58)

at edu.cmu.cs.stage3.swing.DialogManager.showDialog(D ialogManager.java:123)

at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.play(AuthoringTool.java:5073)

at edu.cmu.cs.stage3.alice.authoringtool.Actions$15.a ctionPerformed(Actions.java:167)

at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)

at javax.swing.AbstractButton$ForwardActionEvents.act ionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)




Attached: Test.a2w and capture00.jpg

Need help badly pls ... any help will be much appreciated
Thanx in advance
Attached Images
File Type: jpg capture00.jpg (16.8 KB, 87 views)
Attached Files
File Type: a2w Test.a2w (903.8 KB, 61 views)
   
Reply With Quote
ArrayIndexOutOfBoundsException
Old
DrJim
Guest
 
Status:
Posts: n/a
Default ArrayIndexOutOfBoundsException - 10-10-2008, 12:21 PM

One frequent cause for this error (or a simple index out of bounds error) is that a method is stopped (by releasing the key) in the middle of a loop.

Do a search of the forum for walk methods (where this problem has often occured) - you will see several examples of this problem and some work-arounds.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.