Bug reports
by ubeefx
Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins
Re: Bug reports
by Huggybaby » 28 Aug 2011, 16:47
Works great...pls consider making it so that each crash produces a new log or appends the same, rather than overwriting the original log.
- Code: Select all
Turn : 1 Phase : EndOfTurn Step : NextPhase Player : Huggy Score : 0
0] Player : Huggy Life : 20 Delayed : Total=0
- Hand : Disfigure
- Hand : Black Sun's Zenith
- Hand : Plains
- Hand : Swamp
- Hand : Glory Seeker
- Hand : Plains
- Hand : Warpath Ghoul
1] Player : Computer Life : 20 Delayed : Total=0
- Hand : Forest
- Hand : Island
- Hand : Thoughtweft Gambit
- Hand : Darkslick Drake
- Hand : Elvish Warrior
- Hand : Terra Stomper
- Hand : Wasp Lancer
Stack : 0
Score = 0
Exception from controller.runGame:
illegal call to open() in interface Clip
java.lang.IllegalArgumentException: illegal call to open() in interface Clip
at com.sun.media.sound.DirectAudioDevice$DirectClip.implOpen(Unknown Source)
at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
at magic.data.SoundEffects.playClip(SoundEffects.java:30)
at magic.data.SoundEffects.playClip(SoundEffects.java:46)
at magic.model.phase.MagicEndOfTurnPhase.executeEndOfPhase(MagicEndOfTurnPhase.java:54)
at magic.model.phase.MagicPhase.executePhase(MagicPhase.java:58)
at magic.ui.GameController.runGame(GameController.java:473)
at magic.ui.GamePanel$10.run(GamePanel.java:220)
- Code: Select all
Turn : 1 Phase : EndOfTurn Step : NextPhase Player : Huggy Score : 305
0] Player : Huggy Life : 20 Delayed : Total=0
- Hand : Cloud Crusader
- Hand : Puppeteer Clique
- Hand : Knight Exemplar
- Hand : Arcane Sanctum
- Hand : Arcane Sanctum
- Hand : Torpor Dust
- Permanent : Plains Summoned
1] Player : Computer Life : 20 Delayed : Total=0
- Hand : Island
- Hand : Court Archers
- Hand : Rupture Spire
- Hand : River Boa
- Hand : Stalker Hag
- Hand : Overwhelming Stampede
- Hand : Darkslick Drake
Stack : 0
1. MagicRemoveCardAction (Plains) = -300
2. MagicPlayCardAction (Plains,null) = 605
Score = 305
Exception from controller.runGame:
illegal call to open() in interface Clip
java.lang.IllegalArgumentException: illegal call to open() in interface Clip
at com.sun.media.sound.DirectAudioDevice$DirectClip.implOpen(Unknown Source)
at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
at magic.data.SoundEffects.playClip(SoundEffects.java:30)
at magic.data.SoundEffects.playClip(SoundEffects.java:46)
at magic.model.phase.MagicEndOfTurnPhase.executeEndOfPhase(MagicEndOfTurnPhase.java:54)
at magic.model.phase.MagicPhase.executePhase(MagicPhase.java:58)
at magic.ui.GameController.runGame(GameController.java:473)
at magic.ui.GamePanel$10.run(GamePanel.java:220)
- Code: Select all
Turn : 1 Phase : EndOfTurn Step : NextPhase Player : Computer Score : -305
0] Player : Huggy Life : 20 Delayed : Total=0
- Hand : Hero of Bladehold
- Hand : Hyena Umbra
- Hand : Perilous Myr
- Hand : Arcane Sanctum
- Hand : Plains
- Hand : Plains
- Hand : Auramancer
1] Player : Computer Life : 20 Delayed : Total=0
- Hand : Gorgon Flail
- Hand : Forest
- Hand : Rupture Spire
- Hand : Protective Bubble
- Hand : Craw Wurm
- Hand : Plague Myr
- Permanent : Forest Summoned
Stack : 0
1. MagicRemoveCardAction (Forest) = 300
2. MagicPlayCardAction (Forest,null) = -605
Score = -305
Exception from controller.runGame:
illegal call to open() in interface Clip
java.lang.IllegalArgumentException: illegal call to open() in interface Clip
at com.sun.media.sound.DirectAudioDevice$DirectClip.implOpen(Unknown Source)
at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
at magic.data.SoundEffects.playClip(SoundEffects.java:30)
at magic.data.SoundEffects.playClip(SoundEffects.java:46)
at magic.model.phase.MagicEndOfTurnPhase.executeEndOfPhase(MagicEndOfTurnPhase.java:54)
at magic.model.phase.MagicPhase.executePhase(MagicPhase.java:58)
at magic.ui.GameController.runGame(GameController.java:473)
at magic.ui.GamePanel$10.run(GamePanel.java:220)
-
Huggybaby - Administrator
- Posts: 3226
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 741 times
- Been thanked: 601 times
Re: Bug reports
by beholder » 28 Aug 2011, 16:59
Thanks melvin for implementing a crash log so fast!
And thanks Huggybaby for reporting the bug and posting the logs.
It's clear from the crash report that this is related to sound. I usually have sound effects turned off but tried to run a game with sound on and crashed almost immediately.
So, please turn off sound effects until this gets fixed.
And thanks Huggybaby for reporting the bug and posting the logs.
It's clear from the crash report that this is related to sound. I usually have sound effects turned off but tried to run a game with sound on and crashed almost immediately.
So, please turn off sound effects until this gets fixed.
If debugging is the process of removing bugs, then programming must be the process of putting them in.
-
beholder - Programmer
- Posts: 123
- Joined: 17 Jul 2011, 17:56
- Location: Netherlands
- Has thanked: 16 times
- Been thanked: 25 times
Re: Bug reports
by melvin » 29 Aug 2011, 03:46
Thanks for the suggestion Huggybaby, now the crash reports append to the crash.log file.
I've decided to release an update (1.17b) to fix the crash bug. As a bonus, you all get to play with the 30+ additional cards that have been implemented since 1.17.
I've decided to release an update (1.17b) to fix the crash bug. As a bonus, you all get to play with the 30+ additional cards that have been implemented since 1.17.
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by Huggybaby » 29 Aug 2011, 15:58
Thanks for the cards and the bug fix melvin.
The way cards are coming out now it seems you guys are really picking up a head of steam!
The way cards are coming out now it seems you guys are really picking up a head of steam!
-
Huggybaby - Administrator
- Posts: 3226
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 741 times
- Been thanked: 601 times
Re: Bug reports
by Greven » 10 Sep 2011, 12:05
First of all, congratulations for your fabulous work!
Now for the bug: when using a monocolor green deck, I can't get mana from Noble Hierarch. Llanowar Elves, on the other hand, work fine.
Now for the bug: when using a monocolor green deck, I can't get mana from Noble Hierarch. Llanowar Elves, on the other hand, work fine.
- Greven
- Posts: 1
- Joined: 10 Sep 2011, 11:56
- Has thanked: 0 time
- Been thanked: 0 time
Re: Bug reports
by melvin » 10 Sep 2011, 13:10
Welcome to the forum, Greven
Thanks for taking time to report the bug.
This bug was earlier reported via the issues page on googlecode, it has been fixed in this revision http://code.google.com/p/magarena/sourc ... ebcab2d839 which will be part of 1.18.

