It is currently 18 Apr 2024, 07:40
   
Text Size

[fixed]Scrapheap Scrounger crashes game on activate

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

[fixed]Scrapheap Scrounger crashes game on activate

Postby drool66 » 18 Oct 2017, 07:54

Describe the Bug:
Scrapheap Scrounger crashes on resolution of its reanimate ability
Code: Select all
Assertion failed
functions/deck.c:1489
graveyard_ptr_mutable[player][position] == iid_draw_a_card
0: 0x0247CE18
1: 0x0247CF69
2: 0x024A6A7F
3: 0x023D7568
4: 0x020A710D
5: 0x024EC735
6: 0x024D745D
7: 0x024D74BF
8: 0x0249548E
9: 0x0249ABA9
10: 0x024EC735
11: 0x024D745D
12: 0x024D7BB3
13: 0x004344B2
14: 0x0043C147
15: 0x004399BD
16: 0x0047902C
17: 0x004946E9
18: 0x77458744
19: 0x77A5582D
20: 0x77A557FD
21: 0x00000000
Which card did behave improperly?
Scrapheap Scrounger

Which update are you using? (date, name)Which type? (duel, gauntlet, sealed deck)
Manalink dev 778ccb5 version - duel

What exactly should be the correct behavior/interaction?
No crash

Are any other cards possibly affected by this bug?
-
Attachments
ScrapheapScrounger.zip
(3.68 KiB) Downloaded 232 times
Last edited by drool66 on 13 Mar 2021, 22:48, edited 5 times in total.
Reason: fixed last issue
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times

Re: Scrapheap Scrounger crashes game on activate

Postby Aswan jaguar » 20 Oct 2017, 13:59

The crash happens at most times not all and has to do something with it's position in graveyard it has to be on top of creatures not to crash but also another factor is true that I didn't find.
However when it doesn't crash:
a- it always vanishes the selected creature probably it replaces it with a Swamp.
b- and one time it vanished a creature and returned another to the battlefield not Scrapheap Scrounger.

Also the ability is highlighted in Rules Engine even if you don't have the appropriate mana to activate it.
Last edited by Aswan jaguar on 18 Mar 2020, 15:30, edited 1 time in total.
Reason: strikethrough fixed
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: [part-confirmed]Scrapheap Scrounger crashes game on acti

Postby Aswan jaguar » 18 Mar 2020, 15:29

Aswan jaguar wrote:Also the ability is highlighted in Rules Engine even if you don't have the appropriate mana to activate it.
Fixed this in commit a160099.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: [part-confirmed]Scrapheap Scrounger crashes game on acti

Postby Korath » 10 Oct 2020, 09:23

Rules engine just records a position in a graveyard, and makes no effort whatsoever to ensure that the card that's there, and that it casts or exiles from the graveyard, is the same as the one that was there before it calls EVENT_PAY_FLASHBACK_COSTS.

And if you happen to have two copies of the card in your graveyard, gather_body_parts() makes no effort to make the correct one unpickable, it just disables the first card that happens to have the same csvid.

Also, this ability is letting you cast it from your graveyard, not putting it onto the battlefield from there.

But none of that's what crashing. The last loop in gather_body_parts() is reading past the end of its array.
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: [fixed]Scrapheap Scrounger crashes game on activate

Postby drool66 » 12 Mar 2021, 00:13

Fixed, uncommitted. Same issue as Headless Skab viewtopic.php?f=86&t=22458
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times

Re: [fixed]Scrapheap Scrounger crashes game on activate

Postby Aswan jaguar » 13 Mar 2021, 12:23

The crash on activation has been fixed but still has issue if you select the bottom card to exile then Scrapheap Scrounger stays in grave.
Maybe the first point of what Korath says above can direct you to the problem.

Edit: the same issue reported here for Skaab Ruinator and Korath explains the bug better:
viewtopic.php?f=86&t=16411&p=199455&hilit=Skaab+Ruinator#p199455
Last edited by Aswan jaguar on 13 Mar 2021, 12:41, edited 1 time in total.
Reason: edit
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: [still bug]Scrapheap Scrounger crashes game on activate

Postby drool66 » 13 Mar 2021, 22:47

Fixed this in d395956
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times


Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 78 guests


Who is online

In total there are 78 users online :: 0 registered, 0 hidden and 78 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 78 guests

Login Form