Open rkettering opened 7 years ago
If I have an invalid path in the particle system I get the following logged error: ERROR: SurfaceSDL.cpp:730 : Failed to load image file: '\12\cube.png' : Couldn't open images/\12\cube.png
Please indicate if you get something different.
At one host of mine not exactly segfault, but the application terminates:
INFO: formula_function.cpp:4049 : Instrument: deck_preview_widget_markup_text: 2
4.0239ms
INFO: formula_function.cpp:4101 : Instrument: render_deck_preview_widget: 0ms
INFO: formula_function.cpp:4079 : Instrument Command: render_deck_preview_widget
: 0ms
INFO: formula_function.cpp:4101 : Instrument: spawn_objects_deck_preview_widget:
0ms
INFO: formula_function.cpp:4079 : Instrument Command: spawn_objects_deck_preview
_widget: 0ms
ERROR: SurfaceSDL.cpp:733 : Failed to load image file: 'particles/spade.png' : C
ouldn't open images/particles/spade.png
terminate called after throwing an instance of 'KRE::ImageLoadError'
what(): Failed to load image file: 'particles/spade.png' : Couldn't open imag
es/particles/spade.png
Aborted
$ echo $?
134
$ _
That log was from a cooked example at the particle system editor, but I've since checked that cooking an in-game example the output is exactly the same.
We probably want some kind of assert we can catch.