AnaghSharma / Ambar-SwiftUI

Ambar is a macOS menu bar app built with SwiftUI.
https://www.anaghsharma.com/blog/macos-menu-bar-app-with-swiftui/
MIT License
270 stars 10 forks source link

Metal API Validation Enabled #5

Open utdrmac opened 3 years ago

utdrmac commented 3 years ago

Cloned your repo. Compiled. Ran. Clicked 'Quit App' button and this appeared in the XCode console:

2021-07-21 23:34:48.335409-0500 Ambar[48694:20933608] Metal API Validation Enabled
2021-07-21 23:34:48.373780-0500 Ambar[48694:20933608] MTLIOAccelDevice bad MetalPluginClassName property (null)
2021-07-21 23:34:48.377114-0500 Ambar[48694:20933608] +[MTLIOAccelDevice registerDevices]: Zero Metal services found
2021-07-21 23:34:48.398127-0500 Ambar[48694:20934158] fopen failed for data file: errno = 2 (No such file or directory)
2021-07-21 23:34:48.398186-0500 Ambar[48694:20934158] Errors found! Invalidating cache...
2021-07-21 23:34:48.451883-0500 Ambar[48694:20934158] fopen failed for data file: errno = 2 (No such file or directory)
2021-07-21 23:34:48.451931-0500 Ambar[48694:20934158] Errors found! Invalidating cache...
AnaghSharma commented 3 years ago

Strange. Shouldn't have happened. Did this happen only once or is it happening all the time?

Also, what's your hardware and software specifications?

utdrmac commented 3 years ago

Every time I run it and quit I get that message MacBookPro 2019 (last gen x86) BigSur 11.4 XCode 12.5.1

AnaghSharma commented 3 years ago

Sorry, I have been unable to get on this and check what's wrong. I'll get back to you once I have something to share. Thanks.

gingerbeardman commented 1 year ago

It's the Quit button for some reason, if you comment that out the warning goes away.

You can disable the warning (Edit Scheme > Run > Diagnostics)