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

Ultralight Quick Start Metal Error #1

Open
tsur opened this issue Apr 7, 2020 · 2 comments
Open

Ultralight Quick Start Metal Error #1

tsur opened this issue Apr 7, 2020 · 2 comments

Comments

@tsur
Copy link

tsur commented Apr 7, 2020

Hi guys,

I was able to build the project on MacOS v10.13.6 with metal support and everything was fine but cannot run it

2020-04-07 18:24:42.943 MyApp[4705:41918] 
Failed to create pipeline state, error Error Domain=CompilerError Code=1 
"Function fragmentShader has a deployment target which is incompatible with this OS."
UserInfo={NSLocalizedDescription=Function fragmentShader has a deployment target which 
is incompatible with this OS.}
Illegal instruction: 4

most probably related to metal version, should I update to a higher MacOS version? I'm also assuming only Xcode command line tools are required but not whole Xcode, any help is welcome

I tried setting the MACOSX_DEPLOYMENT_TARGET env var also updating the CMakeLists.txt with set(CMAKE_OSX_DEPLOYMENT_TARGET "10.13" CACHE STRING "Minimum OS X deployment version") but still not working, looks like it is required XCode and SDK (not just the command line tools)

thanks so much

@emilet16
Copy link

Yes it says that the deployment target is targetting higer mac OS, so you must update.

@daryl-williams
Copy link

On the Prerequisites page for Ultralight at https://docs.ultralig.ht/docs/installing-prerequisites it says that the program should work with macOS (Sierra or later). I am working on a MacOS High Sierra system and getting the error:

2021-04-22 08:16:40.216 MyApp[72993:2596625] Metal is not supported on this device
2021-04-22 08:16:40.216 MyApp[72993:2596625] -[MTLView resizeLayer:]: unrecognized selector sent to instance 0x7f88e5636970
2021-04-22 08:16:40.279 MyApp[72993:2596625] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MTLView resizeLayer:]: unrecognized selector sent to instance 0x7f88e5636970'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff2d6fcf3b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00007fff54aa9942 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff2d794414 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x00007fff2d673f03 ___forwarding___ + 1443
	4   CoreFoundation                      0x00007fff2d6738d8 _CF_forwarding_prep_0 + 120
	5   libAppCore.dylib                    0x000000010e0dcfbd _ZN10ultralight3AppD0Ev + 10509
	6   AppKit                              0x00007fff2ac3db1e -[NSView setFrame:] + 371
	7   AppKit                              0x00007fff2ac429b2 -[NSWindow setContentView:] + 321
	8   AppKit                              0x00007fff2adc56e2 -[NSWindow _contentViewControllerChanged] + 1002
	9   libAppCore.dylib                    0x000000010e0dea37 _ZN10ultralight3AppD0Ev + 17287
	10  libAppCore.dylib                    0x000000010e0df9b7 _ZN10ultralight6Window6CreateEPNS_7MonitorEjjbj + 71
	11  MyApp                               0x000000010ddf2ec1 _ZN5MyAppC2Ev + 513
	12  MyApp                               0x000000010ddf3955 _ZN5MyAppC1Ev + 21
	13  MyApp                               0x000000010ddf490f main + 31
	14  libdyld.dylib                       0x00007fff556c4015 start + 1
	15  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

Any help would be greatly appreciated.

Thanks,

Daryl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants