It is currently 11 Sep 2025, 13:52
   
Text Size

Forge crashes during draft mac

Post MTG Forge Related Programming Questions Here

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

Forge crashes during draft mac

Postby aurorasparadox » 16 Mar 2012, 15:35

Hi, forge seems to crash whenever I try to pick my second card onwards during draft. Thank you in advance.

Code: Select all
Version:
Forge version 1.2.5-r14666

OS: Mac OS X Version: 10.7.3 Architecture: x86_64

Java Version: 1.6.0_29 Vendor: Apple Inc.

Detailed error trace:
java.lang.NullPointerException
   at forge.gui.deckeditor.elements.ManaCostRenderer.getTableCellRendererComponent(ManaCostRenderer.java:50)
   at javax.swing.JTable$AccessibleJTable.getAccessibleChild(JTable.java:7023)
   at javax.swing.JTable$AccessibleJTable.getAccessibleAt(JTable.java:7410)
   at javax.swing.JTable$AccessibleJTable.valueChanged(JTable.java:6925)
   at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
   at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:147)
   at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:194)
   at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:388)
   at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:398)
   at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:442)
   at javax.swing.JTable.changeSelectionModel(JTable.java:2352)
   at javax.swing.JTable.changeSelection(JTable.java:2419)
   at javax.swing.plaf.basic.BasicTableUI$Handler.adjustSelection(BasicTableUI.java:1085)
   at javax.swing.plaf.basic.BasicTableUI$Handler.mousePressed(BasicTableUI.java:1008)
   at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mousePressed(BasicTableUI.java:768)
   at com.apple.laf.AquaTableUI$MouseInputHandler.mousePressed(AquaTableUI.java:82)
   at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
   at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
   at java.awt.Component.processMouseEvent(Component.java:6370)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:6138)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4735)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4565)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
   at java.awt.Container.dispatchEventImpl(Container.java:2129)
   at java.awt.Window.dispatchEventImpl(Window.java:2478)
   at java.awt.Component.dispatchEvent(Component.java:4565)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
   at java.awt.EventQueue.access$000(EventQueue.java:85)
   at java.awt.EventQueue$1.run(EventQueue.java:638)
   at java.awt.EventQueue$1.run(EventQueue.java:636)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
   at java.awt.EventQueue$2.run(EventQueue.java:652)
   at java.awt.EventQueue$2.run(EventQueue.java:650)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
aurorasparadox
 
Posts: 6
Joined: 19 Aug 2010, 04:08
Has thanked: 0 time
Been thanked: 0 time

Re: Forge crashes during draft mac

Postby Max mtg » 17 Mar 2012, 04:42

That means a card has null manacost?
Code: Select all
    public final Component getTableCellRendererComponent(final JTable table, final Object value,
            final boolean isSelected, final boolean hasFocus, final int row, final int column) {
        this.value = (CardManaCost) value;
        this.setToolTipText(this.value.toString());
        return super.getTableCellRendererComponent(table, "", isSelected, hasFocus, row, column);
    }
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: Forge crashes during draft mac

Postby aurorasparadox » 18 Mar 2012, 01:35

May I know what I should do to fix this error? Thank you.
aurorasparadox
 
Posts: 6
Joined: 19 Aug 2010, 04:08
Has thanked: 0 time
Been thanked: 0 time

Re: Forge crashes during draft mac

Postby timmermac » 18 Mar 2012, 01:53

I'm guessing, but I think that would need to be dealt with by one of the developers.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Forge crashes during draft mac

Postby Max mtg » 18 Mar 2012, 05:47

I am working under windows and cannot reproduce this error.
Do you have any custom card sets?
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: Forge crashes during draft mac

Postby aurorasparadox » 19 Mar 2012, 03:29

Nope, everything's stock. This only occurs in draft. All the other modes I've tried works fine.
aurorasparadox
 
Posts: 6
Joined: 19 Aug 2010, 04:08
Has thanked: 0 time
Been thanked: 0 time

Re: Forge crashes during draft mac

Postby slapshot5 » 19 Mar 2012, 04:33

My draft works on Mac OS X. What draft format are you using?
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: Forge crashes during draft mac

Postby Chris H. » 19 Mar 2012, 11:30

I launched the 1.2.5-r14666 Mac version and performed a draft without any errors.

I think that Max may be on to something. It looks like the draft mode deck editor was trying to display the cost for one of the available cards in the draft and the null cost for one of the cards could not be displayed.

Our new transform cards and flip cards have a mana cost for the original card but do not have a cost associated with the transformed/flipped variant.

Did the code which generates a pack of cards attempt to include a transformed/flipped variant?
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: Forge crashes during draft mac

Postby Max mtg » 19 Mar 2012, 20:26

Chris H. wrote:I launched the 1.2.5-r14666 Mac version and performed a draft without any errors.

I think that Max may be on to something. It looks like the draft mode deck editor was trying to display the cost for one of the available cards in the draft and the null cost for one of the cards could not be displayed.

Our new transform cards and flip cards have a mana cost for the original card but do not have a cost associated with the transformed/flipped variant.

Did the code which generates a pack of cards attempt to include a transformed/flipped variant?
I have no idea how a card without manacost emerged.
A card yet needs to be transformed to show the side without manacost, moreover the values shown in table are not changed when someone flips the card.
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: Forge crashes during draft mac

Postby Chris H. » 19 Mar 2012, 22:08

I checked and all of the cards with "ALTERNATE" have a ManaCost param for the flipped/transformed variant.

Some of the flipped/transformed variants are using "no cost" and some are using the mana cost provided with the non-flipped/transformed variant.
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: Forge crashes during draft mac

Postby moomarc » 20 Mar 2012, 05:42

What block were you drafting? That might help point to the problem, especially if its one of these transform cards.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Forge crashes during draft mac

Postby aurorasparadox » 28 Mar 2012, 14:49

I was drafting rav-rav-rav.

Forge also crashed while I was accessing the deck editor in quest mode.
aurorasparadox
 
Posts: 6
Joined: 19 Aug 2010, 04:08
Has thanked: 0 time
Been thanked: 0 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 35 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 35 users online :: 0 registered, 0 hidden and 35 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 35 guests

Login Form