It is currently 21 May 2025, 02:06
   
Text Size

Bug Reports (snapshot builds)

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Bug Reports (snapshot builds)

Postby drdev » 27 Aug 2013, 19:29

Rob Cashwalker wrote:
spr wrote:
Diogenes wrote:Tabs are not properly cleaned up between games...
I am kind of in this area at the moment so can take a look at some of these problems. I have opened a new issue in the tracker (http://www.cardforge.org/bugz/view.php?id=731).
Also noticed the scroll bar buttons for the home screen show up in the bazaar.
I can investigate that one since I introduced the scroll buttons.
drdev
Programmer
 
Posts: 1958
Joined: 27 Jul 2013, 02:07
Has thanked: 189 times
Been thanked: 565 times

Re: Bug Reports (snapshot builds)

Postby spr » 27 Aug 2013, 21:31

drdev wrote:I can investigate that one since I introduced the scroll buttons.
OK, thanks.
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 28 Aug 2013, 01:48

r23038

I have Teferi's Puzzle Box, but when it triggers for my opponent, I get to choose the order the cards go on the bottom.

Edit: The combat panel doesn't reset at the end of a game/beginning of the next game.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Bug Reports (snapshot builds)

Postby swordshine » 28 Aug 2013, 14:39

Here is a bug affected all cards with Destroy effects and DestroyAll effects (Destroy sth., its controller ...). The controller in the subability is not correct.
I gave AI a creature, cast Control Magic to gain control of it, then cast Afterlife to destroy it. AI got the token instead of me.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Bug found when switching back and forth from editing deck/sb

Postby Phlyghtt79 » 28 Aug 2013, 18:11

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

NullPointerException | Open
Code: Select all
Forge Version:    1.4.6-r22922
Operating System: Windows XP 5.1 x86
Java Version:     1.7.0_25 Oracle Corporation

java.lang.NullPointerException
   at forge.card.CardDb$PredicateExistsInSets.apply(CardDb.java:364)
   at forge.card.CardDb$PredicateExistsInSets.apply(CardDb.java:354)
   at com.google.common.base.Predicates$AndPredicate.apply(Predicates.java:343)
   at com.google.common.base.Predicates$AndPredicate.apply(Predicates.java:343)
   at com.google.common.base.Predicates$OrPredicate.apply(Predicates.java:377)
   at com.google.common.base.Predicates$CompositionPredicate.apply(Predicates.java:536)
   at com.google.common.collect.Iterators$7.computeNext(Iterators.java:702)
   at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
   at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
   at forge.util.Aggregates.uniqueByLast(Aggregates.java:120)
   at forge.gui.deckeditor.tables.EditorTableView.updateView(EditorTableView.java:484)
   at forge.gui.deckeditor.tables.EditorTableView.setDeckImpl(EditorTableView.java:347)
   at forge.gui.deckeditor.tables.EditorTableView.setDeck(EditorTableView.java:319)
   at forge.gui.deckeditor.controllers.CEditorConstructed.cycleEditorMode(CEditorConstructed.java:260)
   at forge.gui.deckeditor.controllers.CEditorConstructed$2.run(CEditorConstructed.java:322)
   at forge.gui.toolbox.FLabel._doMouseAction(FLabel.java:309)
   at forge.gui.toolbox.FLabel.access$1300(FLabel.java:51)
   at forge.gui.toolbox.FLabel$6.mouseReleased(FLabel.java:355)
   at java.awt.AWTEventMulticaster.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$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)
Phlyghtt79
 
Posts: 6
Joined: 28 Aug 2013, 18:05
Has thanked: 0 time
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby swordshine » 29 Aug 2013, 05:44

Cards with BecomesTarget triggers don't work when a spell redirects targets to them.
swordshine
 
Posts: 682
Joined: 11 Jul 2010, 02:37
Has thanked: 116 times
Been thanked: 87 times

Re: Bug Reports (snapshot builds)

Postby xbon » 31 Aug 2013, 15:18

r22055,
Mirror Entity does not cause all the creatures you control to become X/X and Changeling, only itself.

tried it again later and it worked; seems like it doesn't affect artifact creatures though.
xbon
 
Posts: 124
Joined: 04 Jun 2013, 22:52
Has thanked: 18 times
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby Rob Cashwalker » 01 Sep 2013, 01:53

Playing quest (again)

My Sai of the Shinobi just disappeared after being trigger-attached to a creature that got countered. Creature is in the graveyard, Sai is just gone.

But after playing another creature, the trigger came up. Accept it, and the Sai is now back.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 01 Sep 2013, 04:20

Rob Cashwalker wrote:Playing quest (again)

My Sai of the Shinobi just disappeared after being trigger-attached to a creature that got countered. Creature is in the graveyard, Sai is just gone.
That doesn't make sense. If it got countered, it wouldn't have entered the battlefield at all.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Bug Reports (snapshot builds)

Postby Rob Cashwalker » 01 Sep 2013, 13:16

That doesn't make sense. If it got countered, it wouldn't have entered the battlefield at all.
What can I tell ya.. the trigger shows up before the card actually shows up on the battlefield.. Same with Lys Alana Huntmaster (also in play at the time) - trigger to create an elf token shows up before the triggering elf appears on the battlefield. In fact, the elf I wanted the Sai to attach to was the same elf that was triggering the Huntmaster... (edit: OK, the trigger for Huntmaster is the creature being cast, not entering the battlefield, so it makes sense...)
I assume that it's just a delay in graphics update, but I really don't know what's going on internally anymore.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Bug Reports (snapshot builds)

Postby xbon » 03 Sep 2013, 17:59

Description: Used Dimir Machinations to banish 2 cards on top of opp's library, then cancelled on the last to put on top; however, as soon as cancel was pressed, this popped up.