This bug was earlier reported via the issues page on googlecode, it has been fixed in this revision http://code.google.com/p/magarena/sourc ... ebcab2d839 which will be part of 1.18.
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by missalexis » 12 Sep 2011, 00:59
I don't know if this is a bug in 1.17 or not - but I played a Scourge Servant (3/3, infect) against an Anaba Bodyguard (2/3, 1st strike) and the SS got destroyed and the AB not, nor did it get a poison counter. I had thought that despite the first strike, since it only does two damage that the SS should have survived and the AB get destroyed?
- missalexis
- Posts: 52
- Joined: 28 Feb 2011, 00:08
- Has thanked: 2 times
- Been thanked: 5 times
Re: Bug reports
by melvin » 12 Sep 2011, 02:15
I tested a straight fight between these two creatures and the outcome was correct. Scourge Servant got two damage and Anaba Bodyguard was destroyed. Perhaps there was some enchantment or some other effect at work? Do you recall what other cards were on the battlefield?
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by melvin » 12 Sep 2011, 12:18
Turns out to be a bit more complicated than I thought. After damage is dealt and the attacker is destroyed, the blocker "forgets" which attacker it was blocking.melvin wrote:Thanks for the report Huggybaby, this is indeed somewhat confusing [that blocker order may change after damage resolves] and should be fixed. I've entered it into our issue database.
And thanks to ubeefx's explanation, it is quite clear what must be done to fix it.
Nonetheless, this is been fixed in the current build

-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by Huggybaby » 24 Sep 2011, 17:24
I played Pacifism on Goblin Gaveleer, and it attacked anyway
-
Huggybaby - Administrator
- Posts: 3226
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 741 times
- Been thanked: 601 times
Re: Bug reports
by Aswan jaguar » 24 Sep 2011, 17:44
I find AI slower after 1.18 (Minimax default 6) even with few creatures in play.
In one case when there were a lot creatures in play AI for some reason took 2 minutes thinking in DRAW PHASE!!!That game took for ever to end.
Do you have slowdowns or fast pc have no such problems?
Another thing is that AI in 6,7 consecutive turns was attaching Loxodon Warhammer to all 4 creatures it had in play last attachment was the best choice though.
In one case when there were a lot creatures in play AI for some reason took 2 minutes thinking in DRAW PHASE!!!That game took for ever to end.
Do you have slowdowns or fast pc have no such problems?
Another thing is that AI in 6,7 consecutive turns was attaching Loxodon Warhammer to all 4 creatures it had in play last attachment was the best choice though.
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
Aswan jaguar - Super Tester Elite
- Posts: 8129
- Joined: 13 May 2010, 12:17
- Has thanked: 748 times
- Been thanked: 477 times
Re: Bug reports
by melvin » 25 Sep 2011, 06:50
Bug with Pacifism fixed. There is a bug in the copying of the game state. The AI operates on a copy of the game state so that it doesn't disturb the ongoing game, there was a subtle error in the copying step.
The minimax AI is known to become very slow when there are lots of creatures, mainly because it needs to evaluate many combat scenarios. The unnecessary moving of equipment around is also a known problem.
One suggestion to play against the monte carlo AI instead. Another way is we can make this automatic, so that when the number of creature exceeds a certain threshold, we always use the monte carlo AI since we know the minimax AI will take a long time.
The minimax AI is known to become very slow when there are lots of creatures, mainly because it needs to evaluate many combat scenarios. The unnecessary moving of equipment around is also a known problem.
One suggestion to play against the monte carlo AI instead. Another way is we can make this automatic, so that when the number of creature exceeds a certain threshold, we always use the monte carlo AI since we know the minimax AI will take a long time.
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Who is online
Users browsing this forum: No registered users and 3 guests