Crash. Assertion failed: (Capacity() - Size() > 0) (DEF-3605)


#1
Assertion failed: (Capacity() - Size() > 0), function Push, file /Users/builder/ci/builds/engine-darwin-64-beta/build/tmp/dynamo_home/sdk/include/dmsdk/dlib/array.h, line 464.

We caught a crash on all platforms (ios, android, macos).
I am not sure how to reproduce this crash, but maybe Crashdump will help.

0   dmengine                            0x000000010682e8da _ZN7dmCrash7OnCrashEi + 74
1   libsystem_platform.dylib            0x00007fffc6268b3a _sigtramp + 26
2   ???                                 0x5800327800000002 0x0 + 6341123766315122690
3   libsystem_c.dylib                   0x00007fffc60ed420 abort + 129
4   libsystem_c.dylib                   0x00007fffc60b4893 basename_r + 0
5   dmengine                            0x0000000106632190 _ZN12dmGameSystemL28CompModelSetConstantCallbackEPvyPjRKN12dmGameObject11PropertyVarE + 592
6   dmengine                            0x000000010662185c _ZN12dmGameSystem19SetMaterialConstantEPN8dmRender8MaterialEyRKN12dmGameObject11PropertyVarEPFvPvyPjS6_ES7_ + 140
7   dmengine                            0x0000000106631d9a _ZN12dmGameSystem18CompModelOnMessageERKN12dmGameObject24ComponentOnMessageParamsE + 442
8   dmengine                            0x0000000106602216 _ZN12dmGameObject24DispatchMessagesFunctionEPN9dmMessage7MessageEPv + 2150
9   dmengine                            0x00000001067b0134 _ZN9dmMessage16InternalDispatchEyPFvPNS_7MessageEPvES2_b + 452
10  dmengine                            0x0000000106607f81 _ZN12dmGameObjectL16DispatchMessagesEPNS_10CollectionEPyj + 257
11  dmengine                            0x0000000106604abf _ZN12dmGameObject6UpdateEPNS_16CollectionHandleEPKNS_13UpdateContextE + 895
12  dmengine                            0x0000000106623db5 _ZN12dmGameSystem25CompCollectionProxyUpdateERKN12dmGameObject22ComponentsUpdateParamsERNS0_22ComponentsUpdateResultE + 453
13  dmengine                            0x0000000106604a4e _ZN12dmGameObject6UpdateEPNS_16CollectionHandleEPKNS_13UpdateContextE + 782
14  dmengine                            0x00000001065e1c3a _ZN8dmEngine4StepEPNS_6EngineE + 1258
15  dmengine                            0x00000001066500d6 _ZN10dmGraphics18RunApplicationLoopEPvPFvS0_EPFiS0_E + 38
16  dmengine                            0x00000001065e29f3 _ZN8dmEngineL7InitRunEPN15dmEngineService13EngineServiceEiPPcPFvPNS_6EngineEPvES9_S7_ + 179
17  dmengine                            0x00000001065e287f _ZN8dmEngine6LaunchEiPPcPFvPNS_6EngineEPvES6_S4_ + 111
18  dmengine                            0x00000001065e2ae6 _Z11engine_mainiPPc + 118
19  dmengine                            0x000000010640b034 start + 52

_crash.zip (2.7 KB)


#2

Q: Are you using model.reset_constant() ?


#3

yes.


#4

Ok, then we’ve found the issue, and it will be fixed in 1.2.142