Page 1 of 1

[confirmed]wrong parameters msg

PostPosted: 25 Mar 2022, 16:52
by gnomefry
When I see a parameters message just before a CTD, it's usually of the 'bad parameters' variety, which seems to be a graphical display of what I'll find in the dump.txt. This 'wrong parameters' message is a little different and (although it preceded a CTD) a new dump file wasn't created.

I thought I'd share in case it's of any use. Feel free to delete if not!

wrong_parameters.jpg



Holidays 2021 ad1a6f8 - gauntlet

Re: wrong parameters msg

PostPosted: 27 Mar 2022, 09:37
by Aswan jaguar
I confirm this in dev too. It seems some issue with Intruder Alarm and AI logic, I only tested the scenario as the screenshot/savegame (but with one Intruder Alarm in play as it is enough for the bug to happen). I also tried with no AI code in card_intruder_alarm() with the same results.

The error produced in release from windows event viewer (though it is exact the same in dev, too):
Code: Select all
    Event Type:   Error
    Event Source:   Application Error
    Event Category:   None
    Event ID:   1000
    Date:      27/3/2022
    Time:      12:23:33 μμ
    User:      N/A
    Computer:   ASWAN_JAGUAR
    Description:
    Faulting application magic.exe, version 7.0.0.0, faulting module magic.exe, version 7.0.0.0, fault address 0x00099807.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 41 70 70 6c 69 63 61 74   Applicat
    0008: 69 6f 6e 20 46 61 69 6c   ion Fail
    0010: 75 72 65 20 20 6d 61 67   ure  mag
    0018: 69 63 2e 65 78 65 20 37   ic.exe 7
    0020: 2e 30 2e 30 2e 30 20 69   .0.0.0 i
    0028: 6e 20 6d 61 67 69 63 2e   n magic.
    0030: 65 78 65 20 37 2e 30 2e   exe 7.0.
    0038: 30 2e 30 20 61 74 20 6f   0.0 at o
    0040: 66 66 73 65 74 20 30 30   ffset 00
    0048: 30 39 39 38 30 37 0d 0a   099807..

// the same data as above but in words:
0000: 6c707041 74616369 206e6f69 6c696146
0010: 20657275 67616d20 652e6369 37206578
0020: 302e302e 6920302e 616d206e 2e636967
0030: 20657865 2e302e37 20302e30 6f207461
0040: 65736666 30302074 38393930 0a0d3730

Re: wrong parameters msg

PostPosted: 27 Mar 2022, 14:06
by Korath
It's a corrupt stack, almost certainly from some aspect of the mana elf/Imperious Perfect/Intruder Alarm infinite combo. (Don't give the AI infinite combo decks. It can't deal with them.) ai_opinion_of_gamestate_extended(), which 0x499807 is in, only has space for sixteen creatures in its local arrays and doesn't check to see if it's writing past their ends, and, at a guess, the AI's probably creating many (many) more creatures than that during speculation.
Aswan jaguar wrote:The error produced in release from windows event viewer (though it is exact the same in dev, too)
You should be able to see by now that this isn't telling us anything that the popup in the screenshot doesn't, and considerably less.