orangeduck / Corange

Pure C Game Engine
http://www.youtube.com/watch?v=482GxqTWXtA
Other
1.78k stars 199 forks source link

Segmentation Fault #80

Open gkan30 opened 1 year ago

gkan30 commented 1 year ago

After compiling demos and executing them, I get the following error...

[ERROR] (src/corange.c:corange_signal:9) Segmentation fault

Any help would be appreciated.. Here is the full output

[DEBUG] (src/corange.c:corange_init:53) Starting Corange... [DEBUG] (src/corange.c:corange_init:56) Creating Asset Manager... [DEBUG] (src/corange.c:corange_init:57) Core Assets At '../../assets_core' ... [DEBUG] (src/corange.c:corange_init:95) Creating Entity Manager... [DEBUG] (src/corange.c:corange_init:110) Creating UI Manager... [DEBUG] (src/corange.c:corange_init:127) Creating Graphics Manager... [DEBUG] (src/corange.c:corange_init:131) Creating Audio Manager... [DEBUG] (src/corange.c:corange_init:135) Creating Joystick Manager... [DEBUG] (src/cjoystick.c:joystick_init:16) Found 0 joysticks [DEBUG] (src/corange.c:corange_init:139) Creating Network Manager... [DEBUG] (src/corange.c:corange_init:142) Finished! [DEBUG] (src/casset.c:folder_load:308) Loading Folder: 'C:\Users---\Corange\demos\rendering\assets\podium\' [DEBUG] (src/casset.c:file_load:282) Loading: 'C:\Users---\Corange\demos\rendering\assets\podium\podium.bmf' [DEBUG] (src/casset.c:file_load:282) Loading: 'C:\Users---\Corange\demos\rendering\assets\podium\podium.mat' [DEBUG] (src/casset.c:file_load:282) Loading: 'C:\Users---\Corange\demos\rendering\assets\podium\podium.dds' [ERROR] (src/corange.c:corange_signal:9) Segmentation fault

blogdron commented 1 year ago

Not enough information Try compile with -O2

Change option this https://github.com/orangeduck/Corange/blob/97f9e333b05cfd391e98b5027c3873c123785da2/Makefile#L7 And htis https://github.com/orangeduck/Corange/blob/97f9e333b05cfd391e98b5027c3873c123785da2/demos/rendering/Makefile#L4

or try use gdb to find out where exactly the error occurs