Page 6 of 62

Re: Bug reports

PostPosted: 28 Aug 2011, 16:47
by Huggybaby
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)

Re: Bug reports

PostPosted: 28 Aug 2011, 16:59
by beholder
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.

Re: Bug reports

PostPosted: 28 Aug 2011, 17:47
by Huggybaby
Thanks, turning off sound works here.

Re: Bug reports

PostPosted: 29 Aug 2011, 03:46
by melvin
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.

Re: Bug reports

PostPosted: 29 Aug 2011, 15:58
by Huggybaby
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!

Re: Bug reports

PostPosted: 10 Sep 2011, 12:05
by Greven
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.

Re: Bug reports

PostPosted: 10 Sep 2011, 13:10
by melvin
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.

Re: Bug reports

PostPosted: 12 Sep 2011, 00:59
by missalexis
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?

Re: Bug reports

PostPosted: 12 Sep 2011, 02:15
by melvin
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?

Re: Bug reports

PostPosted: 12 Sep 2011, 12:18
by melvin
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.
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.

Nonetheless, this is been fixed in the current build :D

Re: Bug reports

PostPosted: 24 Sep 2011, 14:41
by Milod
used pacifism on alabaster mage, alabaster mage stil able to attack me

Re: Bug reports

PostPosted: 24 Sep 2011, 15:06
by melvin
Thanks for the report. I've just confirmed it in 1.18. Now trying to figure out the cause.

Re: Bug reports

PostPosted: 24 Sep 2011, 17:24
by Huggybaby
I played Pacifism on Goblin Gaveleer, and it attacked anyway

Re: Bug reports

PostPosted: 24 Sep 2011, 17:44
by Aswan jaguar
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.

Re: Bug reports

PostPosted: 25 Sep 2011, 06:50
by melvin
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.