NickMcConnell / FAangband

First Age Angband
http://nickmcconnell.github.io/FAangband/
85 stars 16 forks source link

Immediate Crash with OS X Mojave #71

Open ItsRyanR opened 5 years ago

ItsRyanR commented 5 years ago

Running 10.14.2. OSX dmg files for version 1.4 and 1.3 all immediately crash.

backwardsEric commented 3 months ago

Compiling 1.4.5 on macOS 12.7.6, I found it crashed in main-cocoa.m's prepareCommandMenu at startup. Putting the "[menuItem release];" in that function after the line "[angbandCommands setObject: ..." that uses menuItem prevented the crash. FAangband 2's macOS front end uses Objective-C's automatic reference counting (ARC) so that release statement is no longer present in the current version of FAangband.