Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
ERROR When Trying to Play!?!?
Old
Wood
Guest
 
Status:
Posts: n/a
Exclamation ERROR When Trying to Play!?!? - 05-03-2010, 11:51 AM

When I try to play my program, it says "Error during simulation". It used to work perfectly fine, but all of a sudden, it wouldn't play and just gave me this. When I press more detail, i get this:

Error during simulation.


Alice version: 2.2 8/1/2009

Throwable that caused the error:
java.lang.NullPointerException
at edu.cmu.cs.stage3.alice.core.question.SubjectObjec tQuestion.getValue(SubjectObjectQuestion.java:97)
at edu.cmu.cs.stage3.alice.core.question.SubjectQuest ion.getValue(SubjectQuestion.java:35)
at edu.cmu.cs.stage3.alice.core.Property.evaluateIfNe cessary(Property.java:379)
at edu.cmu.cs.stage3.alice.core.Property.getValue(Pro perty.java:406)
at edu.cmu.cs.stage3.alice.core.property.BooleanPrope rty.getValue(BooleanProperty.java:33)
at edu.cmu.cs.stage3.alice.core.property.BooleanPrope rty.getBooleanValue(BooleanProperty.java:45)
at edu.cmu.cs.stage3.alice.core.property.BooleanPrope rty.booleanValue(BooleanProperty.java:48)
at edu.cmu.cs.stage3.alice.core.behavior.ConditionalB ehavior.preSchedule(ConditionalBehavior.java:36)
at edu.cmu.cs.stage3.alice.core.Sandbox.scheduleBehav iors(Sandbox.java:69)
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:99)
at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l$7.run(AuthoringTool.java:704)
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.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(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:126)
at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.play(AuthoringTool.java:5091)
at edu.cmu.cs.stage3.alice.authoringtool.Actions$16.a ctionPerformed(Actions.java:175)
at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
at javax.swing.AbstractButton$Handler.actionPerformed (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 javax.swing.JComponent.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.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
   
Reply With Quote
Old
Egg
Guest
 
Status:
Posts: n/a
Cool 05-03-2010, 11:54 AM

that really sucks for you man, can't help ya there
   
Reply With Quote
Old
Wood
Guest
 
Status:
Posts: n/a
Default 05-03-2010, 11:55 AM

Thank you for your sympathy, but can anyone help me actually FIX this?
   
Reply With Quote
Old
dylmyster22
Guest
 
Status:
Posts: n/a
Default 05-03-2010, 12:59 PM

From my past experiences, you better hope you have a back up of the file because from what I understand the files corrupt and un usable. Dont quote me on this though because I have never tried to fix the problem, i usually just restore from a previous point. And if its for all games it may be the program its self. And if its just a game you downloaded from here, just re download it.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 05-03-2010, 03:23 PM

Can you post the world on the forums here and tell us what the last thing you did before it gave you this error was?


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
Niteshifter
Guest
 
Status:
Posts: n/a
Default 05-03-2010, 05:03 PM

Look at the parameters and variables that use an object for its value (more specifically the ones that ask a user for an object).

Also, yes I can tell what's wrong using the error messages, but I can't say how because it's a little hard to explain how to do it.
   
Reply With Quote
Old
Wood
Guest
 
Status:
Posts: n/a
Default 05-04-2010, 09:36 AM

Thank you for your posts. I ended up finding a backup file, which I used. I lost some of my work, but I'm mostly caught up. Hopefully some of these glitches will be fixed up in later versions of Alice.
   
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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.