ryanpcmcquen / basque

A top-down 2d game engine, written from scratch in under 1000 lines of C. Development of the game based on this engine is streamed on Twitch: https://www.twitch.tv/ryanpcmcquen
https://ryanpcmcquen.itch.io/basque
Mozilla Public License 2.0
443 stars 24 forks source link

Seg fault #1

Closed maacl closed 4 years ago

maacl commented 4 years ago

Builds clean on Ubuntu 19.10 but segfaults when run.

➜  linux git:(master) ✗ ./basque 
INFO: Basque started with 3x scaling.
[1]    15193 segmentation fault (core dumped)  ./basque
ryanpcmcquen commented 4 years ago

@maacl, thanks for giving it a spin! Sorry you are having trouble.

It launches fine here on Debian 10 ... what does strace ./basque say?

ryanpcmcquen commented 4 years ago

Here's my successful strace log for reference: strace_basque_successful_launch.log

ryanpcmcquen commented 4 years ago

@maacl, if you want to point it to a file, you can do:

strace ./basque 2>&1 | tee strace_basque_failed_launch.log
maacl commented 4 years ago

Sorry, it was a case of make not detecting any change, so it did not build anything. Works now.

On Wed, Feb 5, 2020 at 4:30 PM Ryan P. C. McQuen notifications@github.com wrote:

@maacl https://github.com/maacl, if you want to point it to a file, you can do:

strace ./basque 2>&1 | tee strace_basque_failed_launch.log

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ryanpcmcquen/basque/issues/1?email_source=notifications&email_token=AAAPUXCCFTM5VZ54J52JH7TRBLLRPA5CNFSM4KQJSMV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK3265A#issuecomment-582463348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPUXG44EG5VMD5ZF77NM3RBLLRPANCNFSM4KQJSMVQ .

ryanpcmcquen commented 4 years ago

Oh, no seg fault?

maacl commented 4 years ago

No, all good after it actually built.

On Wed, Feb 5, 2020 at 4:59 PM Ryan P. C. McQuen notifications@github.com wrote:

oh, no seg fault?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ryanpcmcquen/basque/issues/1?email_source=notifications&email_token=AAAPUXGVXMY6P5EG5TIECNDRBLO5LA5CNFSM4KQJSMV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK36MVA#issuecomment-582477396, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPUXDA2VJNSFKPQJXWDJDRBLO5LANCNFSM4KQJSMVQ .

ryanpcmcquen commented 4 years ago

Woohoo, let me know if you have any issues, feedback, ideas, or whatever!

ryanpcmcquen commented 4 years ago

I added a make force in case anyone else hits this.