davewx7 / citadel

A turn based strategy game based on the Anura engine
Other
98 stars 25 forks source link

Crash when opening a pack #161

Open crabel opened 6 years ago

crabel commented 6 years ago

Opened a pack, got an instant crash:

INFO: formula_function.cpp:4627 : LOG: ['MATCHMAKE:', 'pack_opened', {'contents': [{'id': '591b94f97e1145feaad35cd5baa9cc9d','name': 'If-Uluk, the Swift'}, {'id': '99e15b5d47cb4f35af33d65665ae6554','name': 'Flash Flood'}, {'id': '0efef1dc3f9640588cba6492b14667b8','name': 'effect_black_smoke_circling_hex'}, {'id': '56b47c47f3d341bb8775ebceefba6d06','name': 'effect_rain'}],'set': 'core','type': 'pack_opened'}] ERROR: asserts.cpp:149 : ASSERT FAIL: formula_vm.cpp:451 ASSERTION FAILED: Assertion failed: (info is string|map) message: ["Unknown card","effect_rain"] at in Virtual Machine: At citadel.cfg 85: ...fo is string|map) | ['Unknown card', name] ^ ---VM: 0: OP_CONSTANT 0 ( "@eval (UNSERIALIZABLE_OBJECT N10game_logic12_GLOBALN_121get_document_function... ) 2: OP_CONSTANT 1 ( "data/cards.cfg" ) 4: OP_CALL_BUILTIN 1 6: OP_DUP 7: OP_CONSTANT 2 ( "@eval (UNSERIALIZABLE_OBJECT N12_GLOBALN_119variant_type_simpleE)" ) 9: OP_IS 10: OP_POP_JMP_IF 7 ( -> 18) 12: OP_CONSTANT 3 ( "Type mis-match. Expected map found " ) 14: OP_SWAP 15: OP_ADD 16: OP_PUSH_NULL 17: OP_ASSERT 18: OP_LOOKUP 97 20: OP_INDEX 21: OP_WHERE 98 23: OP_LOOKUP 98 25: OP_CONSTANT 4 ( "@eval (UNSERIALIZABLE_OBJECT N12_GLOBALN_118variant_type_unionE)" ) 27: OP_IS 28: OP_JMP_IF 11 ( -> 40) 30: OP_CONSTANT 5 ( "(info is string|map)" ) 32: OP_CONSTANT 6 ( "Unknown card" ) 34: OP_LOOKUP 97 36: OP_PUSH_INT 2 38: OP_LIST -->39: OP_ASSERT 40: OP_POP 41: OP_LOOKUP 98 43: OP_CONSTANT 7 ( "@eval (UNSERIALIZABLE_OBJECT N12_GLOBALN_119variant_type_simpleE)" ) 45: OP_IS 46: OP_JMP_UNLESS 18 ( -> 65) 48: OP_POP 49: OP_LOOKUP 7 51: OP_PUSH_SCOPE 52: OP_LOOKUP 40 54: OP_POP_SCOPE 55: OP_PUSH_SCOPE 56: OP_LOOKUP 47 58: OP_POP_SCOPE 59: OP_LOOKUP 98 61: OP_CALL 1 63: OP_JMP 49 ( -> 113) 65: OP_POP 66: OP_CONSTANT 8 ( "@eval (UNSERIALIZABLE_OBJECT N10game_logic12_GLOBAL__N_115strstr_functionE)" ) 68: OP_LOOKUP 97 70: OP_CONSTANT 9 ( "#" ) 72: OP_CALL_BUILTIN 2 74: OP_PUSH_0 75: OP_NEQ 76: OP_JMP_UNLESS 33 ( -> 110) 78: OP_POP 79: OP_LOOKUP 7 81: OP_PUSH_SCOPE 82: OP_LOOKUP 40 84: OP_POP_SCOPE 85: OP_PUSH_SCOPE 86: OP_LOOKUP 47 88: OP_POP_SCOPE 89: OP_LOOKUP 7 91: OP_PUSH_SCOPE 92: OP_LOOKUP 40 94: OP_POP_SCOPE 95: OP_PUSH_SCOPE 96: OP_CONSTANT 10 ( "@eval def(name) regex_replace(name, '#.*', '')" ) 98: OP_POP_SCOPE 99: OP_LOOKUP 97 101: OP_CALL 1 103: OP_CALL 1 105: OP_LOOKUP 98 107: OP_ADD 108: OP_JMP 4 ( -> 113) 110: OP_POP 111: OP_LOOKUP 98 113: OP_POP_SCOPE

---STACK--- --TOS+0-- ['Unknown card', 'effect_rain'] --TOS+1-- '(info is string|map)' --TOS+2-- false

CRITICAL: At citadel.cfg 80: ( ^

At citadel.cfg 90: construct('card', deep_copy(get_card_info(name) + args)) ^

At open_packs_screen.cfg 188: execute(me, ^

At matchmaking_base.cfg 16: 'pack_opened', if(open_packs_screen, [ ^

At modules/tbs/data/object_prototypes/matchmaking_core.cfg 236: matchmaking_handle_module_message(message); ^-----------------------------------------^

At modules/tbs/data/object_prototypes/title_controller_base.cfg 307: matchmaking_handle_message(message),

There is more in the client stacktrace, I can post it if you need it.

Oh, and I would appreciate it if you could log only the filename or path inside of dlc/ instead of the full path to the home directory.

ghost commented 6 years ago

My fault. I'm very sorry. I'd give you a refund if I could. Won't happen again.

Sent from my iPhone

On 10 Nov 2017, at 15:23, Christoph Rabel notifications@github.com<mailto:notifications@github.com> wrote:

Opened a pack, got an instant crash:

INFO: formula_function.cpp:4627 : LOG: ['MATCHMAKE:', 'pack_opened', {'contents': [{'id': '591b94f97e1145feaad35cd5baa9cc9d','name': 'If-Uluk, the Swift'}, {'id': '99e15b5d47cb4f35af33d65665ae6554','name': 'Flash Flood'}, {'id': '0efef1dc3f9640588cba6492b14667b8','name': 'effect_black_smoke_circling_hex'}, {'id': '56b47c47f3d341bb8775ebceefba6d06','name': 'effect_rain'}],'set': 'core','type': 'pack_opened'}] ERROR: asserts.cpp:149 : ASSERT FAIL: formula_vm.cpp:451 ASSERTION FAILED: Assertion failed: (info is string|map) message: ["Unknown card","effect_rain"] at in Virtual Machine: At citadel.cfg 85: ...fo is string|map) | ['Unknown card', name] ^ ---VM: 0: OP_CONSTANT 0 ( "@evalhttps://github.com/eval (UNSERIALIZABLE_OBJECT N10game_logic12_GLOBALN_121get_document_function... ) 2: OP_CONSTANT 1 ( "data/cards.cfg" ) 4: OP_CALL_BUILTIN 1 6: OP_DUP 7: OP_CONSTANT 2 ( "@evalhttps://github.com/eval (UNSERIALIZABLE_OBJECT N12_GLOBALN_119variant_type_simpleE)" ) 9: OP_IS 10: OP_POP_JMP_IF 7 ( -> 18) 12: OP_CONSTANT 3 ( "Type mis-match. Expected map found " ) 14: OP_SWAP 15: OP_ADD 16: OP_PUSH_NULL 17: OP_ASSERT 18: OP_LOOKUP 97 20: OP_INDEX 21: OP_WHERE 98 23: OP_LOOKUP 98 25: OP_CONSTANT 4 ( "@evalhttps://github.com/eval (UNSERIALIZABLE_OBJECT N12_GLOBALN_118variant_type_unionE)" ) 27: OP_IS 28: OP_JMP_IF 11 ( -> 40) 30: OP_CONSTANT 5 ( "(info is string|map)" ) 32: OP_CONSTANT 6 ( "Unknown card" ) 34: OP_LOOKUP 97 36: OP_PUSH_INT 2 38: OP_LIST -->39: OP_ASSERT 40: OP_POP 41: OP_LOOKUP 98 43: OP_CONSTANT 7 ( "@evalhttps://github.com/eval (UNSERIALIZABLE_OBJECT N12_GLOBALN_119variant_type_simpleE)" ) 45: OP_IS 46: OP_JMP_UNLESS 18 ( -> 65) 48: OP_POP 49: OP_LOOKUP 7 51: OP_PUSH_SCOPE 52: OP_LOOKUP 40 54: OP_POP_SCOPE 55: OP_PUSH_SCOPE 56: OP_LOOKUP 47 58: OP_POP_SCOPE 59: OP_LOOKUP 98 61: OP_CALL 1 63: OP_JMP 49 ( -> 113) 65: OP_POP 66: OP_CONSTANT 8 ( "@evalhttps://github.com/eval (UNSERIALIZABLE_OBJECT N10game_logic12_GLOBAL__N_115strstr_functionE)" ) 68: OP_LOOKUP 97 70: OP_CONSTANT 9 ( "#" ) 72: OP_CALL_BUILTIN 2 74: OP_PUSH_0 75: OP_NEQ 76: OP_JMP_UNLESS 33 ( -> 110) 78: OP_POP 79: OP_LOOKUP 7 81: OP_PUSH_SCOPE 82: OP_LOOKUP 40 84: OP_POP_SCOPE 85: OP_PUSH_SCOPE 86: OP_LOOKUP 47 88: OP_POP_SCOPE 89: OP_LOOKUP 7 91: OP_PUSH_SCOPE 92: OP_LOOKUP 40 94: OP_POP_SCOPE 95: OP_PUSH_SCOPE 96: OP_CONSTANT 10 ( "@evalhttps://github.com/eval def(name) regex_replace(name, '#.*', '')" ) 98: OP_POP_SCOPE 99: OP_LOOKUP 97 101: OP_CALL 1 103: OP_CALL 1 105: OP_LOOKUP 98 107: OP_ADD 108: OP_JMP 4 ( -> 113) 110: OP_POP 111: OP_LOOKUP 98 113: OP_POP_SCOPE

---STACK--- --TOS+0-- ['Unknown card', 'effect_rain'] --TOS+1-- '(info is string|map)' --TOS+2-- false

CRITICAL: At citadel.cfg 80: ( ^

At citadel.cfg 90: construct('card', deep_copy(get_card_info(name) + args)) ^

At open_packs_screen.cfg 188: execute(me, ^

At matchmaking_base.cfg 16: 'pack_opened', if(open_packs_screen, [ ^

At modules/tbs/data/object_prototypes/matchmaking_core.cfg 236: matchmaking_handle_module_message(message); ^-----------------------------------------^

At modules/tbs/data/object_prototypes/title_controller_base.cfg 307: matchmaking_handle_message(message),

There is more in the client stacktrace, I can post it if you need it.

Oh, and I would appreciate it if you could log only the filename or path inside of dlc/ instead of the full path to the home directory.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/davewx7/citadel/issues/161, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADXqJGx63wEAXBrokOOJuLVS7M6g_G13ks5s1FxOgaJpZM4QZn7F.

crabel commented 6 years ago

Don't worry. No big deal. Where things are changed/improved, things go wrong too. Nobody is perfect. I am glad if things get fixed.