WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
302212
WKWebView Precondition Failure: Unable to load binary archive for shader library
https://bugs.webkit.org/show_bug.cgi?id=302212
Summary
WKWebView Precondition Failure: Unable to load binary archive for shader library
julianmella2
Reported
2025-11-09 04:56:23 PST
Hello, When I try to run a WKWebView for MacOS, I get the following error: precondition failure: unable to load binary archive for shader library: /System/Library/PrivateFrameworks/IconRendering.framework/Resources/binary.metallib, The file file:///System/Library/PrivateFrameworks/IconRendering.framework/Resources/binary.metallib has an invalid format. ============================== This is the code I use, it's very simple. ContentView.swift import SwiftUI struct ContentView: View { var body: some View { WebViewControllerWrapper() .frame(minWidth: 800, minHeight: 600) } } struct WebViewControllerWrapper: NSViewControllerRepresentable { func makeNSViewController(context: Context) -> ViewController { return ViewController() } func updateNSViewController(_ nsViewController: ViewController, context: Context) { // nothing to update } } ============================== ViewController.swift import Cocoa import WebKit class ViewController: NSViewController { var webView: WKWebView! override func loadView() { webView = WKWebView(frame: .zero) self.view = webView } override func viewDidLoad() { super.viewDidLoad() if let url = URL(string: "
https://www.apple.com
") { let request = URLRequest(url: url) webView.load(request) } } } macOS Tahoe 26.1
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2025-11-10 08:40:27 PST
Thank you for the report! Could you please clarify if this is a benign warning, or if are observing some issues linked to it?
adilrc
Comment 2
2025-11-12 00:42:19 PST
Hi, I'm getting the same error logged in the console, here's more information: Library: RenderBox Subsystem: com.apple.renderbox Level: error Message: ``` precondition failure: unable to load binary archive for shader library: /System/Library/PrivateFrameworks/IconRendering.framework/Resources/binary.metallib, The file file:///System/Library/PrivateFrameworks/IconRendering.framework/Resources/binary.metallib has an invalid format. ``` There's no apparent issues related to the error in my case.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug