-
Notifications
You must be signed in to change notification settings - Fork 85
Description
using libsdl2-dev (from apt on ubuntu) version 2.0.8+dfsg1-4ubuntu1
and the latest of this haskell sdl2 wrapper available through using haskell stack
I am trying to run a local copy of this bgfx example project:
https://github.com/haskell-game/bgfx
and semi-consistently, on the SDL.pollevents Call, I get the following c exception:
bgfx-exe: malloc.c:4009: _int_malloc: Assertion `(unsigned long) (size) >= (unsigned long) (nb)' failed.
You can see the call here in the cubes example:
https://github.com/haskell-game/bgfx/blob/master/Cubes.hs#L65
I get this error about 9 / 12 times. Otherwise it works as intended or I get another error at the same spot:
1 / 12 times I get just "Segmentation fault (core dumped)"
1 / 12 times I get "free(): invalid pointer" or something similar
1 / 12 times it works as expected.
Any advice on what I might be doing wrong or maybe wrong settings is appreciated.
Once I get stack to give me a stack trace, I'll add it to this ticket.