It is currently 24 Jun 2025, 20:14
   
Text Size

SVN Bug Reports

Post MTG Forge Related Programming Questions Here

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

Re: SVN Bug Reports

Postby Braids » 08 Jul 2011, 17:36

friarsol wrote:Yea it's not a reliable testing tool for some reason. I think it has to do with copyCard not working 100% as we expect it to.
yes, i believe this has something to do with some indiscriminate voodoo in CardFactory. i suspect it's the same reason why my lazy loading CardFactory had to be reverse merged out of existence the trunk. it's actually still in there, just not on the head.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Bug Reports

Postby Jaedayr » 08 Jul 2011, 19:23

Corwin72 wrote:r 10490
I am getting the error:

Error loading Quest Data

This happens after I create a new quest and import a constructed deck. I then have to close and open Forge and try to access my existing quest.
Any thoughts?
I got the same error just trying to continue an existing quest and opened Issue 145.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: SVN Bug Reports

Postby Corwin72 » 08 Jul 2011, 20:44

r10490
Error:
| Open
An error has occurred. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com


For input string: "white creatures with power 2 or greater"


Version:
Forge -- official beta: $Date: 2011-07-02 00:20:39 -0400 (Sat, 02 Jul 2011) $, SVN revision: $Revision: 10300 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_22 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NumberFormatException: For input string: "white creatures with power 2 or greater"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at forge.CombatUtil.canBlock(Unknown Source)
at forge.ComputerUtil_Block2.getPossibleBlockers(Unknown Source)
at forge.ComputerUtil_Block2.makeGoodBlocks(Unknown Source)
at forge.ComputerUtil_Block2.getBlockers(Unknown Source)
at forge.ComputerAI_General.declare_blockers(Unknown Source)
at forge.gui.input.InputControl.updateInput(Unknown Source)
at forge.GuiInput.update(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at forge.MyObservable.updateObservers(Unknown Source)
at forge.gui.input.InputControl.resetInput(Unknown Source)
at forge.Phase.passPriority(Unknown Source)
at forge.gui.input.Input_PassPriority.selectButtonOK(Unknown Source)
at forge.GuiInput.selectButtonOK(Unknown Source)
at forge.GuiDisplay4.okButtonActionPerformed(Unknown Source)
at forge.GuiDisplay4.access$3(Unknown Source)
at forge.GuiDisplay4$32.actionPerformed(Unknown Source)
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.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)

When attacking into Orcish Veteran with Elvish Warrior.
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Bug Reports

Postby Chris H. » 08 Jul 2011, 21:32

Corwin72 wrote:r 10490
I am getting the error:

| Open
An error has occurred. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com


Error loading Quest Data


