Alice Community  

Go Back   Alice Community > Alice 2 > Bugs and Troubleshooting

Reply
 
Thread Tools Display Modes
Program Crashes When Adding or Deleting Code
Old
wbarnum
Member
 
Status: Offline
Posts: 20
Join Date: Jun 2015
Question Program Crashes When Adding or Deleting Code - 08-27-2015, 10:08 AM

This student's program runs fine and he can add new character objects. However, when he tries to add and remove a block of code, Alice generates an error.

Here is a screen recording of it occurring: https://www.youtube.com/watch?v=5AKG8Ks8eAk

Does anyone have any advice or guidance? Thanks.
Attached Files
File Type: a3p Jack and the Beanstalk(Buggy).a3p (181.6 KB, 3 views)

Last edited by wbarnum; 08-27-2015 at 12:22 PM.
   
Reply With Quote
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 500
Join Date: Sep 2007
Location: Austin, Texas
Default 08-27-2015, 11:07 AM

I don't see any errors. You might want to add a few more specifics regarding the problem.
It can definitely gen errors if you try to remove an object that is referenced in the code somewhere.
Did you try to add/remove while running it on your computer?
   
Reply With Quote
Old
wbarnum
Member
 
Status: Offline
Posts: 20
Join Date: Jun 2015
Default 08-27-2015, 12:21 PM

Quote:
Originally Posted by MrMoke View Post
I don't see any errors. You might want to add a few more specifics regarding the problem.
It can definitely gen errors if you try to remove an object that is referenced in the code somewhere.
Did you try to add/remove while running it on your computer?
Thank you for looking at it MrMoke.

It is adding or removing blocks of code that causes the problem.

I have uploaded a screen recording of the error occurring:
https://www.youtube.com/watch?v=5AKG8Ks8eAk
   
Reply With Quote
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 500
Join Date: Sep 2007
Location: Austin, Texas
Default 08-27-2015, 02:22 PM

OK- That is a little strange. As I said earlier, I ran it on my machine Win7/x64 and found no problems when adding, moving, or removing code blocks.
If it's a problem with a specific machine, then it is sometimes recommended to delete, and reinstall Alice3 as a possible fix. This shouldn't affect the world files , as they should be stored in a different location anyway.

Note: If nothing works, the error submission allows both the error, and source, to be uploaded to the Alice team for review.
   
Reply With Quote
Old
wbarnum
Member
 
Status: Offline
Posts: 20
Join Date: Jun 2015
Default 08-28-2015, 06:24 PM

Quote:
Originally Posted by MrMoke View Post
OK- That is a little strange. As I said earlier, I ran it on my machine Win7/x64 and found no problems when adding, moving, or removing code blocks.
I tried it on three differently configured machines and encountered the same problem.

Can I ask you what version of Java you are using? I just discovered found this which seems to indicate that newer versions can cause problems.
   
Reply With Quote
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 500
Join Date: Sep 2007
Location: Austin, Texas
Default 08-28-2015, 10:37 PM

Image of details is attached. Looks like 7 in my Java folder, but I also have JDK1.8.0 and jdk1.8.0_05 in there.

The Alice3 jre folder has 8.0.31.13

If I goto cmd and keyin c:\>java -version, I get 1.8.0_51

Crazy! Looks like someone needs to do a little cleaning. :-)
Attached Images
File Type: jpg JavaVersion.jpg (11.0 KB, 16 views)
File Type: jpg AliceJavaVersion.jpg (11.9 KB, 16 views)

Last edited by MrMoke; 08-29-2015 at 10:01 AM.
   
Reply With Quote
Old
wbarnum
Member
 
Status: Offline
Posts: 20
Join Date: Jun 2015
Default 08-29-2015, 09:47 PM

Just in case anybody else comes across this thread while trying to solve their own problems, I am adding updates.

I found that I can successfully delete blocks of code, by right-clicking and then selecting delete. If I try to drag blogs off screen to delete them, the program crashes.

I recently found that if I delete the block that is marked in the screen grab, everything will begin to operate normally again, though I don't know why.
Attached Images
File Type: jpg Jack and the Beanstalk(Buggy).jpg (94.9 KB, 15 views)
   
Reply With Quote
Workaround to crashing when adding code
Old
BruceRegittko
Junior Member
 
Status: Offline
Posts: 1
Join Date: Dec 2012
Location: North Carolina, USA
Lightbulb Workaround to crashing when adding code - 04-19-2016, 12:33 PM

I had someone send me a program that had this same issue and was able to reproduce it on my system. As a workaround I renamed the jre folder in the Alice3 installation and created a shortcut named jre to the jre folder in my JDK, which is version 1.8.0_51. I am now able to drag tiles in and out of the code area. Putting things back the way they were causes the bug to reappear.

I submitted a bug report so hopefully the next version of Alice will have a newer JRE.

Quote:
Originally Posted by MrMoke View Post
Image of details is attached. Looks like 7 in my Java folder, but I also have JDK1.8.0 and jdk1.8.0_05 in there.

The Alice3 jre folder has 8.0.31.13

If I goto cmd and keyin c:\>java -version, I get 1.8.0_51

Crazy! Looks like someone needs to do a little cleaning. :-)


Principal Instructor at Oracle Academy
academy.oracle.com
   
Reply With Quote
Reply

Tags
crash, error, exception

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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.