Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when opening a pack #161

Open
crabel opened this issue Nov 10, 2017 · 2 comments
Open

Crash when opening a pack #161

crabel opened this issue Nov 10, 2017 · 2 comments

Comments

@crabel
Copy link

crabel commented Nov 10, 2017

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_GLOBAL__N_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_GLOBAL__N_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_GLOBAL__N_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_GLOBAL__N_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
Copy link

ghost commented Nov 10, 2017 via email

@crabel
Copy link
Author

crabel commented Nov 10, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant