tek256/astera

The input example crashes upon exit

wesleyParriott opened this issue · 1 comments

Describe the bug
When the input example tries and exit it will seg fault.

To Reproduce

  1. cd $astera_location/asterea/example/build
  2. gdb ./input
  3. either press the escape key on the key board or the (x) key on the window opened by astera
  4. look at gdb and take note of this error:
Program received signal SIGSEGV, Segmentation fault.                                                                                                                                          
0x00007ffff7750f20 in ?? ()

Note, the memory address should be different.

Expected behavior
A exited normally message.
Example from rendering:

[Inferior 1 (process 10415) exited normally]                                                                                                                                                  

In Depth Look with Screenshots
Starting with creating a break point outside of the main loop of the game. We're going to see where the seg fault happens
Screenshot from 2020-07-16 17-48-08

We get the seg fault when from ui_ctx_destroy
Screenshot from 2020-07-16 17-57-15

Screenshot from 2020-07-16 17-58-43

Lets go deeper
Screenshot from 2020-07-16 18-03-37

Screenshot from 2020-07-16 18-04-08

Screenshot from 2020-07-16 18-04-14

Screenshot from 2020-07-16 18-04-26

Screenshot from 2020-07-16 18-04-32

Desktop (please complete the following information):
Screenshot from 2020-07-15 12-16-12

Version [e.g. Commit / Pull Date]
commit 53e09f7 (HEAD -> master, origin/master, origin/HEAD)

Additional context
w/e is going on looks like it has something to do with nanovg

Patched in 6ae0673 !