Bug reports
by ubeefx
Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins
Re: Bug reports
by hong yie » 30 Oct 2013, 00:52
can you send in the screenshot or the event log when it happened ?
this will be useful to track certain cards that might doesn't work well with rancor.
-
hong yie - Programmer
- Posts: 216
- Joined: 10 Mar 2013, 06:44
- Location: Jakarta
- Has thanked: 75 times
- Been thanked: 9 times
Re: Bug reports
by melvin » 30 Oct 2013, 01:25
Thanks, confirmed that all cards which use the card script "dies effect Return SN to its owner's hand" are broken as the effect assumes it is returning a permanent not a card. Working on a fix now.
Update: Fixed in https://code.google.com/p/magarena/sour ... 47775833f6
-
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 muppet » 01 Nov 2013, 11:28
Also Tamiyo, The Moon Sage in case you missed that one I haven't applied the fix yet myself but it may not be covered.
I assume I have to download the whole compiled version rather than just changing the files affected if I want to fix it before the next release?
I assume I have to download the whole compiled version rather than just changing the files affected if I want to fix it before the next release?
Re: Bug reports
by melvin » 01 Nov 2013, 13:31
Tamiyo should not be affected by this bug as it doesn't use the card script for that ability. Did you observe this bug with Tamiyo?muppet wrote:Also Tamiyo, The Moon Sage in case you missed that one I haven't applied the fix yet myself but it may not be covered.
That's correct. You could download one of the hourly builds of 1.44 that has this fix (plus nice UI upgrades) from https://buildhive.cloudbees.com/job/mel ... arena/554/muppet wrote:I assume I have to download the whole compiled version rather than just changing the files affected if I want to fix it before the next release?
-
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 muppet » 01 Nov 2013, 15:08
yes the card did not come back to my hand. So I just assumed it was the same thing. This is after I used the -8 ability. Can't actually remember what the card was possibly it was a burn spell Burst Lightning maybe.
Re: Bug reports
by melvin » 02 Nov 2013, 01:23
Thanks, Huggybaby. I assume this happens when you click the "Undo" button? Looks like we were trying to update the UI on multiple threads and causing a race condition, fixed for next release in https://code.google.com/p/magarena/sour ... 4a49a0e75b
-
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 » 02 Nov 2013, 01:25
I check and couldn't replicate the bug with Tamiyo and Burst Lightning both with and without kicker. Do post more details if you observe this bug next time, thanks!muppet wrote:yes the card did not come back to my hand. So I just assumed it was the same thing. This is after I used the -8 ability. Can't actually remember what the card was possibly it was a burn spell Burst Lightning maybe.
-
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 » 03 Nov 2013, 01:53
Yes, I do believe multiple undos were involved.melvin wrote:Thanks, Huggybaby. I assume this happens when you click the "Undo" button? Looks like we were trying to update the UI on multiple threads and causing a race condition, fixed for next release in https://code.google.com/p/magarena/sour ... 4a49a0e75b

Eastern Daylight Time?ensure that update to LogBookViewer is performed on EDT
-
Huggybaby - Administrator
- Posts: 3226
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 742 times
- Been thanked: 601 times
Re: Bug reports
by melvin » 03 Nov 2013, 02:07
Seems like you caught my use of jargon, well in this case EDT is Event Dispatch Thread. The reason for this special thread is because Swing (our UI framework) is single threaded so any change to UI should be handled by this special thread so that things are consistent. When other threads manipulate the UI, it is possible to reach an inconsistent state, as is the case with the update to the LogBookViewer in the performUndo method.Huggybaby wrote:Eastern Daylight Time?ensure that update to LogBookViewer is performed on EDT
The proper way to perform UI changes in the controller thread is to wrap it in a Runnable object and submit this to the EDT using the invokeLater method. That is what the fix does.
-
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 sponeta » 07 Nov 2013, 19:53
Druid's Deliverance prevents damage to caster and creatures, even though the card text only specifies "you".
Re: Bug reports
by sponeta » 07 Nov 2013, 20:00
Angelic Edict allows you to target an artifact or enchantment, even though the card text says "creature or enchantment".
Re: Bug reports
by melvin » 08 Nov 2013, 00:43
Thanks! Fixed in https://code.google.com/p/magarena/sour ... 5fc5efb918 for next releasesponeta wrote:Angelic Edict allows you to target an artifact or enchantment, even though the card text says "creature or enchantment".
Confirmed. Working on a fix.sponeta wrote:Druid's Deliverance prevents damage to caster and creatures, even though the card text only specifies "you".
-
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 » 08 Nov 2013, 01:31
Prevent damage fixed in https://code.google.com/p/magarena/sour ... 25b4aca974
Took the chance to clean up that part as some code was using a special player state to record these effects, changed them to use a replacement effect.
Took the chance to clean up that part as some code was using a special player state to record these effects, changed them to use a replacement effect.
-
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