raduprv/Eternal-Lands — comment on commit 78a250124b3d70e1f4706f7a7a48582eac5d2c28
File:  line 0
By pjbroad:

I'm getting a new crash after this change:

==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x5CBAC4: ec::Effect::build_particle_buffer(unsigned long) (eye_candy.cpp:257)
==32068== by 0x5DEA4C: ec::EyeCandy::idle() (eye_candy.cpp:2779)
==32068== by 0x5AC22D: ec_idle (eye_candy_wrapper.cpp:480)
==32068== by 0x44EC7F: display_console_handler (consolewin.c:110)
==32068== by 0x4664B5: draw_window (elwindows.c:1251)
==32068== by 0x466DCC: display_window (elwindows.c:1436)
==32068== by 0x46346E: display_windows (elwindows.c:76)
==32068== by 0x458D0A: draw_scene (draw_scene.c:129)
==32068== by 0x4AF6C5: start_rendering (main.c:215)
==32068== by 0x4AFE8C: main (main.c:448)
==32068==
==32068== Invalid write of size 4
==32068== at 0x5CB741: ec::Effect::draw_particle(float, unsigned int, float, float, float, float, ec::Vec3, float) (eye_candy.cpp:224)
==32068== by 0x5D6E1B: ec::Particle::draw(unsigned long) (eye_candy.cpp:1258)
==32068== by 0x5CBCC8: ec::Effect::build_particle_buffer(unsigned long) (eye_candy.cpp:285)
==32068== by 0x5DEA4C: ec::EyeCandy::idle() (eye_candy.cpp:2779)
==32068== by 0x5AC22D: ec_idle (eye_candy_wrapper.cpp:480)
==32068== by 0x44EC7F: display_console_handler (consolewin.c:110)
==32068== by 0x4664B5: draw_window (elwindows.c:1251)
==32068== by 0x466DCC: display_window (elwindows.c:1436)
==32068== by 0x46346E: display_windows (elwindows.c:76)
==32068== by 0x458D0A: draw_scene (draw_scene.c:129)
==32068== by 0x4AF6C5: start_rendering (main.c:215)
==32068== by 0x4AFE8C: main (main.c:448)
==32068== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==32068==
==32068==
==32068== Process terminating with default action of signal 11 (SIGSEGV)
==32068== Access not within mapped region at address 0x0
==32068== at 0x5CB741: ec::Effect::draw_particle(float, unsigned int, float, float, float, float, ec::Vec3, float) (eye_candy.cpp:224)
==32068== by 0x5D6E1B: ec::Particle::draw(unsigned long) (eye_candy.cpp:1258)
==32068== by 0x5CBCC8: ec::Effect::build_particle_buffer(unsigned long) (eye_candy.cpp:285)
==32068== by 0x5DEA4C: ec::EyeCandy::idle() (eye_candy.cpp:2779)
==32068== by 0x5AC22D: ec_idle (eye_candy_wrapper.cpp:480)
==32068== by 0x44EC7F: display_console_handler (consolewin.c:110)
==32068== by 0x4664B5: draw_window (elwindows.c:1251)
==32068== by 0x466DCC: display_window (elwindows.c:1436)
==32068== by 0x46346E: display_windows (elwindows.c:76)
==32068== by 0x458D0A: draw_scene (draw_scene.c:129)
==32068== by 0x4AF6C5: start_rendering (main.c:215)
==32068== by 0x4AFE8C: main (main.c:448)
==32068== If you believe this happened as a result of a stack
==32068== overflow in your program's main thread (unlikely but
==32068== possible), you can try to increase the size of the
==32068== main thread stack using the --main-stacksize= flag.
==32068== The main thread stack size used in this run was 8388608.