Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
Mojave major video issues #114030
10/02/18 04:16 PM
10/02/18 04:16 PM
Joined: Sep 2000
Posts: 202
DC, USA
W
will Offline OP
Senior Member
will  Offline OP
Senior Member
W
Joined: Sep 2000
Posts: 202
DC, USA
Managed to compile MAME 0.202 on my Mac running Mojave. Thanks for the Genie fix!

However when I start a game the display stays black! I found -video bgfx works but -video soft and video OpenGL do not work at all for my setup.

If I disconnect my second monitor then all video modes appear to be working normally.

With my 2 displays attached again, I tried -numscreens 0 and -numscreens 1 with solid black screen, and with -numscreens 2 I just get a solid red display.

Even with -video bgfx enabled, dual screen games are totally broken now. The two displays show up overlapping each other on the main screen and then I get a crash, segmentation fault 11

I have an iMac Retina 5K 27" from 2017 with 4.2GHz Intel Core i7 and Radeon Pro 580 8192MB running macOS Mojave 10.14

Including relevant section of -verbose

Code

Setting SDL_VIDEO_GL_DRIVER = '/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib' ...
Available videodrivers: cocoa dummy 
Current Videodriver: cocoa
	Display #0
		Renderdrivers:
			    opengl (0x0)
			  software (0x0)
	Display #1
		Renderdrivers:
			    opengl (0x0)
			  software (0x0)
Available audio drivers: 
	coreaudio           
	disk                
	dummy               
Build version:      0.202 (unknown)
Build architecure:  
Build defines 1:    SDLMAME_UNIX=1 SDLMAME_MACOSX=1 SDLMAME_DARWIN=1 
Build defines 1:    LSB_FIRST=1 PTR64=1 
SDL/OpenGL defines: SDL_COMPILEDVERSION=2007 USE_OPENGL=1 
Compiler defines A: __GNUC__=4 __GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=1 __VERSION__="4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.2)" 
Compiler defines B: __amd64__=1 __x86_64__=1 
Compiler defines C: _FORTIFY_SOURCE=2 
Enter init_monitors
Adding monitor screen0 (2560 x 1440)
Adding monitor screen1 (1920 x 1200)
Leave init_monitors
Enter sdlwindow_init

Hints:
	SDL_FRAMEBUFFER_ACCELERATION             (null)
	SDL_RENDER_DRIVER                        (null)
	SDL_RENDER_OPENGL_SHADERS                (null)
	SDL_RENDER_SCALE_QUALITY                 (null)
	SDL_RENDER_VSYNC                         (null)
	SDL_VIDEO_X11_XVIDMODE                   (null)
	SDL_VIDEO_X11_XINERAMA                   (null)
	SDL_VIDEO_X11_XRANDR                     (null)
	SDL_GRAB_KEYBOARD                        (null)
	SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS         (null)
	SDL_IOS_IDLE_TIMER_DISABLED              (null)
	SDL_IOS_ORIENTATIONS                     (null)
	SDL_XINPUT_ENABLED                       (null)
	SDL_GAMECONTROLLERCONFIG                 (null)
	SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS     (null)
	SDL_ALLOW_TOPMOST                        (null)
	SDL_TIMER_RESOLUTION                     (null)
	SDL_RENDER_DIRECT3D_THREADSAFE           (null)
	SDL_VIDEO_ALLOW_SCREENSAVER              (null)
	SDL_ACCELEROMETER_AS_JOYSTICK            (null)
	SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK   (null)
	SDL_VIDEO_WIN_D3DCOMPILER                (null)
	SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT      (null)
	SDL_VIDEO_MAC_FULLSCREEN_SPACES          (null)
	SDL_MOUSE_RELATIVE_MODE_WARP             (null)
	SDL_RENDER_DIRECT3D11_DEBUG              (null)
	SDL_VIDEO_HIGHDPI_DISABLED               (null)
	SDL_WINRT_PRIVACY_POLICY_URL             (null)
	SDL_WINRT_PRIVACY_POLICY_LABEL           (null)
	SDL_WINRT_HANDLE_BACK_BUTTON             (null)
Leave sdlwindow_init



=will=
Re: Mojave major video issues [Re: will] #114031
10/02/18 04:29 PM
10/02/18 04:29 PM
Joined: Mar 2001
Posts: 16,020
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,020
USA
Just to clarify: this configuration is broken on Mojave but it worked on High Sierra?

Re: Mojave major video issues [Re: will] #114032
10/02/18 05:29 PM
10/02/18 05:29 PM
Joined: Sep 2000
Posts: 202
DC, USA
W
will Offline OP
Senior Member
will  Offline OP
Senior Member
W
Joined: Sep 2000
Posts: 202
DC, USA
Just tried MAME 0.201 with Mojave and all video modes are working fine. With 0.202 the only mode that works is -video bgfx

