It is currently 20 Apr 2024, 03:45
   
Text Size

[duplicate]assertion error - graveyard_ptr_mutable

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

[duplicate]assertion error - graveyard_ptr_mutable

Postby gnomefry » 05 Oct 2020, 01:38

Describe the Bug:

I don't know the card causing this error and crash during opponent's main phase, but the message indicates something about the graveyard and card drawing. I thought I'd put it up here in case you guys can glean anything from it.

The dump.dmp:
Code: Select all
Assertion failed
functions/deck.c:1511
graveyard_ptr_mutable[player][position] == iid_draw_a_card
0: 0x0253E188
1: 0x0253E2E9
2: 0x024F451F
3: 0x021532F5
4: 0x02488B1D
5: 0x0254E415
6: 0x0252B97D
7: 0x0252B9DF
8: 0x024E6935
9: 0x024EAA97
10: 0x0254E415
11: 0x0252B97D
12: 0x0252C0A6
13: 0x004344B2
14: 0x00475D78
15: 0x00436D07
16: 0x00436A80
17: 0x0252C9F9
18: 0x00475CBF
19: 0x0252BC06
20: 0x0252C297
21: 0x004371B4
22: 0x0043D326
23: 0x00439A10
24: 0x0047902C
25: 0x004946E9
26: 0x77A56359
27: 0x77BA7B74
28: 0x77BA7B44

The board looked like this:

graveyard_mutable.jpg



Savegame attached, version 8-2020 a62926f - gauntlet. Thank you!
Attachments
gy_ptr_mutable.rar
(2.75 KiB) Downloaded 77 times
Last edited by Aswan jaguar on 11 Oct 2020, 07:29, edited 1 time in total.
Reason: duplicate
User avatar
gnomefry
Tester
 
Posts: 288
Joined: 28 Dec 2018, 00:44
Has thanked: 25 times
Been thanked: 24 times

Re: assertion error - graveyard_ptr_mutable

Postby FastEddie » 05 Oct 2020, 06:42

A word of explanation without looking into it further: failed assertions are errors that shouldn't occur in theory but occur surprisingly often in practice.
Assertions (via the function assert or in our case the macro ASSERT) check whether a certain condition holds and if not create the type of error you got. The is typically a sanity check, for example a parameter like card_id should not be negative (the most famous dump we have). But of course there are others. It is a smart way to have things blow up in a controlled way. You could go on with the wrong parameter, but something would break for sure and typically in a less expressive and readable way. This way we know what went wrong and where to look, which brings us one, maybe two steps ahead of the typical situation where you either know what breaks but not where to look or worse, you know that something breaks but not what and where.
---
Argivian Archaeologist in the Library of Leng studying the Spells of the Ancients
User avatar
FastEddie
 
Posts: 246
Joined: 24 Dec 2019, 10:59
Has thanked: 15 times
Been thanked: 19 times

Re: assertion error - graveyard_ptr_mutable

Postby Aswan jaguar » 10 Oct 2020, 08:38

AI doesn't want to crash it again in 10 times loading your savegame no crash or error whatsoever. It is also one of the very few games I remember especially with so few cards involved that AI makes such a variety of different plays each time savegame is loaded. If I remember correctly AI made 7 different plays out of 10 tried.
Probably this is a Scrapheap Scrounger (it is in AI's hand) issue as we do have a bug report about it or
a combination of two cards in AI's hand. Indulgent Aristocrat sacrifice ability vs Scrapheap Scrounger reanimate ability and how AI tries to combine those.
---
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


Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 79 guests


Who is online

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

Login Form