Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange sigsev on macosx when reach the end of the programm #194

Open
Milerius opened this issue Jul 9, 2017 · 2 comments
Open

Strange sigsev on macosx when reach the end of the programm #194

Milerius opened this issue Jul 9, 2017 · 2 comments

Comments

@Milerius
Copy link

Milerius commented Jul 9, 2017

Hello, i'm not sure but i have a strange bug when i reach the end of my program using entityx.

current context :

The systems are all separate in different DLL, i load them with the function systems.add(shared_ptr) :

capture d ecran 2017-07-09 a 23 22 00

the main game loop :

capture d ecran 2017-07-09 a 23 22 39

creation of entity and assignement of a Components who represents a window :

capture d ecran 2017-07-09 a 23 23 22

update of the Window System :
capture d ecran 2017-07-09 a 23 24 13

and this is what happened when i click on the cross of the SFML Window :

capture d ecran 2017-07-09 a 23 25 04

This bug dont seem's to appear on Linux, or Window, only on my macOs, (i tried on Linux this works)

Sorry for my english.

Best regards.

@DomWilliams0
Copy link

Have you tried running it through valgrind with memcheck? It will tell you if you overwrite some memory at an earlier point in your code, which could be causing undefined behaviour later on.

For reference: valgrind --tool=memcheck ./<executable>

@ghost
Copy link

ghost commented Jan 5, 2018

Try calling ett.reset() before you dispose of all the systems (i.e. before the entity manager goes out of scope).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants