Page 1 of 1

Forge crashes during draft mac

PostPosted: 16 Mar 2012, 15:35
by aurorasparadox
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)

Re: Forge crashes during draft mac

PostPosted: 17 Mar 2012, 04:42
by Max mtg
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);
    }

Re: Forge crashes during draft mac

PostPosted: 18 Mar 2012, 01:35
by aurorasparadox
May I know what I should do to fix this error? Thank you.

Re: Forge crashes during draft mac

PostPosted: 18 Mar 2012, 01:53
by timmermac
I'm guessing, but I think that would need to be dealt with by one of the developers.

Re: Forge crashes during draft mac

PostPosted: 18 Mar 2012, 05:47
by Max mtg
I am working under windows and cannot reproduce this error.
Do you have any custom card sets?

Re: Forge crashes during draft mac

PostPosted: 19 Mar 2012, 03:29
by aurorasparadox
Nope, everything's stock. This only occurs in draft. All the other modes I've tried works fine.

Re: Forge crashes during draft mac

PostPosted: 19 Mar 2012, 04:33
by slapshot5
My draft works on Mac OS X. What draft format are you using?

Re: Forge crashes during draft mac

PostPosted: 19 Mar 2012, 11:30
by Chris H.
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?

Re: Forge crashes during draft mac

PostPosted: 19 Mar 2012, 20:26
by Max mtg
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.

Re: Forge crashes during draft mac

PostPosted: 19 Mar 2012, 22:08
by Chris H.
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.

Re: Forge crashes during draft mac

PostPosted: 20 Mar 2012, 05:42
by moomarc
What block were you drafting? That might help point to the problem, especially if its one of these transform cards.

Re: Forge crashes during draft mac

PostPosted: 28 Mar 2012, 14:49
by aurorasparadox
I was drafting rav-rav-rav.

Forge also crashed while I was accessing the deck editor in quest mode.