-
Notifications
You must be signed in to change notification settings - Fork 36
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
Segfault when trying to start new game #18
Comments
Thanks for the report and the core dump! I'll take a look |
So the initial menu to choose the game type works correctly, do you confirm it? Which terminal are you playing in? I suspect it may be a sizing issue; could you try resizing the terminal to a very large size (full-screen or almost) and check if it works this time? |
Right, the initial menu worked correctly and I could move the selection. I'm using the macOS default terminal (Terminal.app Version 2.8.3 (404.1)). |
Thanks, this is useful information to debug this issue. On my Linux machine, the game does not display the play window at all if the terminal has 23 or fewer columns, but I cannot reproduce the segfault. I wonder if for some reason on the mac terminal the available display real estate is 23 rows instead of 24; this would explain something more. In any case, it's clear that the no.1 problem is that I need to handle better in my code the case in which the terminal is too small. |
I've just installed bastet via Homebrew on macOS (
brew install bastet
) and whenever I want to start a new game (normal or harder version) the game crashes with a segmentation fault (Segmentation fault: 11
).bastet: 0.43.2
boost: 1.68.0
macOS: 10.13.6
Edit: I've attached a core dump to ease debugging: bastet_2018-12-18-160559.crash
The text was updated successfully, but these errors were encountered: