SOLVED: Engine crashes when loading collection containg sound

A bug has been introduced in v1.2.69 where a collection containing a sound component pointing to a sound that hasn’t been loaded earlier causes the engine to crash when it is created with a collectionfactory.

Example console output:

WARNING:RESOURCE: Unable to create resource: build/default/game/music/act3_1.oggc
WARNING:RESOURCE: Unable to create resource: build/default/scene/themes/sand_stone/theme_generated_0_generated_0.soundc
WARNING:RESOURCE: Unable to create resource: build/default/scene/themes/sand_stone/theme_generated_0.goc
Assertion failed: (parent_id), function CollectionSpawnFromDescInternal, file …/src/gameobject/gameobject.cpp, line 937.

1 Like

Turns out I had to raise the limit sound.max_sound_data in the project settings

2 Likes

Thanks, added an issue for this, engine should give a better error message!

2 Likes