It is currently 07 Nov 2025, 09:31
   
Text Size

Bug Reports (snapshot builds)

Post MTG Forge Related Programming Questions Here

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

Re: Bug Reports (snapshot builds)

Postby mark » 06 Mar 2013, 18:44

Playing Rampant Growth twice in one turn causes the card selection Window to freeze (it does not draw it's content) the second time. It can be closed though.
mark
 
Posts: 138
Joined: 28 Dec 2011, 11:32
Has thanked: 6 times
Been thanked: 11 times

Re: Bug Reports (snapshot builds)

Postby mark » 06 Mar 2013, 20:48

Description: I attacked with Child of Alara and the AI casts Hydrosurge, does not block, gets one damage, then this exception occured:

NullPointerException | Open
Code: Select all
Forge Version:    1.3.10-SNAPSHOT-r20150
Operating System: Linux 3.9.0-rc1 amd64
Java Version:     1.7.0_13 Oracle Corporation

java.lang.NullPointerException
   at java.util.ArrayList.<init>(ArrayList.java:151)
   at forge.game.phase.Combat.getBlockers(Combat.java:506)
   at forge.gui.match.TargetingOverlay.assembleArcs(TargetingOverlay.java:192)
   at forge.gui.match.TargetingOverlay.access$2(TargetingOverlay.java:79)
   at forge.gui.match.TargetingOverlay$OverlayPanel.paintComponent(TargetingOverlay.java:298)
   at javax.swing.JComponent.paint(JComponent.java:1045)
   at javax.swing.JComponent.paintChildren(JComponent.java:878)
   at javax.swing.JComponent.paint(JComponent.java:1054)
   at javax.swing.JLayeredPane.paint(JLayeredPane.java:585)
   at javax.swing.JComponent.paintChildren(JComponent.java:878)
   at javax.swing.JComponent.paint(JComponent.java:1054)
   at javax.swing.JLayeredPane.paint(JLayeredPane.java:585)
   at javax.swing.JComponent.paintChildren(JComponent.java:878)
   at javax.swing.JComponent.paint(JComponent.java:1054)
   at javax.swing.JComponent.paintToOffscreen(JComponent.java:5212)
   at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:295)
   at javax.swing.RepaintManager.paint(RepaintManager.java:1236)
   at javax.swing.JComponent._paintImmediately(JComponent.java:5160)
   at javax.swing.JComponent.paintImmediately(JComponent.java:4971)
   at javax.swing.RepaintManager$3.run(RepaintManager.java:796)
   at javax.swing.RepaintManager$3.run(RepaintManager.java:784)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:784)
   at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:757)
   at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:706)
   at javax.swing.RepaintManager.access$1000(RepaintManager.java:62)
   at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1651)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:688)
   at java.awt.EventQueue$3.run(EventQueue.java:686)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
   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)
mark
 
Posts: 138
Joined: 28 Dec 2011, 11:32
Has thanked: 6 times
Been thanked: 11 times

Re: Bug Reports (snapshot builds)

Postby Kapoue » 06 Mar 2013, 21:41

Lightning Mauler always soulbonds with my Plant. I guess it always soulbinds with the first creature that entered the battlefield.

Also, Firemane Avenger doesn't trigger his battalion ability.
Kapoue
 
Posts: 66
Joined: 14 Sep 2012, 14:58
Has thanked: 1 time
Been thanked: 0 time

Re: Bug Reports (snapshot builds)

Postby friarsol » 07 Mar 2013, 02:34

Kapoue wrote:Lightning Mauler always soulbonds with my Plant. I guess it always soulbinds with the first creature that entered the battlefield.
I believe someone already fixed that, what version are you using?
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 Agetian » 07 Mar 2013, 04:00

