It is currently 18 Jul 2025, 17:19
   
Text Size

Bug reports

Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins

Re: Bug reports

Postby hong yie » 30 Oct 2013, 00:52

muppet wrote:My Rancor did not return to my hand when my creature died. I am pretty sure it used to work properly. It even popped up to say putting Rancor back into owners hand but nothing happened.
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.
User avatar
hong yie
Programmer
 
Posts: 216
Joined: 10 Mar 2013, 06:44
Location: Jakarta
Has thanked: 75 times
Been thanked: 9 times

Re: Bug reports

Postby melvin » 30 Oct 2013, 01:25

muppet wrote:My Rancor did not return to my hand when my creature died. I am pretty sure it used to work properly. It even popped up to say putting Rancor back into owners hand but nothing happened.
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
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby 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?
muppet
Tester
 
Posts: 590
Joined: 03 Aug 2011, 14:37
Has thanked: 33 times
Been thanked: 30 times

Re: Bug reports

Postby melvin » 01 Nov 2013, 13:31

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.
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: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?
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/
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby 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.
muppet
Tester
 
Posts: 590
Joined: 03 Aug 2011, 14:37
Has thanked: 33 times
Been thanked: 30 times

Re: Bug reports

Postby Huggybaby » 01 Nov 2013, 18:45

See attached.
Attachments
crash.log
(28.06 KiB) Downloaded 220 times
User avatar
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

Postby 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
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby melvin » 02 Nov 2013, 01:25

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.
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!
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby Huggybaby » 03 Nov 2013, 01:53

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
Yes, I do believe multiple undos were involved. :wink:

ensure that update to LogBookViewer is performed on EDT
Eastern Daylight Time?
User avatar
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

Postby melvin » 03 Nov 2013, 02:07

Huggybaby wrote:
ensure that update to LogBookViewer is performed on EDT
Eastern Daylight Time?
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.

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.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby Huggybaby » 03 Nov 2013, 03:09

Nice! Thanks for the explanation.

But you're too kind, I was being funny. Well, maybe being a smartass. :lol: :mrgreen: :twisted:
User avatar
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

Postby sponeta » 07 Nov 2013, 19:53

Druid's Deliverance prevents damage to caster and creatures, even though the card text only specifies "you".
sponeta
Tester
 
Posts: 131
Joined: 26 Sep 2011, 17:09
Has thanked: 13 times
Been thanked: 22 times

Re: Bug reports

Postby 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".
sponeta
Tester
 
Posts: 131
Joined: 26 Sep 2011, 17:09
Has thanked: 13 times
Been thanked: 22 times

Re: Bug reports

Postby melvin » 08 Nov 2013, 00:43

sponeta wrote:Angelic Edict allows you to target an artifact or enchantment, even though the card text says "creature or enchantment".
Thanks! Fixed in https://code.google.com/p/magarena/sour ... 5fc5efb918 for next release

sponeta wrote:Druid's Deliverance prevents damage to caster and creatures, even though the card text only specifies "you".
Confirmed. Working on a fix.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby 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.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

PreviousNext

Return to Magarena

Who is online

Users browsing this forum: No registered users and 3 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form