Page 1 of 1

Bug Report: Load Gauntlet crash Forge version 1.5.23-r26900

PostPosted: 04 Aug 2014, 13:29
by shinra
Hi all !

I play with the latest version of Forge on a MAC (Mavericks OS). I use Java 7 and always is fine except launch a custom Gauntlet

I can play with Quick Gauntlet function, I can create a Gauntlet but cannot load it. Forge crashes every time.
I choose custom User decks in order to create the Gauntlet

Here is the error msg:

NullPointerException | Open
Code: Select all
Forge Version:    1.5.23-r26900
Operating System: Mac OS X 10.9.4 x86_64
Java Version:     1.7.0_65 Oracle Corporation

java.lang.NullPointerException
   at forge.game.player.RegisteredPlayer.restoreDeck(RegisteredPlayer.java:177)
   at forge.game.player.RegisteredPlayer.<init>(RegisteredPlayer.java:36)
   at forge.screens.home.gauntlet.CSubmenuGauntletLoad.startGame(CSubmenuGauntletLoad.java:108)
   at forge.screens.home.gauntlet.CSubmenuGauntletLoad.access$000(CSubmenuGauntletLoad.java:28)
   at forge.screens.home.gauntlet.CSubmenuGauntletLoad$1.actionPerformed(CSubmenuGauntletLoad.java:32)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
   at java.awt.Component.processMouseEvent(Component.java:6516)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
   at java.awt.Component.processEvent(Component.java:6281)
   at java.awt.Container.processEvent(Container.java:2229)
   at java.awt.Component.dispatchEventImpl(Component.java:4872)
   at java.awt.Container.dispatchEventImpl(Container.java:2287)
   at java.awt.Component.dispatchEvent(Component.java:4698)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
   at java.awt.Container.dispatchEventImpl(Container.java:2273)
   at java.awt.Window.dispatchEventImpl(Window.java:2719)
   at java.awt.Component.dispatchEvent(Component.java:4698)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:694)
   at java.awt.EventQueue$3.run(EventQueue.java:692)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
   at java.awt.EventQueue$4.run(EventQueue.java:708)
   at java.awt.EventQueue$4.run(EventQueue.java:706)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
That crash appear with the two older versions of Forge too (I discover this soft since a few months only)

Apologies for my English :(

Any idea?

Re: Bug Report: Load Gauntlet crash Forge version 1.5.23-r26

PostPosted: 04 Aug 2014, 15:06
by drdev
This is fixed already and should be available in the next snapshot build. Meanwhile you can simply delete forge.preferences (or clear out any random type decks from the constructed players lines) to get around the bug.

Re: Bug Report: Load Gauntlet crash Forge version 1.5.23-r26

PostPosted: 04 Aug 2014, 16:36
by Chris H.

Re: Bug Report: Load Gauntlet crash Forge version 1.5.23-r26

PostPosted: 07 Aug 2014, 18:26
by shinra
Thanks drdev. I try to clear forge.preferences but the problem still remain

Thanks Chris for your release too. I try it but I have a crash with a different error message...

NullPointerException | Open
Code: Select all
Forge Version:    1.5.24-SNAPSHOT-r26925 (mixed revisions detected; please update from the root directory)
Operating System: Mac OS X 10.9.4 x86_64
Java Version:     1.7.0_65 Oracle Corporation

java.lang.NullPointerException
   at forge.game.player.RegisteredPlayer.restoreDeck(RegisteredPlayer.java:177)
   at forge.game.player.RegisteredPlayer.<init>(RegisteredPlayer.java:36)
   at forge.screens.home.gauntlet.CSubmenuGauntletLoad.startGame(CSubmenuGauntletLoad.java:108)
   at forge.screens.home.gauntlet.CSubmenuGauntletLoad.access$000(CSubmenuGauntletLoad.java:28)
   at forge.screens.home.gauntlet.CSubmenuGauntletLoad$1.actionPerformed(CSubmenuGauntletLoad.java:32)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
   at java.awt.Component.processMouseEvent(Component.java:6516)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
   at java.awt.Component.processEvent(Component.java:6281)
   at java.awt.Container.processEvent(Container.java:2229)
   at java.awt.Component.dispatchEventImpl(Component.java:4872)
   at java.awt.Container.dispatchEventImpl(Container.java:2287)
   at java.awt.Component.dispatchEvent(Component.java:4698)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
   at java.awt.Container.dispatchEventImpl(Container.java:2273)
   at java.awt.Window.dispatchEventImpl(Window.java:2719)
   at java.awt.Component.dispatchEvent(Component.java:4698)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:694)
   at java.awt.EventQueue$3.run(EventQueue.java:692)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
   at java.awt.EventQueue$4.run(EventQueue.java:708)
   at java.awt.EventQueue$4.run(EventQueue.java:706)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
I simply use the dmg and replace old Forge version with the new one, and reboot my Mac for safety. Where I'm doing wrong?

Re: Bug Report: Load Gauntlet crash Forge version 1.5.23-r26

PostPosted: 07 Aug 2014, 18:45
by drdev
Actually, I just saw this last night myself. I must not have fixed the issue for every case. I'll investigate tonight.

Re: Bug Report: Load Gauntlet crash Forge version 1.5.23-r26

PostPosted: 07 Aug 2014, 18:48
by shinra
What a quick answer !! Wow thank you drdev, I appreciate the support :)

Re: Bug Report: Load Gauntlet crash Forge version 1.5.23-r26

PostPosted: 07 Aug 2014, 23:39
by drdev
I just finished committing some enhancements and fixes for gauntlets that includes fixing the crash you're seeing. The problem is that we weren't saving the deck you picked for the gauntlet, and we didn't provide any way to select a deck for an existing gauntlet.

I've alleviated that by fixing it so the deck chosen for quick gauntlets is saved, showing your chosen deck (or "(none)") in a column of the gauntlet loader, and by making it so if you try to start a gauntlet from the Load Gauntlets screen that doesn't have a deck set, you'll be prompted to select one.

For more details about these changes, you can check out this post.

Once a new build is released, please update and let me know if that resolves the issues you were seeing.

Thanks for the feedback.
-Dan

Re: Bug Report: Load Gauntlet crash Forge version 1.5.23-r26

PostPosted: 08 Aug 2014, 15:20
by Chris H.

Re: Bug Report: Load Gauntlet crash Forge version 1.5.23-r26

PostPosted: 08 Aug 2014, 18:57
by shinra
Hi drdev !

I've just try the latest snapshot gave by Chris and awesome! It works perfectly ! :)

I understand your explanation for the error and both of your work are really amazing

Thanks for all and see you soon, not only for bug spying but for all discussions around the Forge community