Page 1 of 1

[fixed/closed]Alara Reborn Draft

PostPosted: 26 Sep 2013, 21:54
by HarlequinCasts
Describe the Bug:
So this is a weird one, but I've never been able to complete a triple Alara Reborn draft without the game crashing at the final card pick. Having any other set as the final pack allows the draft to complete normally.

Could any drafters take a look and see if you can complete a triple Alara Reborn draft? Alara_Reborn is in the 71-80 set.

I have tested both enforced rarity and not enforced rarity and they always crash.

EDIT (Oct 20 2014):

Tested in M15 mini patch 4 just for the hell of it. Still crash at the final card.
Adding offset:
Fault Module Name: manalinkeh.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 54398ddd
Exception Code: c0000005
Exception Offset: 000acebe
Which card did behave improperly ?
Drafting triple Alara Reborn

Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
OoAv1

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

Are any other cards possibly affected by this bug ?
NA

Re: Alara Reborn Draft Crash

PostPosted: 27 Sep 2013, 05:46
by stassy
I confirm the crashes at the end of the card choice list

Re: [confirmed]Alara Reborn Draft

PostPosted: 27 Sep 2013, 11:12
by Korath
picks[1][] seems to be getting garbage written to it.
gdb output | Open
Code: Select all
$ gdb magic.exe -ex 'sym ManalinkEh.dbg' -ex run
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from G:\mtg\Manalink 3.0\Program\magic.exe...(no debugging symbols found)...done.
Reading symbols from G:\mtg\Manalink 3.0\Program\ManalinkEh.dbg...done.
Starting program: G:\mtg\Manalink 3.0\Program\magic.exe
[New Thread 5104.0x1404]
Error while mapping shared library sections:
`G:\mtg\Manalink 3.0\Program\DeckDLL.dll': not in executable format: File format not recognized
[New Thread 5104.0x1d94]
[New Thread 5104.0x1928]
[New Thread 5104.0x1bac]
[New Thread 5104.0x588]
[New Thread 5104.0x1f4c]
[New Thread 5104.0x1c0c]
[New Thread 5104.0x1480]
[New Thread 5104.0x5e8]
[New Thread 5104.0x1da0]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 5104.0x1da0]
0x020913bb in build_deck (deck_name=0x9ecf4ec "Draft Opponent 1", player=1)
    at cards/draft.c:1156
1156                score += c->ai_base_value;
(gdb) Error while mapping shared library sections:
`G:\mtg\Manalink 3.0\Program\image.dll': not in executable format: File format not recognized
warning: Invalid parameter passed to C runtime function.

warning: Invalid parameter passed to C runtime function.

warning: Invalid parameter passed to C runtime function.

warning: Invalid parameter passed to C runtime function.

warning: Invalid parameter passed to C runtime function.

warning: Invalid parameter passed to C runtime function.

bt
#0  0x020913bb in build_deck (deck_name=0x9ecf4ec "Draft Opponent 1",
    player=1) at cards/draft.c:1156
#1  0x02092a97 in card_draft (player=0, card=7, event=EVENT_RESOLVE_TRIGGER)
    at cards/draft.c:1540
#2  0x004018e0 in ?? ()
#3  0x00435abc in ?? ()
#4  0x004779d9 in ?? ()
#5  0x004367c3 in ?? ()
#6  0x00434919 in ?? ()
#7  0x004766dc in ?? ()
#8  0x004372a4 in ?? ()
#9  0x0043ae12 in ?? ()
#10 0x00439983 in ?? ()
#11 0x0047902c in ?? ()
#12 0x004946e9 in ?? ()
#13 0x7637d2e9 in KERNEL32!AcquireSRWLockExclusive ()
   from C:\Windows\system32\kernel32.dll
#14 0x771a1603 in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#15 0x771a15d6 in ntdll!RtlInitializeNtUserPfn ()
   from C:\Windows\system32\ntdll.dll
#16 0x00000000 in ?? ()
(gdb) frame 0
#0  0x020913bb in build_deck (deck_name=0x9ecf4ec "Draft Opponent 1",
    player=1) at cards/draft.c:1156
