stepmania / stepmania

Advanced rhythm game for Windows, Linux and OS X. Designed for both home and arcade use.
https://www.stepmania.com/
1.85k stars 443 forks source link

Stepmania Crashing on Startup due to window 'maximizing' #1304

Open Halsifer opened 7 years ago

Halsifer commented 7 years ago

So while Stepmania was running, I accidentally double clicked the title bar, which you can set the action in Mac OS X by going to System Preferences --> Dock --> 'Double-Click a window's titlebar to' Zoom/Minimize.

My setting was set to zoom, which basically fills the window in the screen vertically. When I did this to stepmania, the window moved and disappear completely off the screen. (No other desktop spaces either.) So naturally, I quit the application and restarted. And now it will crash on start every single time. If I start it from a different user, it works no problem. But my user account will not work.

I have tried completely deleting Stepmania references in my user's Library in Application Support, Caches, Logs, Saved Application States, and Preferences, with no luck at all. Any ideas?

I am running macOS Sierra 10.12 (16A323) and I have tried Stepmania 5.0.11, 5.0.12 and 5.1 -3. They all fail to start, and yes, all those warning of files are actually avaliable. The crash log is below:

StepMania5.0.12 crash report (build 45e0787, 20160811 @ 00:05:39)
--------------------------------------

Architecture:   Mac OS X (i386)
Crash reason:   Segmentation fault - address not mapped at 0x00000000
Crashed thread: Main thread

Checkpoints:
Thread: GUI thread
Thread: Main thread
        Profile.cpp:1951 Loading the node that contains song scores.
        Profile.cpp:2030 Loading the node that contains course scores.
        Profile.cpp:2136 Loading the node that contains category scores.
        Profile.cpp:2191 Loading the node containing screenshot data.
        Profile.cpp:2225 Loading the node containing calorie data.
Thread: Decode thread
Thread: Music thread
Thread: Worker thread (MemoryCardWorker)
Thread: HAL I/O thread
Thread: Worker thread (/@mc1int/)
Thread: Worker thread (/@mc2int/)

Thread: Main thread
00754170: LowLevelWindow_MacOSX::Update() 
003b71cd: RageDisplay_Legacy::EndFrame() 
003b7217: RageDisplay_Legacy::EndFrame() 
003b6e7c: RageDisplay_Legacy::ResolutionChanged() 
003b7024: RageDisplay_Legacy::TryVideoMode(VideoModeParams const&, bool&) 
003a9cd4: RageDisplay::SetVideoMode(VideoModeParams, bool&) 
003b4915: RageDisplay_Legacy::Init(VideoModeParams const&, bool) 
006ca1b2: sm_main 
0076958b: -[SMMain startGame:] 

Static log:
StepMania5.0.12
Compiled 20160811 @ 00:05:39 (build 45e0787)
Log starting 2016-09-29 08:28:14
Loading window: macosx
Model: MacBookPro10,1 (8/8)
Clock speed 2.60 GHz
Mac OS X 10.12
Memory: 16.00 GB
WARNING: ReadFile(Save/ThemePrefs.ini): No such file or directory
Sound driver: AudioUnit
Lights driver: SystemMessage
WARNING: Couldn't open Data/Translations.xml for reading: No such file or directory
WARNING: Couldn't open Data/Translations.xml for reading: No such file or directory
Video renderers: 'opengl'
Paletted textures disabled: GL_EXT_paletted_texture missing.
WARNING: Error compiling shader Data/Shaders/GLSL/Texture matrix scaling.vert: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Shell.frag: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Shell.vert: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Cel.frag: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Cel.vert: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Unpremultiply.frag: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Color burn.frag: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Color dodge.frag: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Vivid light.frag: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Hard mix.frag: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Overlay.frag: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/Screen.frag: No such file or directory
WARNING: Error compiling shader Data/Shaders/GLSL/YUYV422.frag: No such file or directory
Language: en
Current renderer: OpenGL
Theme: default

