Page 171 of 487

Re: Bug Reports (snapshot builds)

PostPosted: 03 Dec 2013, 21:51
by lujo
Description: This one happened when I let a Mana Tithe resolve to counter my Bone Shredder.

NullPointerException | Open
Code: Select all
Forge Version:    1.5.7-SNAPSHOT-r${forge.revision}${forge.specialStatus} (mixed revisions detected; please update from the root directory)
Operating System: Windows XP 5.1 x86
Java Version:     1.7.0_17 Oracle Corporation

java.lang.NullPointerException
   at forge.ai.ComputerUtilMana.adjustManaCostToAvoidNegEffects(ComputerUtilMana.java:345)
   at forge.ai.ComputerUtilMana.payManaCost(ComputerUtilMana.java:101)
   at forge.ai.ComputerUtilMana.canPayManaCost(ComputerUtilMana.java:54)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:317)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:314)
   at forge.util.Evaluator.run(Evaluator.java:8)
   at forge.game.player.Player.runWithController(Player.java:2953)
   at forge.gui.input.InputPayMana.runAsAi(InputPayMana.java:55)
   at forge.gui.input.InputPayMana.updateMessage(InputPayMana.java:320)
   at forge.gui.input.InputPayMana$4.run(InputPayMana.java:355)
   at forge.FThreads.invokeInEdtNowOrLater(FThreads.java:46)
   at forge.gui.input.InputPayMana.onStateChanged(InputPayMana.java:352)
   at forge.gui.input.InputPayMana.showMessage(InputPayMana.java:343)
   at forge.gui.input.InputBase.showMessageInitial(InputBase.java:50)
   at forge.gui.InputProxy$1.run(InputProxy.java:69)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(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.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)

Re: Bug Reports (snapshot builds)

PostPosted: 03 Dec 2013, 23:02
by lujo
Both bugs had something weird happen - the game "took over" after them Instead of truly crashing, the AI started playing everything for me.

Re: Bug Reports (snapshot builds)

PostPosted: 03 Dec 2013, 23:26
by lujo
Description: Again, what was supposed to happen next was me paying echo for Bone Shredder and the crash report came up. Whe I pressed "close", instead of crashing, the game took over and played the match out for me. It still prompted me to make the "yes/no decisions" and I even won.

NullPointerException | Open
Code: Select all
Forge Version:    1.5.7-SNAPSHOT-r${forge.revision}${forge.specialStatus} (mixed revisions detected; please update from the root directory)
Operating System: Windows XP 5.1 x86
Java Version:     1.7.0_17 Oracle Corporation

java.lang.NullPointerException
   at forge.ai.ComputerUtilMana.adjustManaCostToAvoidNegEffects(ComputerUtilMana.java:345)
   at forge.ai.ComputerUtilMana.payManaCost(ComputerUtilMana.java:101)
   at forge.ai.ComputerUtilMana.canPayManaCost(ComputerUtilMana.java:54)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:317)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:314)
   at forge.util.Evaluator.run(Evaluator.java:8)
   at forge.game.player.Player.runWithController(Player.java:2953)
   at forge.gui.input.InputPayMana.runAsAi(InputPayMana.java:55)
   at forge.gui.input.InputPayMana.updateMessage(InputPayMana.java:320)
   at forge.gui.input.InputPayMana$4.run(InputPayMana.java:355)
   at forge.FThreads.invokeInEdtNowOrLater(FThreads.java:46)
   at forge.gui.input.InputPayMana.onStateChanged(InputPayMana.java:352)
   at forge.gui.input.InputPayMana.showMessage(InputPayMana.java:343)
   at forge.gui.input.InputBase.showMessageInitial(InputBase.java:50)
   at forge.gui.InputProxy$1.run(InputProxy.java:69)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(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.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)

Re: Bug Reports (snapshot builds)

PostPosted: 04 Dec 2013, 01:35
by drdev
The reason the AI took over is your player is given a temporary human controller and when the exception is thrown, the old controller is never restored.

