Page 1 of 1

Forge crashes when I try to start a new game

PostPosted: 25 Apr 2015, 09:28
by tobideck
Hello Magic / Forge community,

I'm a big fan of Forge and enjoy playing greatly. :D
A few days ago my Laptop crashed and after reboot Forge still runs, but every time I try to start a new game it gives me an error message and the game itself does not get created/started. I can continue in Forge to try starting other games, but regardless of the mode (constr./duels) no game ever starts.

This is the top part of the error message (I can post the whole if necessary):
[spoiler=NullPointerException][code]
Forge Version: 1.5.38-r-1
Operating System: Windows 8.1 6.3 amd64
Java Version: 1.8.0_31 Oracle Corporation

Is there a way to fix this?
I don't want to uninstall/reinstall for I want to keep my achievements and decks.
Thanks in advance and sorry it there's a better place on this board to post this :?

Re: Forge crashes when I try to start a new game

PostPosted: 25 Apr 2015, 13:10
by drdev
The full error message would be helpful here if you can provide it. Otherwise it's hard to know what could be going wrong.

Also, you can try reinstalling without worrying about losing your achievements and decks. Those are stored in a separate directory from the application and are not touched when you uninstall.

Re: Forge crashes when I try to start a new game

PostPosted: 26 Apr 2015, 11:23
by tobideck
Okay, so here is the full error message

NullPointerException | Open
Code: Select all
Forge Version:    1.5.38-r-1
Operating System: Windows 8.1 6.3 amd64
Java Version:     1.8.0_31 Oracle Corporation

java.lang.NullPointerException
   at forge.screens.match.VMatchUI.populate(VMatchUI.java:135)
   at forge.screens.match.CMatchUI.updatePlayerControl(CMatchUI.java:626)
   at forge.screens.match.CMatchUI.initialize(CMatchUI.java:538)
   at forge.control.FControl.setCurrentScreen(FControl.java:308)
   at forge.control.FControl.setCurrentScreen(FControl.java:272)
   at forge.screens.match.CMatchUI.openView(CMatchUI.java:802)
   at forge.match.HostedMatch.startGame(HostedMatch.java:185)
   at forge.match.HostedMatch.startMatch(HostedMatch.java:118)
   at forge.match.HostedMatch.startMatch(HostedMatch.java:83)
   at forge.match.GameLobby.startGame(GameLobby.java:431)
   at forge.screens.home.VLobby$2.actionPerformed(VLobby.java:188)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown 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.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(Unknown Source)
   at java.awt.LightweightDispatcher.dispatchEvent(Unknown 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.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$500(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$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)
Thanks for taking a look!

Re: Forge crashes when I try to start a new game

PostPosted: 26 Apr 2015, 14:31
by drdev
Could you be more specific about what type of game you're trying to start?

Re: Forge crashes when I try to start a new game

PostPosted: 26 Apr 2015, 16:48
by tobideck
In the specific case that produced above message I tried to start a game of constructed Tiny Leaders with a self-constructed deck.

But an error message appears regardless of the type of game that I try to start. I tried to start a game of constructed, draft and duels using preconstructed as well as self-constructed decks and they all give me this kind of error message.
(I did not check if the error messages are 100% the same as I can't read/understand them properly, unfortunately)

Re: Forge crashes when I try to start a new game

PostPosted: 29 Apr 2015, 14:18
by tobideck
I don't really know what gets stored where with Forge but I found the local and roaming appData folders containing my decks, achievements and the like.

After having found them I deleted the folder where my Forge.exe and jar executable were in (forge-gui-desktop-1.5.38).
Then I extracted Forge again from the downloaded zip file and started it again. While the program ran it unfortunately showed the same error again - not starting any games and giving the error message (nullpointerexception) that I have posted above. Any clue how to solve this?

Re: Forge crashes when I try to start a new game

PostPosted: 30 Apr 2015, 07:03
by elcnesh
I suggest moving to a newer snapshot version from: http://www.krazyweb.net/forge/ (just take the latest)

Not sure what goes wrong here, but a LOT has changed since the code of the latest release, might just fix things :)

Re: Forge crashes when I try to start a new game

PostPosted: 30 Apr 2015, 15:11
by tobideck
Thanks for the advice!

I downloaded the snapshot (forge-gui-desktop-1.5.39-SNAPSHOT-r29315.tar.bz2) and after unzipping the programm runs but yields the same error message when I try to start a game! :?

I just post the most recent one here, maybe there's a difference that i can't spot?

Description: [describe what you were doing when the crash occurred]

NullPointerException | Open
Code: Select all
Forge Version:    1.5.39-SNAPSHOT-r-1u
Operating System: Windows 8.1 6.3 amd64
Java Version:     1.8.0_31 Oracle Corporation

java.lang.NullPointerException
   at forge.screens.match.VMatchUI.populate(VMatchUI.java:119)
   at forge.screens.match.CMatchUI.updatePlayerControl(CMatchUI.java:604)
   at forge.screens.match.CMatchUI.initialize(CMatchUI.java:485)
   at forge.control.FControl.setCurrentScreen(FControl.java:310)
   at forge.control.FControl.setCurrentScreen(FControl.java:274)
   at forge.screens.match.CMatchUI.openView(CMatchUI.java:809)
   at forge.match.HostedMatch.startGame(HostedMatch.java:183)
   at forge.match.HostedMatch.startMatch(HostedMatch.java:116)
   at forge.quest.QuestUtil$2.run(QuestUtil.java:587)
   at forge.FThreads.invokeInEdtNowOrLater(FThreads.java:32)
   at forge.quest.QuestUtil.finishStartingGame(QuestUtil.java:584)
   at forge.quest.QuestUtil.startGame(QuestUtil.java:512)
   at forge.screens.home.quest.CSubmenuDuels$5.actionPerformed(CSubmenuDuels.java:59)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown 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.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(Unknown Source)
   at java.awt.LightweightDispatcher.dispatchEvent(Unknown 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.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$500(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.awt.EventQueue$4.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$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)
Can somebody "read" that error message to me, please?

Re: Forge crashes when I try to start a new game

PostPosted: 30 Apr 2015, 15:15
by friarsol
Have you tried resetting your match layout? viewtopic.php?f=26&t=11720&p=131659#p131659

Re: Forge crashes when I try to start a new game

PostPosted: 30 Apr 2015, 16:17
by tobideck
Wow, okay, that solved it!
Thank you very much! :D