It is currently 09 Sep 2025, 16:18
   
Text Size

Match with Starting Cards Doesn't Load Properly Bug

Post MTG Forge Related Programming Questions Here

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

Match with Starting Cards Doesn't Load Properly Bug

Postby friarsol » 28 Apr 2012, 16:05

Ok, I went through some test scenarios to see if I can figure out any specifics on this bug:

During this testing, I only noticed this on the first game after startup. Once I've completed the game, I haven't been able to repro. That doesn't mean it won't happen after that first game, it just hasn't occurred for me while i was trying to repro.

I don't really have a way to reproduce it 100% of the time, but the order I saw it the most in was:

Select Challenge, Plant, Pet, Start

If it loads ok, stop and restart Forge and try again.

It looks like the issue is in GameNew.newGame() when adding cards to the Zone.

I think there might be something inside PlayArea.doLayout() that's causing problems, based upon
the occassional comodification and IndexOutOfBounds errors. But sometimes it just doesn't do anything and locks up Forge.

Might be an infinite loop in PlayArea.rowSpacing()?

I'm not really sure, but it definitely is still around. If someone can look into it further. If you need an advanced Quest to try it out I'll post mine.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Match with Starting Cards Doesn't Load Properly Bug

Postby Jaedayr » 13 May 2012, 14:55

I am still seeing this also, and if it occurs and I quit the game and keep playing it will occur again and again, usually every 4-5 matches. My current quest longest win streak is 6 because I keep getting this every few games.
If it occurs during any match after the first one, one of the cards in play from the previous match still appears in the lower right card image panel with corresponding info above it.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Match with Starting Cards Doesn't Load Properly Bug

Postby Jaedayr » 06 Jun 2012, 22:17

I got this error again today, with the accompanying crash report. Hopefully there is some info to help debug this.

The quest opponent icon is the correct one for the match just starting, and the life totals are correct. However, in the prompt window it says Quest: Game #2 of 3, turn 29. Neither the AI or I have any cards and neither my pet or wall are present.

| Open
This is a Crash Report. An error has occurred. Please save this message to a file.
Please follow the instructions at this address to submit this Crash Report, plus what you were doing at the time:
http://tinyurl.com/3zzrnyb
Reporting bugs in Forge is very important. We thank you for your time.

1


Version:
Forge version 1.2.8-SNAPSHOT-r15681

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.6.0_29 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.ArrayIndexOutOfBoundsException: 1
at java.util.ArrayList.clear(Unknown Source)
at forge.view.arcane.PlayArea.rowSpacing(PlayArea.java:252)
at forge.view.arcane.PlayArea.doLayout(PlayArea.java:188)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validateTree(Unknown Source)
at java.awt.Container.validate(Unknown Source)
at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$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.pumpEventsForFilter(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at forge.error.ErrorViewer.showDialog(ErrorViewer.java:192)
at forge.error.ErrorViewer.showError(ErrorViewer.java:117)
at forge.error.ErrorViewer.showError(ErrorViewer.java:79)
at forge.error.ExceptionHandler.handle(ExceptionHandler.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.awt.EventDispatchThread.handleException(Unknown Source)
at java.awt.EventDispatchThread.processException(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)
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Match with Starting Cards Doesn't Load Properly Bug

Postby Jaedayr » 26 Jun 2012, 02:16

Is anybody actively looking at this? Can I humbly request that someone with a clue do so? :D I just started up the latest snapshot and got no cards four times in a row. It is really starting to get annoying to me. Thanks in advance to anyone who can spare a bit of time and destroy this bug once and for all!
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Match with Starting Cards Doesn't Load Properly Bug

Postby friarsol » 03 Sep 2012, 17:54

Hey Chris,

Can you unsticky this? I haven't noticed it at all recently, and someone reported that they were getting it fairly often and it was now resolved.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Match with Starting Cards Doesn't Load Properly Bug

Postby Chris H. » 03 Sep 2012, 22:41

friarsol wrote:Hey Chris,

Can you unsticky this? I haven't noticed it at all recently, and someone reported that they were getting it fairly often and it was now resolved.
 
Thank you for the heads up ... I have been busy with moving and find that it is not easy to keep up. :mrgreen:
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


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 20 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 20 users online :: 0 registered, 0 hidden and 20 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 20 guests

Login Form