Version:
Forge -- official beta: $Date: 2011-07-02 00:20:39 -0400 (Sat, 02 Jul 2011) $, SVN revision: $Revision: 10300 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_22 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.IllegalArgumentException: XPP3 pull parser library not present. Specify another driver. For example: new XStream(new DomDriver())
at com.thoughtworks.xstream.io.xml.XppDriver.loadLibrary(XppDriver.java:62)
at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:43)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
at forge.quest.data.QuestDataIO.loadData(Unknown Source)
at forge.Gui_QuestOptions.continueQuestButton_actionPerformed(Unknown Source)
at forge.Gui_QuestOptions$2.actionPerformed(Unknown Source)
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.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 happens after I create a new quest and import a constructed deck. I then have to close and open Forge and try to access my existing quest.
Any thoughts?
`
I go the same error exception when I attempted to continue an existing quest. Some work is being done. It should help to reduce the size of the heap space that is needed as I understand it.

Some of the older libs were removed last night. We may get newer versions added or some code edits might make these libs unnecessary. I will have to contunue my quest with an older copy of the code. :)

error exception | Open
An error has occurred. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com


Error loading Quest Data


Version:
Forge -- official beta: $Date: 2011-07-02 00:20:39 -0400 (Sat, 02 Jul 2011) $, SVN revision: $Revision: 10300 $

OS: Mac OS X Version: 10.6.8 Architecture: x86_64

Java Version: 1.6.0_26 Vendor: Apple Inc.

Detailed error trace:
java.lang.IllegalArgumentException: XPP3 pull parser library not present. Specify another driver. For example: new XStream(new DomDriver())
at com.thoughtworks.xstream.io.xml.XppDriver.loadLibrary(XppDriver.java:62)
at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:43)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
at forge.quest.data.QuestDataIO.loadData(QuestDataIO.java:58)
at forge.Gui_QuestOptions.continueQuestButton_actionPerformed(Gui_QuestOptions.java:215)
at forge.Gui_QuestOptions$2.actionPerformed(Gui_QuestOptions.java:126)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6373)
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:4282)
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)
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: SVN Bug Reports

Postby Braids » 08 Jul 2011, 21:58

Chris H. wrote:I [got] the same error exception when I attempted to continue an existing quest. Some work is being done. It should help to reduce the size of the heap space that is needed as I understand it.
are we moving towards XPP or towards DOM? the latter is going to use more heap space :!:
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Bug Reports

Postby Jaedayr » 08 Jul 2011, 22:28

Chris H. wrote:Some of the older libs were removed last night. We may get newer versions added or some code edits might make these libs unnecessary. I will have to contunue my quest with an older copy of the code. :)
Questing is completely broken now. I cannot start a new quest (clicking the button does nothing) and I get the error when trying to continue my existing one. Any ETA for either the newer versions or code edits?
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: SVN Bug Reports

Postby Braids » 08 Jul 2011, 22:58

Jaedayr wrote:Questing is completely broken now. I cannot start a new quest (clicking the button does nothing) and I get the error when trying to continue my existing one. Any ETA for either the newer versions or code edits?
i'll start looking for one pronto. this is going to require a maven edit.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Bug Reports

Postby jendave » 08 Jul 2011, 23:13

Jaedayr wrote:
Chris H. wrote:Some of the older libs were removed last night. We may get newer versions added or some code edits might make these libs unnecessary. I will have to contunue my quest with an older copy of the code. :)
Questing is completely broken now. I cannot start a new quest (clicking the button does nothing) and I get the error when trying to continue my existing one. Any ETA for either the newer versions or code edits?
This is my fault. I removed the lib. Forge compiled fine without it. How is the lib loaded? Also, xpp was not included in the recent releases as a dependency. I can add it back but I also want to understand how it is used.

Thanks
Dave
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: SVN Bug Reports

Postby jendave » 08 Jul 2011, 23:20

Strange, I have no problems starting new quests after importing a deck. I do have to select a quest length since none is selected by default. Otherwise the New Quest button does nothing.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Continue Quest Fixed Re: SVN Bug Reports

Postby Braids » 08 Jul 2011, 23:23

Fixed in r10512.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Bug Reports

Postby Braids » 08 Jul 2011, 23:25

jendave wrote:This is my fault. I removed the lib. Forge compiled fine without it. How is the lib loaded? Also, xpp was not included in the recent releases as a dependency. I can add it back but I also want to understand how it is used.
the lib is loaded at run time by xstream. probably with {Class.forName}. it is the default library that xstream uses to parse xml. xpp3 is faster and has a much better heap profile than the DOM parser. i added a minimal version to res/lib etc. please see the rev i mentioned earlier to see what i changed.

edit 1. url describing change is http://code.google.com/p/cardforge/source/detail?r=10512
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Bug Reports

Postby jendave » 08 Jul 2011, 23:37

I added xpp3 to the Maven build.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

r10519 Re: SVN Bug Reports

Postby Braids » 09 Jul 2011, 02:28

would someone please let me know if r10519 loads any faster than usual? thanks.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: r10519 Re: SVN Bug Reports

Postby friarsol » 09 Jul 2011, 02:48

Braids wrote:would someone please let me know if r10519 loads any faster than usual? thanks.
The first time it launched it was slower than normal, with the Deck Editor definitely being slower. Second time it was about the same as it had been before that.

Win 7 64, 2.33 GHz Quadcore processor and 8 Gigs of Ram.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: r10519 Re: SVN Bug Reports

Postby jeffwadsworth » 09 Jul 2011, 03:01

Braids wrote:would someone please let me know if r10519 loads any faster than usual? thanks.
Well, it was noticeably faster for me loading the main window. Loading the deck editor was the same.
Win 7 64 bit 6GB i7 Latest Java.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 42 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 42 users online :: 0 registered, 0 hidden and 42 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 42 guests

Login Form