IndexOutOfBoundsException | Open
Code: Select all
Forge Version:    r23088
Operating System: Windows 8 6.2 x86
Java Version:     1.7.0_25 Oracle Corporation

java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
   at java.util.concurrent.CopyOnWriteArrayList.add(Unknown Source)
   at forge.game.zone.Zone.add(Zone.java:98)
   at forge.game.GameAction.changeZone(GameAction.java:241)
   at forge.game.GameAction.moveTo(GameAction.java:418)
   at forge.card.ability.effects.DigEffect.resolve(DigEffect.java:281)
   at forge.card.ability.SpellApiBased.resolve(SpellApiBased.java:54)
   at forge.card.ability.AbilityUtils.resolveApiAbility(AbilityUtils.java:1087)
   at forge.card.ability.AbilityUtils.resolve(AbilityUtils.java:1069)
   at forge.game.zone.MagicStack.resolveStack(MagicStack.java:520)
   at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:987)
   at forge.game.GameAction.startGame(GameAction.java:1491)
   at forge.game.Match$1.run(Match.java:103)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Another thing; if you equip an opponents card with Spirit Link, they'll still attack, even though the damage they do will just be returned to you as life.
xbon
 
Posts: 124
Joined: 04 Jun 2013, 22:52
Has thanked: 18 times
Been thanked: 2 times

Re: Bug Reports (snapshot builds)

Postby chahlee » 04 Sep 2013, 01:01

Description: Attempted to use Mayael the Anima to look at top five cards of my library - immediately after tapping the required mana, and the ability was put on the stack, I got the crash.

IndexOutOfBoundsException | Open
Code: Select all
Forge Version:    1.4.8-SNAPSHOT-r23088
Operating System: Windows Vista 6.0 x86
Java Version:     1.7.0_25 Oracle Corporation

java.lang.IndexOutOfBoundsException: Index: -1, Size: 11
   at java.util.concurrent.CopyOnWriteArrayList.add(Unknown Source)
   at forge.game.zone.Zone.add(Zone.java:98)
   at forge.game.zone.PlayerZoneBattlefield.add(PlayerZoneBattlefield.java:62)
   at forge.game.GameAction.changeZone(GameAction.java:241)
   at forge.game.GameAction.moveTo(GameAction.java:418)
   at forge.card.ability.effects.DigEffect.resolve(DigEffect.java:281)
   at forge.card.ability.AbilityApiBased.resolve(AbilityApiBased.java:62)
   at forge.card.ability.AbilityUtils.resolveApiAbility(AbilityUtils.java:1087)
   at forge.card.ability.AbilityUtils.resolve(AbilityUtils.java:1069)
   at forge.game.zone.MagicStack.resolveStack(MagicStack.java:520)
   at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:987)
   at forge.game.GameAction.startGame(GameAction.java:1491)
   at forge.game.Match$1.run(Match.java:103)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
chahlee
 
Posts: 2
Joined: 04 Sep 2013, 00:52
Has thanked: 0 time
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby chahlee » 04 Sep 2013, 01:09

More info re: previous post about Mayael the Anima... I was able to choose a valid card that was among the 5 cards on the top of the library. The card was Worldspine Wurm and as I selected the card and it went on the stack to resolve (to be put on the battlefield) - the pending action was displayed and the "Click OK to resolve" requestor was displayed and then the crash occurred.
chahlee
 
Posts: 2
Joined: 04 Sep 2013, 00:52
Has thanked: 0 time
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby friarsol » 04 Sep 2013, 02:26

r23095

Looks like the same issue as reported below. AI casts Mulch, but as it resolves I get this crash:
Mulch Crash | Open
Game-0 > java.lang.IndexOutOfBoundsException: Index: -1, Size: 4
at java.util.concurrent.CopyOnWriteArrayList.add(CopyOnWriteArrayList.java:443)
at forge.game.zone.Zone.add(Zone.java:98)
at forge.game.GameAction.changeZone(GameAction.java:241)
at forge.game.GameAction.moveTo(GameAction.java:418)
at forge.card.ability.effects.DigEffect.resolve(DigEffect.java:281)
at forge.card.ability.SpellApiBased.resolve(SpellApiBased.java:54)
at forge.card.ability.AbilityUtils.resolveApiAbility(AbilityUtils.java:1087)
at forge.card.ability.AbilityUtils.resolve(AbilityUtils.java:1069)
at forge.game.zone.MagicStack.resolveStack(MagicStack.java:520)
at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:987)
at forge.game.GameAction.startGame(GameAction.java:1491)
at forge.game.Match$1.run(Match.java:103)
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:722)


Edit: This is fixed. Shouldn't be using library position for non-library zones.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Bug Reports (snapshot builds)

Postby spr » 04 Sep 2013, 03:43

Selected Variant -> Commander, one opponent. Click Start.

Both Human and Opponent1 tabs contain a deck list with a single entry - "Random".

IllegalArgumentException | Open
Code: Select all
Forge Version:    r23097
Operating System: Windows 7 6.1 amd64
Java Version:     1.7.0_25 Oracle Corporation

java.lang.IllegalArgumentException: n must be positive
   at java.util.Random.nextInt(Unknown Source)
   at forge.gui.home.variant.CSubmenuCommander.startGame(CSubmenuCommander.java:91)
   at forge.gui.home.variant.CSubmenuCommander.access$3(CSubmenuCommander.java:80)
   at forge.gui.home.variant.CSubmenuCommander$2.actionPerformed(CSubmenuCommander.java:62)
   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$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)
Cheers,
Steve
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 34 guests


Who is online

In total there are 34 users online :: 0 registered, 0 hidden and 34 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 34 guests

Login Form