Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown while loading save file #111

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 5 comments
Open

Exception thrown while loading save file #111

GoogleCodeExporter opened this issue Mar 14, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Load attached log file.

What is the expected output? What do you see instead?

I generated this log file from mc4d-4.0.181.jar, and this is what I see on the 
console when I try to load it:

$ java -jar mc4d-4.0.181.jar
version 1.6.0_31
Launch dir: C:\Users\Jeremy\My Dropbox\Cubing\software\mc4d
java.lang.IllegalArgumentException: applyTwistToState called on gripIndex 53 
which does not rotate!
        at com.superliminal.magiccube4d.PolytopePuzzleDescription.applyTwistToState(PolytopePuzzleDescription.java:1320)
        at com.superliminal.magiccube4d.MC4DSwing.initPuzzle(MC4DSwing.java:936)
        at com.superliminal.magiccube4d.MC4DSwing.<init>(MC4DSwing.java:681)
        at com.superliminal.magiccube4d.MC4DSwing$27.run(MC4DSwing.java:1299)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


What version of the product are you using? On what operating system?

I'm running version 4.0.181 on Windows 7.

Original issue reported on code.google.com by jeremyfl...@gmail.com on 8 May 2012 at 5:28

@GoogleCodeExporter
Copy link
Author

Forgot to attach file!

Original comment by jeremyfl...@gmail.com on 8 May 2012 at 5:30

Attachments:

@GoogleCodeExporter
Copy link
Author

Hi Jeremy,

I haven't been able to reproduce this with the latest download, version 
4.0.185.  I'm able to load your file, and undo through all the moves.

Can you try and see if this is still an issue?

Original comment by roi...@gmail.com on 8 Jun 2012 at 4:55

@GoogleCodeExporter
Copy link
Author

I just tried this on 4.0.185, and I'm seeing the same behavior:

C:\Users\Jeremy\Downloads>java -jar mc4d-4.0.185.jar
version 1.6.0_23
Launch dir: C:\Users\Jeremy\Downloads
java.lang.IllegalArgumentException: applyTwistToState called on gripIndex 53 
which does not rotate!
        at com.superliminal.magiccube4d.PolytopePuzzleDescription.applyTwistToState(PolytopePuzzleDescription.java:1320)
        at com.superliminal.magiccube4d.MC4DSwing.initPuzzle(MC4DSwing.java:995)
        at com.superliminal.magiccube4d.MC4DSwing.<init>(MC4DSwing.java:740)
        at com.superliminal.magiccube4d.MC4DSwing$27.run(MC4DSwing.java:1371)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Original comment by jeremyfl...@gmail.com on 23 Oct 2012 at 10:23

@GoogleCodeExporter
Copy link
Author

Works fine for me loading your delight.log into the latest version of MC4D 
(4.0.185). Version 4.0.181 that you are using does crash for me but for a very 
different reason. Please try version 4.0.185.

Original comment by cutelyaw...@gmail.com on 23 Oct 2012 at 8:53

@GoogleCodeExporter
Copy link
Author

Did you see the terminal session I pasted? I *am* running mc4d-4.0.185.jar.

I just tried this again. Here's me running "java -jar mc4d-4.0.185.jar" at a 
terminal:

C:\Users\Jeremy\Downloads>java -jar mc4d-4.0.185.jar
version 1.6.0_23
Launch dir: C:\Users\Jeremy\Downloads
java.lang.IllegalArgumentException: applyTwistToState called on gripIndex 53 
which does not rotate!
        at com.superliminal.magiccube4d.PolytopePuzzleDescription.applyTwistToState(PolytopePuzzleDescription.java:1320)
        at com.superliminal.magiccube4d.MC4DSwing.initPuzzle(MC4DSwing.java:995)
        at com.superliminal.magiccube4d.MC4DSwing.<init>(MC4DSwing.java:740)
        at com.superliminal.magiccube4d.MC4DSwing$27.run(MC4DSwing.java:1371)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

The name of the jar file I'm using is mc4d-4.0.185.jar. The "version 1.6.0_23" 
string corresponds to the version of java I'm running.

C:\Users\Jeremy\Downloads>java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)


If it wasn't clear from the fact that I pasted output from the command prompt, 
the mc4d gui loads just fine, however it only did some fraction of all the 
turns in my log file. I believe the issue is that it stops fastforwarding my 
cube once mc4d barfs on gripIndex 53 (which you can see in the traceback I've 
included)

Original comment by jeremyfl...@gmail.com on 23 Oct 2012 at 9:05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant