Assertion failed: size <= Capacity()

I’m getting the error message above in debug/release bundles but not in editor builds. Any ideas?

Attaching some things, let me know what else I can provide please.

Debug symbols:
dmengine.zip (8.1 MB)

_crash file:
_crash.zip (1.6 KB)

Editor version: 1.2.191 d393bae6a361f86cf2263ab312c9b3cea45253ab

Windows 10

0 0x7FF630B6B430 dmCrash::GenerateCallstack D:\a\defold\defold\engine\crash\src\backtrace_win32.cpp:142
 1 0x7FF630ED44A4 raise /tmp/job13466963903411766584/minkernel/crts/ucrt/src/appcrt/misc/signal.cpp:547
 2 0x7FF630EC5200 abort /tmp/job13466963903411766584/minkernel/crts/ucrt/src/appcrt/startup/abort.cpp:71
 3 0x7FF630EC4114 common_assert_to_stderr<wchar_t> /tmp/job13466963903411766584/minkernel/crts/ucrt/src/appcrt/startup/assert.cpp:175
 4 0x7FF630EC3C38 _wassert /tmp/job13466963903411766584/minkernel/crts/ucrt/src/appcrt/startup/assert.cpp:443
 5 0x7FF630C1B1B0 dmGameSystem::RenderBatch D:\a\defold\defold\engine\gamesys\src\gamesys\components\comp_particlefx.cpp:266
 6 0x7FF630C1B640 dmGameSystem::RenderListDispatch D:\a\defold\defold\engine\gamesys\src\gamesys\components\comp_particlefx.cpp:312
 7 0x7FF630B84AD0 dmRender::DrawRenderList D:\a\defold\defold\engine\render\src\render\render.cpp:565
 8 0x7FF630CCBB70 dmRender::ParseCommands D:\a\defold\defold\engine\render\src\render\render_command.cpp:169
 9 0x7FF630C4E3C0 dmRender::UpdateRenderScriptInstance D:\a\defold\defold\engine\render\src\render\render_script.cpp:2932
10 0x7FF630C1F2B0 dmEngine::Step D:\a\defold\defold\engine\engine\src\engine.cpp:1566
11 0x7FF630C1C430 dmEngineUpdate D:\a\defold\defold\engine\engine\src\engine.cpp:1994
12 0x7FF630C21930 dmEngine::RunLoop D:\a\defold\defold\engine\engine\src\engine_loop.cpp:69
13 0x7FF630B51A20 engine_main D:\a\defold\defold\engine\engine\src\engine_main.cpp:137
14 0x7FF630E87B94 __scrt_common_main_seh d:\agent\_work\4\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
15 0x7FFBC7677020 BaseThreadInitThunk <unknown>:0
16 0x7FFBC85E2630 RtlUserThreadStart <unknown>:0

I’ve managed to hone in on it and pinpointed it to a particlefx component of all things.

Check out this repro:
pfx_crash_repro.zip (7.4 KB)

On Windows 10, this should build fine in the editor but bundles should crash on start. If you remove the “square” emitter then the problem goes away.

2 Likes

I think we know what the problem is.
As a temp workaround until the fix, you may create a factory with GO that has only one component: a particle without emitters. It should help for now.

Thank you for this report and especially for a repocase!

UPD: https://github.com/defold/defold/issues/6333

2 Likes