Dual monitors appears to be broken with both MAME versions under Mojave. Could also be the rolling back SDL framework.


=will=
Re: Mojave major video issues [Re: will] #114033
10/02/18 05:53 PM
10/02/18 05:53 PM
Joined: Mar 2001
Posts: 16,020
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,020
USA
Ok. 0.201 works and 0.202 doesn't, with the same SDL version? That's really strange because the OpenGL path wasn't touched in 0.202.

Multiple monitors is broken on all OSes right now, including Windows. Most developers switched to a single large 4k or 5k display a long time ago so it's hard to get quality debugging on multiple display setups.

Re: Mojave major video issues [Re: will] #114035
10/02/18 08:56 PM
10/02/18 08:56 PM
Joined: Sep 2000
Posts: 202
DC, USA
W
will Offline OP
Senior Member
will  Offline OP
Senior Member
W
Joined: Sep 2000
Posts: 202
DC, USA
Yes I'm sticking with SDL 2.0.7 until told otherwise. So yes 0.202 does not work (except for bgfx) while 0.201 does work with any video option.

So OpenGL aside, how come software rendering does not work? For me, with 2 monitors attached, -video soft works with 0.201 but not 0.202.


=will=
Re: Mojave major video issues [Re: will] #114036
10/02/18 09:04 PM
10/02/18 09:04 PM
Joined: Mar 2001
Posts: 16,020
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,020
USA
I don't know. soft and opengl were not changed in MAME to my knowledge between 0.201 and 0.202, although I'll double-check that.

Re: Mojave major video issues [Re: will] #114037
10/03/18 01:07 AM
10/03/18 01:07 AM
Joined: Mar 2001
Posts: 16,020
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,020
USA
Ok. First off, for -video soft and -video opengl on Mojave, you need SDL 2.0.9, which is currently in beta. You can get the beta here: http://www.libsdl.org/tmp/download-2.0.php

The good news is that you don't need to recompile to get the Mojave fixes, just overwriting your existing /Library/Frameworks/SDL.Framework with the new one will get MAME running.

Secondly, to compile against SDL 2.0.8 and later on the Mac, you'll need this fix: https://github.com/mamedev/mame/commit/4148447f3af189595e6344e134a724311fa23063

Re: Mojave major video issues [Re: will] #114042
10/03/18 05:12 PM
10/03/18 05:12 PM
Joined: May 1999
Posts: 542
Luxembourg
Carbon Offline
Senior Member
Carbon  Offline
Senior Member
Joined: May 1999
Posts: 542
Luxembourg
I replaced my SDL framework with version 2.0.9. When I start MAME the UI is displayed and woorks fine, but when I launch a game, the screen stays black, but emulation is running (I can insert coins, I hear the noises and music is played). When I stop the emulation, the window resizes to UI width and height, but it stays black from then on. I have to restart MAME to display at least the UI again. Sometimes 2 restarts are needed.

I also tried to recompile MAME with the new version of SDL installed, but that resulted in the exact same executable and same results when running.

This is on a iMac Pro running Mojave.

Re: Mojave major video issues [Re: will] #114043
10/03/18 05:33 PM
10/03/18 05:33 PM
Joined: Mar 2001
Posts: 16,020
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,020
USA
I'm not sure what to tell you - SDL 2.0.9 is specifically advertised as "fix black screen on Mojave", and it worked for me, 100% of the time, before and after in 10 tests each.

Re: Mojave major video issues [Re: will] #114044
10/03/18 06:25 PM
10/03/18 06:25 PM
Joined: May 1999
Posts: 542
Luxembourg
Carbon Offline
Senior Member
Carbon  Offline
Senior Member
Joined: May 1999
Posts: 542
Luxembourg
The SDL framework I downloaded is from October 1st, 2018 and is marked as stable.

Is there a newer beta perhaps as you stated in your post it'd be still in beta?

Re: Mojave major video issues [Re: will] #114045
10/03/18 06:37 PM
10/03/18 06:37 PM
Joined: May 1999
Posts: 542
Luxembourg
Carbon Offline
Senior Member
Carbon  Offline
Senior Member
Joined: May 1999
Posts: 542
Luxembourg
OK, found the culprit: I replaced my BGFX folder with the one from the 0.202 distribution. Everything works now fine.

Sorry for the confusion.

Page 1 of 2 1 2

Moderated by  R. Belmont 

Who's Online Now
3 registered members (pmackinlay, sof-max, MAMEBase), 105 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,587
Posts112,168
Members4,817
Most Online283
Oct 11th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.028s Queries: 14 (0.008s) Memory: 5.7314 MB (Peak: 5.9574 MB) Zlib enabled. Server Time: 2018-10-17 05:23:02 UTC