I've fixed that in r23870 by trapping any exception thrown while running as AI and ensuring the old controller is restored before re-throwing the exception.

I've also figured out the underlying cause of these reported exceptions is a SpellAbility with no source card, which suggests a bigger problem I'm currently investigating.

EDIT: I fixed the underlying issue in r23872.

Re: Bug Reports (snapshot builds)

PostPosted: 04 Dec 2013, 10:15
by swordshine
AI cast Hinder to counter my Peek, I got such an NPE(r23876):
NPE | Open
Game-0 > java.lang.NullPointerException
at forge.game.player.PlayerControllerHuman.mayBeYou(PlayerControllerHuman.java:797)
at forge.game.player.PlayerControllerHuman.formatNotificationMessage(PlayerControllerHuman.java:792)
at forge.game.player.PlayerControllerHuman.notifyOfValue(PlayerControllerHuman.java:770)
at forge.game.GameAction.nofityOfValue(GameAction.java:1432)
at forge.game.player.PlayerControllerAi.chooseSomeType(PlayerControllerAi.java:326)
at forge.game.ability.effects.CounterEffect.removeFromStack(CounterEffect.java:158)
at forge.game.ability.effects.CounterEffect.resolve(CounterEffect.java:107)
at forge.game.ability.SpellApiBased.resolve(SpellApiBased.java:56)
at forge.game.ability.AbilityUtils.resolveApiAbility(AbilityUtils.java:1112)
at forge.game.ability.AbilityUtils.resolve(AbilityUtils.java:1094)
at forge.game.zone.MagicStack.resolveStack(MagicStack.java:574)
at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:1008)
at forge.game.GameAction.startGame(GameAction.java:1468)
at forge.game.Match$1.run(Match.java:118)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

Re: Bug Reports (snapshot builds)

PostPosted: 04 Dec 2013, 21:11
by lujo
Description: I was going to let a Runeboggle counter my Parallax Nexus and the game crashed.

NullPointerException | Open
Code: Select all
Forge Version:    1.5.7-SNAPSHOT-r${forge.revision}${forge.specialStatus} (mixed revisions detected; please update from the root directory)
Operating System: Windows XP 5.1 x86
Java Version:     1.7.0_17 Oracle Corporation

java.lang.NullPointerException
   at forge.ai.ComputerUtilMana.adjustManaCostToAvoidNegEffects(ComputerUtilMana.java:345)
   at forge.ai.ComputerUtilMana.payManaCost(ComputerUtilMana.java:101)
   at forge.ai.ComputerUtilMana.canPayManaCost(ComputerUtilMana.java:54)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:317)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:314)
   at forge.util.Evaluator.run(Evaluator.java:8)
   at forge.game.player.Player.runWithController(Player.java:2953)
   at forge.gui.input.InputPayMana.runAsAi(InputPayMana.java:55)
   at forge.gui.input.InputPayMana.updateMessage(InputPayMana.java:320)
   at forge.gui.input.InputPayMana$4.run(InputPayMana.java:355)
   at forge.FThreads.invokeInEdtNowOrLater(FThreads.java:46)
   at forge.gui.input.InputPayMana.onStateChanged(InputPayMana.java:352)
   at forge.gui.input.InputPayMana.showMessage(InputPayMana.java:343)
   at forge.gui.input.InputBase.showMessageInitial(InputBase.java:50)
   at forge.gui.InputProxy$1.run(InputProxy.java:69)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(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.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)

Re: Bug Reports (snapshot builds)

PostPosted: 05 Dec 2013, 00:06
by drdev
lujo wrote:Description: I was going to let a Runeboggle counter my Parallax Nexus and the game crashed.

NullPointerException | Open
Code: Select all
Forge Version:    1.5.7-SNAPSHOT-r${forge.revision}${forge.specialStatus} (mixed revisions detected; please update from the root directory)
Operating System: Windows XP 5.1 x86
Java Version:     1.7.0_17 Oracle Corporation

