Hello,
sorry for the title but I don’t know how to name my problem in a better way . Basically what happened is that I had my prototype of a game working on PC and on my Android phone., then I made some changes to the code and it started crashing at a very specific point.
How to reproduce:
- Launch the game
- Click “Start”
- Die (you can control the spaceship with your finger, just wait for the enemy ships to come from the top and get hit 4 times by their projectiles)
- On “Game Over” screen click “Continue”
- Click “Start” again
- CRASH!
I thought it was some of my code doing it so I rerolled my code to the last version when it worked and the crash still happens at the exact same point. I tried to bundle on two different computers using Defold version 1.2.171. I don’t know what is causing the error because the crash dump is incomprehensible to me. If any of you have any suggestion I would be really grateful.
Here is the crash error message:
ERROR:CRASH: CALL STACK:
0 0x7FF6769DA790 _snscanf_s <unknown>:0
1 0x369A70 alcCreateContext <unknown>:0
2 0x7FFB5E99FD00 UnhandledExceptionFilter <unknown>:0
3 0x7FFB619C2F80 memset <unknown>:0
4 0x7FFB619AC5C0 __C_specific_handler <unknown>:0
5 0x7FFB619C10B0 __chkstk <unknown>:0
6 0x7FFB61989E70 RtlRaiseException <unknown>:0
7 0x7FFB619BFE10 KiUserExceptionDispatcher <unknown>:0
8 0x7FF6769817E0 printf <unknown>:0
9 0x7FF676980000 Ordinal0 <unknown>:0
10 0x7FF6769817E0 printf <unknown>:0
11 0x7FF6769C52F0 _snprintf <unknown>:0
12 0x7FF6769DA790 _snscanf_s <unknown>:0
13 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
14 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
15 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
16 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
17 0x7FF676ABBFE0 Particle_Hash <unknown>:0
18 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
19 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
20 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
21 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
22 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
23 0x7FF6769B7C40 sprintf <unknown>:0
24 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
25 0x7FF676A07F40 dmHashReverseSafe64 <unknown>:0
26 0x7FF6769B7C40 sprintf <unknown>:0
27 0x7FF676C07F10 LZ4MaxCompressedSize <unknown>:0
28 0x7FFB61027BC0 BaseThreadInitThunk <unknown>:0
29 0x7FFB6198CE30 RtlUserThreadStart <unknown>:0
I have a repository which crashes for me here: https://bitbucket.org/VojtechKlos/defold-crash-repo/src/master/
Edit: The last working version before it started crashing is in the Master branch. The develop branch contains the code after which it started crashing.
Note: This is my first ever game I am very new to game programming and LUA so excuse my code
Thanks to anyone who would have any suggestion!