Partial log:
00:00.935: WARNING: Error compiling shader Data/Shaders/GLSL/Cel.frag: No such file or directory
00:00.935: WARNING: Error compiling shader Data/Shaders/GLSL/Cel.vert: No such file or directory
00:00.935: WARNING: Error compiling shader Data/Shaders/GLSL/Unpremultiply.frag: No such file or directory
00:00.935: WARNING: Error compiling shader Data/Shaders/GLSL/Color burn.frag: No such file or directory
00:00.936: WARNING: Error compiling shader Data/Shaders/GLSL/Color dodge.frag: No such file or directory
00:00.936: WARNING: Error compiling shader Data/Shaders/GLSL/Vivid light.frag: No such file or directory
00:00.936: WARNING: Error compiling shader Data/Shaders/GLSL/Hard mix.frag: No such file or directory
00:00.936: WARNING: Error compiling shader Data/Shaders/GLSL/Overlay.frag: No such file or directory
00:00.936: WARNING: Error compiling shader Data/Shaders/GLSL/Screen.frag: No such file or directory
00:00.936: WARNING: Error compiling shader Data/Shaders/GLSL/YUYV422.frag: No such file or directory

-- End of report
quietly-turning commented 7 years ago

This sounds like the sort of problem that will (hopefully) be resolved when SDL windows are introduced into the master branch. Unfortunately, there is no timeframe on when that will happen, currently.

As for getting you back up and running in the meantime... It sounds like you've already tried deleting all saved data in the following locations.

~/Library/Application Support/StepMania 5/
~/Library/Caches/StepMania 5/
~/Library/Logs/StepMania 5/
~/Library/Preferences/StepMania 5/

Assuming you've already tried deleting everything in those locations, and StepMania is still crashing at startup, I don't even know how to advise you next.

It sounds like macOS is trying to move the SM window to another Desktop/Space or secondary display.

Halsifer commented 7 years ago

Man, what a bummer.

Yeah, I have tried deleting all those folders, including any other files/folders containing "stepmania". I also created two more desktops spaces for some hope, tried also connected a secondary display, and I also tried increasing my regular resolution of 1440x900 to 2880x1800. All attempts separately and together with no luck...

If there is a way to reset the previous/default window location/size based on the application in macOS, that would possibly work. But as far as I know, that is typically stored in the Stepmania plist file or in the Stepmania 5 folder both within Preferences. Unless there is a place I'm missing?

Otherwise, it seems the only solution would be to wait for a fix (which you mentioned has no timeframe), or create a new user account and migrate, which is a pain all in it's own. :(

brunnerbl89 commented 6 years ago

I know I'll probably receive flack for commenting on a post that's over a year old, but seeing as how this is literally the only thread I've found regarding this issue...

Funny enough, I just today had this very issue happen on macOS High Sierra (10.13.2) with StepMania 5.0.12. I seem to have figured out how to make StepMania stop crashing upon startup, and it won't require making a new user account, should anybody else encounter this issue in the future...

It appears that after you maximize the window, be it through double-clicking the title bar, or accidentally tapping Option+Return as I did today, after you bring the game back to Windowed mode, it will crash upon any further starts. I've found, if you edit your Preferences.ini file under ~/Library/Preferences/StepMania 5/ to start in full screen mode by modifying Windowed=1 to Windowed=0, it'll let you start up. From there, just hit enter to get to the main title screen (in my case, it was a black window and I had to wait until I heard the selection sound.) From there, a quick Option+Return will bring it back to windowed. Once you're in Windowed mode, you may notice two title bars for the window. This appears to be what causes the crash. At least, in my case it was. This is the Tab Bar, and if it's set to display, StepMania will be unable to start up. From here, just click on the Window menu up top, and click "Hide Tab Bar". That should allow StepMania to open properly again. It also seems to be why it doesn't affect any other user accounts on the system. The only thing that still confuses me is why it seems to cause the issue on any version of StepMania that is installed, no matter if you delete all instances of StepMania from your Mac prior to trying other versions.

Hopefully this post will serve to help somebody else out in the future!

concubidated commented 6 years ago

@brunnerbl89

Can you try a newer build of Stepmania? There were some recent fixes with OSX and full screen implemented.

I have a build available here.

http://stepmania.objects.dreamhost.com/StepMania-5.1-git-55562324e2-mac.dmg

brunnerbl89 commented 6 years ago

@concubidated I actually tried a 5.1 build when I was having the issues after going full screen from 5.0.1 and it was giving me the same error upon start up before I figured out what was causing the issue. This was after removing every file related to SM from my system. I'll certainly give it another try when I'm able to though, to be sure, and I'll let you know the results.

concubidated commented 6 years ago

This is not the same as the 5.1-3 build.

Please give this one a shot.