java.lang.NullPointerException
   at forge.ai.ComputerUtilMana.adjustManaCostToAvoidNegEffects(ComputerUtilMana.java:345)
   at forge.ai.ComputerUtilMana.payManaCost(ComputerUtilMana.java:101)
   at forge.ai.ComputerUtilMana.canPayManaCost(ComputerUtilMana.java:54)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:317)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:314)
   at forge.util.Evaluator.run(Evaluator.java:8)
   at forge.game.player.Player.runWithController(Player.java:2953)
   at forge.gui.input.InputPayMana.runAsAi(InputPayMana.java:55)
   at forge.gui.input.InputPayMana.updateMessage(InputPayMana.java:320)
   at forge.gui.input.InputPayMana$4.run(InputPayMana.java:355)
   at forge.FThreads.invokeInEdtNowOrLater(FThreads.java:46)
   at forge.gui.input.InputPayMana.onStateChanged(InputPayMana.java:352)
   at forge.gui.input.InputPayMana.showMessage(InputPayMana.java:343)
   at forge.gui.input.InputBase.showMessageInitial(InputBase.java:50)
   at forge.gui.InputProxy$1.run(InputProxy.java:69)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(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.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)
This looks like the issue I just mentioned fixing in r23872 above. Updating your local checkout should fix this.

Re: Bug Reports (snapshot builds)

PostPosted: 05 Dec 2013, 08:27
by oskarolw
Description: I played a spell with a mix of mana from Elvish Spirit Guide, Simian Spirit Guide, Lotus Petal and Chrome Mox
r23889

IllegalStateException | Open
Code: Select all
Forge Version:    SVN
Operating System: Windows 7 6.1 x86
Java Version:     1.7.0_45 Oracle Corporation

