Engine crashed when unload collection

#1

Engine is crashed when i unload collection(battle scene).
I try to make small repro case but can’t.
I can add someone from defold team to my project if it help.

It crashed when

  1. unload collection (return from battle scene to menu scene)
  2. battle scene was playing scale animation
go.animate(COMMON.CONSTANTS.URL.BATTLE.WORD_MAIN_CTR,"scale",go.PLAYBACK_ONCE_PINGPONG,1.1,vmath.vector({0,1,0,1}),1.5)

crash

ERROR:CRASH: CALL STACK:

 0 0x7FF66B841ED0 _snscanf_s <unknown>:0
 1 0x7FF66B841ED0 _snscanf_s <unknown>:0
 2 0xDD9A70 alcCreateContext <unknown>:0
 3 0x7FFD2C11F490 UnhandledExceptionFilter <unknown>:0
 4 0x7FFD2E362FC0 memset <unknown>:0
 5 0x7FFD2E34C640 __C_specific_handler <unknown>:0
 6 0x7FFD2E3610E0 __chkstk <unknown>:0
 7 0x7FFD2E329EF0 RtlRaiseException <unknown>:0
 8 0x7FFD2E35FE40 KiUserExceptionDispatcher <unknown>:0
 9 0x7FF66B959610 DecryptXTeaCTR <unknown>:0
10 0x7FF66B959610 DecryptXTeaCTR <unknown>:0
11 0x7FF66B874E60 dmHashReverseSafe64 <unknown>:0
12 0x7FF66B874E60 dmHashReverseSafe64 <unknown>:0
13 0x7FF66B874E60 dmHashReverseSafe64 <unknown>:0
14 0x7FF66B874E60 dmHashReverseSafe64 <unknown>:0
15 0x7FF66B841ED0 _snscanf_s <unknown>:0
16 0x7FF66B874E60 dmHashReverseSafe64 <unknown>:0
17 0x7FF66B874E60 dmHashReverseSafe64 <unknown>:0
18 0x7FF66B82D700 sprintf <unknown>:0
19 0x7FF66BA43AD0 LZ4MaxCompressedSize <unknown>:0
20 0x7FFD2D717BC0 BaseThreadInitThunk <unknown>:0
21 0x7FFD2E32CEB0 RtlUserThreadStart <unknown>:0

crash.zip (19.1 KB)

1 Like

#2

Well, that callstack looks broken. E.g. “sprintf” does not call our “dmHashReverseSafe64” function.

It would be good if you could supply a small repro case for this.

1 Like

#3

i will try. Not sure that i can do that.
It only happened in my project. When i try to make same thing in new project, it worked. I do not know why it can happened

0 Likes

#4

i use some native extension. Can they broke callstack?

0 Likes

#5

It’s possble, yes. E.g. if something overwrote the stack.

0 Likes