1156                score += c->ai_base_value;
(gdb) l
1151                fprintf(file2, "CARD: %d, pick=%d ", i, picks[player][i] );
1152                card_ptr_t* c = cards_ptr[ picks[player][i] ];
1153                if( picks[player][i]  < 1 ){
1154                    fprintf(file2,"Invalid pick found: %d, pick=%d\n", i, picks[player][i] );
1155                }
1156                score += c->ai_base_value;
1157                fprintf(file2,"CARD SCORE: %d\n", c->ai_base_value );
1158            }
1159        }
1160        fprintf(file2,"Score: %d\n", score );
(gdb) p *c
Cannot access memory at address 0xff0c242c
(gdb) p player
$1 = 1
(gdb) p i
$2 = 0
(gdb) p picks[player][i]
$3 = 37018855
(gdb) p picks
$4 = {{10239, 10239, 10242, 10236, 10250, 10236, 10297, 10250, 10287, 10322,
    10287, 10334, 10318, 10370, 10370, 10237, 10242, 10237, 10237, 10239,
    10236, 10268, 10330, 10370, 10271, 10287, 10322, 10370, 10273, 10334,
    10252, 10237, 10236, 10249, 10236, 10237, 10376, 10334, 10376, 10250,
    10372, 10370, 10277, 10287, 10334, -1 <repeats 55 times>}, {37018855, 0,
    166523624, 36966354, 37115805, -554592023, 0, 0, 1973553656, 166523416,
    1972936574, 21456360, 166523428, 1972972503, 166523452, 512, 1972979284,
    1973553656, 1972979092, 166524140, 0, -2, -1, -3, 166461440, 16, 49, 3,
    1, 0, 1972979092, 34149863, 1973553656, 37015426, 10334, 166524140, 49,
    0, 166524700, 36960166, -1 <repeats 60 times>}, {1471, 10260, 10347,
    10249, 10260, 10373, 10373, 10369, 10330, 10250, 10322, 10376, 10287,
    10318, 10273, 1471, 10374, 10281, 10265, 10304, 10332, 10237, 10294,
    10272, 10294, 10268, 10268, 10370, 10242, 10334, 1471, 10244, 10303,
    10375, 10330, 10364, 10271, 10237, 10242, 10297, 10322, 10239, 10277,
    10297, 10334, -1 <repeats 55 times>}, {10317, 10348, 10347, 10249, 10249,
    10249, 10250, 10252, 10239, 10355, 10285, 10258, 10294, 10277, 10376,
    10348, 10317, 10326, 10306, 10327, 10356, 10272, 10319, 10250, 10239,
    10372, 10258, 10250, 10250, 10318, 1471, 10348, 10347, 10327, 10260,
    10264, 10356, 10297, 10259, 10285, 10294, 10271, 10242, 10287, 10334,
    -1 <repeats 55 times>}, {1471, 10348, 10314, 10332, 10243, 10271, 10332,
    10294, 10297, 10237, 10318, 10268, 10239, 10258, 10334, 10331, 10331,
    10246, 10326, 10361, 10342, 10310, 10237, 10363, 10285, 10271, 10322,
    10239, 10334, 10334, 1471, 10358, 10252, 10314, 10259, 10245, 10294,
    10319, 10237, 10322, 10297, 10294, 10277, 10277, 10334,
    -1 <repeats 55 times>}, {1471, 10275, 10260, 10260, 10371, 10243, 10237,
    10250, 10251, 10250, 10285, 10271, 10372, 10273, 10370, 10348, 10331,
    10331, 10342, 10330, 10249, 10361, 10266, 10250, 10294, 10268, 10294,
    10250, 10239, 10370, 1471, 10260, 10249, 10342, 10330, 10374, 10298,
    10319, 10271, 10237, 10239, 10370, 10273, 10370, 10287,
    -1 <repeats 55 times>}, {10244, 10306, 10331, 10259, 10327, 10330, 10342,
    10373, 10272, 10369, 10266, 10239, 10271, 10273, 10277, 10348, 1471,
    10330, 10252, 10252, 10291, 10319, 10264, 10322, 10319, 10242, 10322,
    10294, 10334, 10334, 1471, 10246, 10252, 10327, 10319, 10301, 10310,
    10237, 10315, 10264, 10318, 10355, 10236, 10271, 10334,
    -1 <repeats 55 times>}, {1471, 10324, 10260, 10331, 5259, 10260, 10319,
    10330, 10239, 10330, 10242, 10299, 10236, 10370, 10287, 10350, 10317,
    10281, 10265, 10330, 10249, 10319, 10259, 10373, 10322, 10242, 10268,
    10273, 10376, 10334, 10348, 10260, 10260, 10265, 10249, 10260, 10260,
    10356, 10319, 10273, 10322, 10290, 10258, 10372, 10334,
    -1 <repeats 55 times>}}

Re: [confirmed]Alara Reborn Draft

PostPosted: 24 Feb 2015, 19:14
by Aswan jaguar
I don't know if it helps but humans deck gets created but none AI deck.

Re: [fixed/closed]Alara Reborn Draft

PostPosted: 28 Jun 2022, 11:41
by Aswan jaguar
Has already been fixed - closed.