java.lang.IllegalStateException: forge.game.GameAction.moveTo may not be accessed from the event dispatch thread.
   at forge.FThreads.assertExecutedByEdt(FThreads.java:29)
   at forge.game.GameAction.moveTo(GameAction.java:393)
   at forge.game.GameAction.moveTo(GameAction.java:389)
   at forge.game.GameAction.moveToGraveyard(GameAction.java:510)
   at forge.game.GameAction.sacrificeDestroy(GameAction.java:1374)
   at forge.game.GameAction.sacrifice(GameAction.java:1217)
   at forge.game.cost.CostSacrifice.doPayment(CostSacrifice.java:178)
   at forge.game.cost.CostPartWithList.executePayment(CostPartWithList.java:96)
   at forge.game.cost.CostPartWithList.executePayment(CostPartWithList.java:108)
   at forge.game.cost.CostPartWithList.payAI(CostPartWithList.java:125)
   at forge.game.cost.CostPayment.payComputerCosts(CostPayment.java:190)
   at forge.ai.ComputerUtilMana.payManaCost(ComputerUtilMana.java:208)
   at forge.ai.ComputerUtilMana.payManaCost(ComputerUtilMana.java:58)
   at forge.gui.input.InputPayMana$2.run(InputPayMana.java:294)
   at forge.game.player.Player.runWithController(Player.java:2955)
   at forge.gui.input.InputPayMana.runAsAi(InputPayMana.java:283)
   at forge.gui.input.InputPayMana.onOk(InputPayMana.java:297)
   at forge.gui.input.InputBase.selectButtonOK(InputBase.java:70)
   at forge.gui.InputProxy.selectButtonOK(InputProxy.java:83)
   at forge.gui.match.controllers.CPrompt$2.actionPerformed(CPrompt.java:61)
   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$Actions.actionPerformed(Unknown Source)
   at javax.swing.SwingUtilities.notifyAction(Unknown Source)
   at javax.swing.JComponent.processKeyBinding(Unknown Source)
   at javax.swing.JComponent.processKeyBindings(Unknown Source)
   at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
   at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
   at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
   at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
   at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(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$200(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)

Re: Bug Reports (snapshot builds)

PostPosted: 05 Dec 2013, 08:31
by oskarolw
r23889, Sutured Ghoul exiles entire graveyard no matter what creatures are selected.

Re: Bug Reports (snapshot builds)

PostPosted: 05 Dec 2013, 09:09
by oskarolw
r23889
Description: AI attacking me with an Ash Zealot (played in first mainphase) and a Firedrinker Satyr

ConcurrentModificationException | Open
Code: Select all
Forge Version:    SVN
Operating System: Windows 7 6.1 x86
Java Version:     1.7.0_45 Oracle Corporation

java.util.ConcurrentModificationException
   at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
   at java.util.ArrayList$Itr.next(Unknown Source)
   at com.google.common.collect.AbstractMapBasedMultimap$Itr.next(AbstractMapBasedMultimap.java:1150)
   at forge.game.combat.Combat.getAttackers(Combat.java:197)
   at forge.gui.match.TargetingOverlay.assembleArcs(TargetingOverlay.java:243)
   at forge.gui.match.TargetingOverlay.access$4(TargetingOverlay.java:80)
   at forge.gui.match.TargetingOverlay$OverlayPanel.paintComponent(TargetingOverlay.java:350)
   at javax.swing.JComponent.paint(Unknown Source)
   at javax.swing.JComponent.paintChildren(Unknown Source)
   at javax.swing.JComponent.paint(Unknown Source)
   at javax.swing.JLayeredPane.paint(Unknown Source)
   at javax.swing.JComponent.paintChildren(Unknown Source)
   at javax.swing.JComponent.paint(Unknown Source)
   at javax.swing.JLayeredPane.paint(Unknown Source)
   at javax.swing.JComponent.paintChildren(Unknown Source)
   at javax.swing.JComponent.paint(Unknown Source)
   at javax.swing.JComponent.paintToOffscreen(Unknown Source)
   at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
   at javax.swing.RepaintManager.paint(Unknown Source)
   at javax.swing.JComponent._paintImmediately(Unknown Source)
   at javax.swing.JComponent.paintImmediately(Unknown Source)
   at javax.swing.RepaintManager$3.run(Unknown Source)
   at javax.swing.RepaintManager$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
   at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
   at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
   at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
   at javax.swing.RepaintManager.access$1100(Unknown Source)
   at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(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.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)

Re: Bug Reports (snapshot builds)

PostPosted: 05 Dec 2013, 09:15
by oskarolw
Description: I had played and activated Mindslaver, this caused the window-layout to remove the playing-fields, player-information etc. and only left Player Hand and AI hand tabs. I then selected the "Dock" tab at the bottom left and tried the "refresh the layout"-button. Crash.
r23889

InvalidLayoutFileException | Open
Code: Select all
Forge Version:    SVN
Operating System: Windows 7 6.1 x86
Java Version:     1.7.0_45 Oracle Corporation

forge.gui.framework.InvalidLayoutFileException
   at forge.gui.framework.SLayoutIO.loadLayout(SLayoutIO.java:355)
   at forge.gui.match.controllers.CDock$1.run(CDock.java:95)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(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.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)

Re: Bug Reports (snapshot builds)

PostPosted: 05 Dec 2013, 14:48
by lujo
Description: I payed the initial cost for a multikicker card, Joraga War-caller, and the game wouldn't let me pay the kicker (or in fact do anything) and instead kept locked while it asked me to pay the original price untill I pressed "cancel". Then the game "took over".

NullPointerException | Open
Code: Select all
Forge Version:    1.5.7-SNAPSHOT-r${forge.revision}${forge.specialStatus} (mixed revisions detected; please update from the root directory)
Operating System: Windows XP 5.1 x86
Java Version:     1.7.0_17 Oracle Corporation

java.lang.NullPointerException
   at forge.ai.ComputerUtilMana.adjustManaCostToAvoidNegEffects(ComputerUtilMana.java:345)
   at forge.ai.ComputerUtilMana.payManaCost(ComputerUtilMana.java:101)
   at forge.ai.ComputerUtilMana.canPayManaCost(ComputerUtilMana.java:54)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:317)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:314)
   at forge.util.Evaluator.run(Evaluator.java:8)
   at forge.game.player.Player.runWithController(Player.java:2953)
   at forge.gui.input.InputPayMana.runAsAi(InputPayMana.java:55)
   at forge.gui.input.InputPayMana.updateMessage(InputPayMana.java:320)
   at forge.gui.input.InputPayMana$4.run(InputPayMana.java:355)
   at forge.FThreads.invokeInEdtNowOrLater(FThreads.java:46)
   at forge.gui.input.InputPayMana.onStateChanged(InputPayMana.java:352)
   at forge.gui.input.InputPayMana.showMessage(InputPayMana.java:343)
   at forge.gui.input.InputBase.showMessageInitial(InputBase.java:50)
   at forge.gui.InputProxy$1.run(InputProxy.java:69)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(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.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)