myk wrote:ok, I can reproduce this easily by hitting space a bunch of times quickly when the start button is focused. I'll take care of it.
edit: fixed in r20150
Thanks for the fix, myk! By the way, do you have any ideas about what can be the cause of the card selection window not drawing itself properly from time to time? (at least two reports seem to indicate this problem - one is mine and the other is Mark's related to Rampant Growth - both are just slightly above this post; they appear to be the same issue (or at least similar in their nature) - it happens very rarely to me but when it does happen, it's gamebreaking because it doesn't let you complete the desired effect.

- Agetian
Agetian
Programmer
 
Posts: 3490
Joined: 14 Mar 2011, 05:58
Has thanked: 684 times
Been thanked: 572 times

Re: Bug Reports (snapshot builds)

Postby myk » 07 Mar 2013, 08:19

It has happened to me in the past as well, though I don't remember the specifics. At the time I thought it was due to some other bug that was being squashed by one of the devs. I'll keep an eye out for it.
myk
 
Posts: 439
Joined: 17 Jan 2013, 02:39
Location: California
Has thanked: 38 times
Been thanked: 57 times

Re: Bug Reports (snapshot builds)

Postby FabioFLX » 07 Mar 2013, 10:15

FabioFLX wrote:I've replicated the error of a Computer controlled Frontline Medic countering an Human Aurelia's Fury that hangs the program.
The user interface seems to respond but no buttons are working, even the quit button in the program window or the ESC key.
Does anybody noticed this issue yet? You can easly replicate it because it happens all the times.
User avatar
FabioFLX
 
Posts: 78
Joined: 27 Sep 2011, 13:08
Has thanked: 4 times
Been thanked: 7 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 07 Mar 2013, 13:16

So Max, I see you got rid of the InputMulligan (which is fine, I wasn't that happy with it to begin with), but it doesn't seem like the Mulligan state is being reset on a RestartGameEffect (unless I'm missing something). That means that Karn's Ultimate ability won't let players Mulligan as they should.
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 Max mtg » 07 Mar 2013, 15:00

Even the "update input" thread was recreated on game restart (that should not happen)
So thanks for pointing at this place, sol!
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 07 Mar 2013, 15:04

Found another issue now - it I play first, a card is given on draw step in my 1st turn!!!
Is that an old bug, or did it just appear after my recent changes?
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Bug Reports (snapshot builds)

Postby friarsol » 07 Mar 2013, 15:17

Max mtg wrote:Found another issue now - it I play first, a card is given on draw step in my 1st turn!!!
Is that an old bug, or did it just appear after my recent changes?
Nope that had been working.

Playing first would skip your initial draw (IIRC it was even skipping your whole first draw step, as the rules are written).
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 Chris H. » 07 Mar 2013, 16:56

I played a match using today's snapshot build and noticed that the first time the damage assignment window was displayed that the card pics were not, the second time the damage assignment window was displayed in this same match the card pics were displayed.
 
Attachments
Screen Shot 1st time displayed.jpg
Screen Shot 1st time displayed
Screen Shot 2nd time displayed.jpg
Screen Shot 2nd time displayed
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Bug Reports (snapshot builds)

Postby Agetian » 07 Mar 2013, 19:02

The above-mentioned bug with the contents of dialog windows asking to select card(s) not drawing their contents happened three times to me today, and with different cards, too - I don't remember the first card it happened with, but the next two times it happened with Enlistment Officer when it asked me to "put the rest on the bottom of the library". The game hung at that point because I couldn't close the window (cause it was waiting for my input) and, at the same time, I couldn't enter any valid input because the dialog window was completely empty.

Steps to reproduce:
Add Enlistment Officer to play via a dev mode.
Click through the appearing dialog windows as fast as possible. It doesn't happen every time, but in my opinion it might have something to do with the second dialog window appearing fast enough after the first one is closed. Also, it might be the case that it works for the first Enlistment Officer played, but then has a very high probability to fail if you play the card again. So, if the bug doesn't appear the first time around, add another Enlistment Officer to play and try again.

P.S. I just deliberately reproduced the bug three more times in a row with that method above. It's a game-breaking bug.

- Agetian
Last edited by Agetian on 07 Mar 2013, 19:12, edited 2 times in total.
Agetian
Programmer
 
Posts: 3490
Joined: 14 Mar 2011, 05:58
Has thanked: 684 times
Been thanked: 572 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 07 Mar 2013, 19:10

friarsol wrote:
Max mtg wrote:Found another issue now - it I play first, a card is given on draw step in my 1st turn!!!
Is that an old bug, or did it just appear after my recent changes?
Nope that had been working.

Playing first would skip your initial draw (IIRC it was even skipping your whole first draw step, as the rules are written).
First turn number was assigned 0, now it's 1.
20160 addresses this one.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Bug Reports (snapshot builds)

Postby Max mtg » 07 Mar 2013, 21:09

20161 - monocolored deck generation.
The deck quality is poor, but that's better than showing 3 errors in a row.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: Timothysow and 85 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 86 users online :: 1 registered, 0 hidden and 85 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: Timothysow and 85 guests

Login Form