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

Crash on start #27753

Closed
micage opened this issue Jan 21, 2019 · 6 comments
Closed

Crash on start #27753

micage opened this issue Jan 21, 2019 · 6 comments
Labels
<Crash / Freeze> Fatal bug that results in hangs or crashes. (S1 - Need confirmation) Report waiting on confirmation of reproducibility

Comments

@micage
Copy link

micage commented Jan 21, 2019

Pulled the latest experimental from github, compiled it using:
make NATIVE=osx OSX_MIN=10.7 RELEASE=1 TILES=1 LOCALIZE=0 CLANG=1

Crash report:
0 cataclysm-tiles 0x000000010690bce5 player_morale::operator=(player_morale&&) + 261
1 cataclysm-tiles 0x00000001068e036d player::operator=(player&&) + 2845
2 cataclysm-tiles 0x0000000106532873 main_menu::opening_screen() + 1731
3 cataclysm-tiles 0x0000000105f48820 main + 5040
4 libdyld.dylib 0x00007fff9bdf95ad start + 1

OS X 11.6, clang 8.0.0

This procedure worked for me before. I'm doing weekly builds of --HEAD.

@ZhilkinSerg
Copy link
Contributor

Are you starting a new game or loading existing? Do you use any mods?

@micage
Copy link
Author

micage commented Jan 22, 2019

The game crashes before the game menu.

@Night-Pryanik Night-Pryanik added <Crash / Freeze> Fatal bug that results in hangs or crashes. (S1 - Need confirmation) Report waiting on confirmation of reproducibility labels Jan 22, 2019
@ZhilkinSerg
Copy link
Contributor

Looks like duplicate of #23171 - see #23171 (comment).

Can you please try using precompiled binary from http://dev.narc.ro/cataclysm/jenkins-latest/OSX/Tiles/ and see if it doesn't crash?

Also please try to compile by yourself with all optimizations disabled (-O0) and see if it helps.

@micage
Copy link
Author

micage commented Jan 22, 2019

A week ago everything compiled just fine. It's not a duplicate of #23171.

How can I disable all optimizations? I'm not calling clang directly, instead I'm calling "make ..." like described in compiling instructions.

I also downloaded the latest binary. There are problems with a code signing error of the SDL2 framework which leads to a freeze of the cataclysm app.

@micage
Copy link
Author

micage commented Jan 22, 2019

After deleting the SDL2.framework from cataclysm.app and installing a fresh copy
from: https://www.libsdl.org/release/SDL2-2.0.9.dmg

I had to erase the quarantine bit (to prevent a very time consuming "unauthorized developer" check) with:
sudo xattr -rc /Applications/Catacylsm.app

Now at least the downloaded binary is working. Leaves the question why the HEAD revision isn't compiling correctly on OS X anymore?

@micage
Copy link
Author

micage commented Jan 29, 2019

Managed to get it working again:

brew install astyle
make TILES=1 SOUND=1 LUA=1 DYNAMIC_LINKING=1 LOCALIZE=0

No localization -> no gettext required.

@micage micage closed this as completed Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Crash / Freeze> Fatal bug that results in hangs or crashes. (S1 - Need confirmation) Report waiting on confirmation of reproducibility
Projects
None yet
Development

No branches or pull requests

3 participants