It is currently 12 May 2025, 04:33
   
Text Size

[fix]Crash, get_card_instance(24248861, )

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

[fix]Crash, get_card_instance(24248861, )

Postby gnomefry » 14 Jul 2020, 01:33

Is it helpful to report a crash such as this that happens each time a particular turn is loaded? Call from the Grave is not in either side's deck. Savegame and dump file attached. Thanks!

version 6-2020 v3 a8bbff706 - gauntlet

Code: Select all
bad parameters
get_card_instance(24248861, 24248861)
0: 0x02521348
1: 0x024D693E
2: 0x024E486B
3: 0x0043467C
4: 0x0043C147
5: 0x004399BD
6: 0x0047902C
7: 0x004946E9
8: 0x75F06359
9: 0x77D27B74
10: 0x77D27B44
Attachments
dump.rar
(226 Bytes) Downloaded 191 times
Crash_AUTOSAVE.rar
(2.23 KiB) Downloaded 189 times
Last edited by drool66 on 24 Dec 2020, 19:24, edited 3 times in total.
Reason: fix
User avatar
gnomefry
Tester
 
Posts: 288
Joined: 28 Dec 2018, 00:44
Has thanked: 25 times
Been thanked: 24 times

Re: Crash, get_card_instance(24248861, 24248861)

Postby Aswan jaguar » 14 Jul 2020, 12:49

This bug is again about Arcbound Ravager but I don't know if this time is something that we changed lately in sacrifice code or elsewhere because the get_card_instance(24248861, 24248861) I think is quite different than others we had before and nothing has been changed to Arcbound Ravager's own code.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8129
Joined: 13 May 2010, 12:17
Has thanked: 748 times
Been thanked: 477 times

Re: Crash, get_card_instance(24248861, 24248861)

Postby FastEddie » 14 Jul 2020, 13:39

This is definitly something different. Usually parameters were (-1,-1) which means something wasn't set on the way. This is also not an overflow, so no simple explanation as of pixel time.

I might have a look into this later and see were I end up, but there are a few other bugs on my list that I would like to tackle first to get to know the code better.

Edit: I just got the same message in connection with Arcbound Ravager. Figures were identical down to position 8, so it looks like a certain function is called in a certain way (going up from 8 to 0) that it doesn't like. At least no randomness.
---
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: Crash, get_card_instance(24248861, 24248861)

Postby gnomefry » 15 Jul 2020, 02:00

{Edit: I mixed up save files on this second crash. I'll strike this one out and make a new post if I can reproduce the crash. Sorry.}

Here's a crash message I get on the opponent's turn. The first numbers in the dump file are the same as the previous one in this thread. But this time the opponent is using what looks to be a mono-red deck.

The turn begins by the AI casting ball lightning and the crash seems to come with whatever it tries to do next. Savegame and dump file attached. Thanks!

version 6-2020 v3 a8bbff706 - gauntlet

Code: Select all
bad parameters
get_card_instance(24248861, 24248861)
0: 0x02521348
1: 0x024D693E
2: 0x024E486B
3: 0x0043467C
4: 0x0043C147
5: 0x004399BD
6: 0x0047902C
7: 0x004946E9
8: 0x75F06359
9: 0x77D27B74
10: 0x77D27B44
Attachments
dump.rar
(226 Bytes) Downloaded 185 times
crash_AUTOSAVE.rar
(1.73 KiB) Downloaded 165 times
Last edited by gnomefry on 15 Jul 2020, 15:22, edited 1 time in total.
User avatar
gnomefry
Tester
 
Posts: 288
Joined: 28 Dec 2018, 00:44
Has thanked: 25 times
Been thanked: 24 times

Re: Crash, get_card_instance(24248861, 24248861)

Postby Aswan jaguar » 15 Jul 2020, 11:58

When I load your savegame I get a crash but never a dump error. :-k
Also the dump you uploaded is in fact about get_card_instance(24258771, 24258771) and not the one you have copy/pasted which is different in the 5 last numbers from first get_card_instance(24248861, 24248861).
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8129
Joined: 13 May 2010, 12:17
Has thanked: 748 times
Been thanked: 477 times

Re: Crash, get_card_instance(24248861, 24248861)

Postby gnomefry » 15 Jul 2020, 15:12

Oh crumbs. Sorry, AJ. For this second crash I posted last night I must have mixed up the dump/save files I wanted to post. Which isn't helpful towards figuring it all out!

I'll strike-through the second post and be more careful with my posted files on the next crash.
User avatar
gnomefry
Tester
 
Posts: 288
Joined: 28 Dec 2018, 00:44
Has thanked: 25 times
Been thanked: 24 times

Re: Crash, get_card_instance(24248861, 24248861)

Postby FastEddie » 15 Jul 2020, 15:49

The dump still makes kinda sense as the topmost address is the misbehaving function. Differences lower in the stack mean that the way taken to get this result was different but that doesn't invalidate it.
---
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: Crash, get_card_instance(24248861, 24248861)

Postby drool66 » 15 Jul 2020, 19:17

Jumping on this, maybe the conversation needs to move to the dev forum, but FastEddie, any way you can analyze what's happening in the Arcbound Ravager - Cranial Plating interaction? This is probably the most perplexing problem of all to me right now.
User avatar
drool66
Programmer
 
Posts: 1185
Joined: 25 Nov 2010, 22:38
Has thanked: 187 times
Been thanked: 280 times

Re: Crash, get_card_instance(24248861, 24248861)

Postby FastEddie » 16 Jul 2020, 16:20

I had (resp am still having) a quick first look.

Following your suggestion I opened a new thread in the developers forum here:

https://www.slightlymagic.net/forum/viewtopic.php?f=56&t=29897
---
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: [confirmed]Crash, get_card_instance(24248861, 24248861)

Postby FastEddie » 10 Aug 2020, 16:26

Can we mark this as partially fixed? Drool66 fixed it such that it doesn't carsh, although the solution is not perfect (but the best we have right now and I am glad for it).
---
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: [fix]Crash, get_card_instance(24248861, )

Postby drool66 » 24 Dec 2020, 19:25

I'm going to go ahead and mark this one fixed as of f0d1eb8 (Fix cases of illegal_state = TARGET_STATE_DYING / _DESTROYED - the one that fixed Arcbound Ravager)
User avatar
drool66
Programmer
 
Posts: 1185
Joined: 25 Nov 2010, 22:38
Has thanked: 187 times
Been thanked: 280 times


Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 47 guests


Who is online

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

Login Form