Re: Bug Reports (snapshot builds)

PostPosted: 05 Dec 2013, 15:01
by drdev
lujo wrote:Description: I payed the initial cost for a multikicker card, Joraga War-caller, and the game wouldn't let me pay the kicker (or in fact do anything) and instead kept locked while it asked me to pay the original price untill I pressed "cancel". Then the game "took over".

NullPointerException | Open
Code: Select all
Forge Version:    1.5.7-SNAPSHOT-r${forge.revision}${forge.specialStatus} (mixed revisions detected; please update from the root directory)
Operating System: Windows XP 5.1 x86
Java Version:     1.7.0_17 Oracle Corporation

java.lang.NullPointerException
   at forge.ai.ComputerUtilMana.adjustManaCostToAvoidNegEffects(ComputerUtilMana.java:345)
   at forge.ai.ComputerUtilMana.payManaCost(ComputerUtilMana.java:101)
   at forge.ai.ComputerUtilMana.canPayManaCost(ComputerUtilMana.java:54)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:317)
   at forge.gui.input.InputPayMana$3.evaluate(InputPayMana.java:314)
   at forge.util.Evaluator.run(Evaluator.java:8)
   at forge.game.player.Player.runWithController(Player.java:2953)
   at forge.gui.input.InputPayMana.runAsAi(InputPayMana.java:55)
   at forge.gui.input.InputPayMana.updateMessage(InputPayMana.java:320)
   at forge.gui.input.InputPayMana$4.run(InputPayMana.java:355)
   at forge.FThreads.invokeInEdtNowOrLater(FThreads.java:46)
   at forge.gui.input.InputPayMana.onStateChanged(InputPayMana.java:352)
   at forge.gui.input.InputPayMana.showMessage(InputPayMana.java:343)
   at forge.gui.input.InputBase.showMessageInitial(InputBase.java:50)
   at forge.gui.InputProxy$1.run(InputProxy.java:69)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(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.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)
If the game took over, I'm guessing you haven't updated your source, as that bug was fixed awhile back. I think the exception you're seeing has also been fixed, but if it's still broken after you update, let me know.

Re: Bug Reports (snapshot builds)

PostPosted: 05 Dec 2013, 15:13
by friarsol
drdev wrote:If the game took over, I'm guessing you haven't updated your source, as that bug was fixed awhile back. I think the exception you're seeing has also been fixed, but if it's still broken after you update, let me know.
I believe lujo is using a snapshot build so he doesn't have any source to update. He needs to grab the most recent snapshot build (assuming one was created after you fixed the bug)

lujo, please make sure to report what version you are using so we can know what the deal is.

Re: Bug Reports (snapshot builds)

PostPosted: 05 Dec 2013, 21:13
by lujo
Ok, np. Err, I'm a bit of an idiot, but where do I find the snapshot directory link? I'm sure I've seen it before but can't seem to find it? It's the last time I ask, I promise.

NVM - dug it up ^^ Ok, I'll post version number in the future.