wry icon indicating copy to clipboard operation
wry copied to clipboard

Getting RBSServiceErrorDomain while running Tauri with Wry on MacOs Sonoma 14.0

Open prabhupant opened this issue 2 years ago • 0 comments

I am just trying to load an https website on Wry as a WebView. This is the code I am using

use wry::{
    application::{
        event::{Event, StartCause, WindowEvent},
        event_loop::{ControlFlow, EventLoop},
        window::WindowBuilder,
    },
    webview::WebViewBuilder,
};

fn main() -> wry::Result<()> {


    let event_loop = EventLoop::new();
    let window = WindowBuilder::new()
        .with_title("MyApp")
        .build(&event_loop)?;
    let _webview = WebViewBuilder::new(window)?
        .with_url("https://teams.microsoft.com")?
        .build()?;

    event_loop.run(move |event, _, control_flow| {
        *control_flow = ControlFlow::Wait;

        match event {
            Event::NewEvents(StartCause::Init) => println!("App has started!"),
            Event::WindowEvent {
                event: WindowEvent::CloseRequested,
                ..
            } => *control_flow = ControlFlow::Exit,
            _ => (),
        }
    });
}

Now I was able to see teams.microsoft.com open when I first ran the code. But when I tried to login, I got this error and since then a white screen has been coming up every time I run the code again (think this might be a caching issue or something?)

2023-11-20 11:17:35.503052+0530 webview-teams[67508:1376674] [Process] WebContent process (0x112000c00) took 2.192858 seconds to launch
2023-11-20 11:17:35.931186+0530 webview-teams[67508:1376795] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2023-11-20 11:17:35.931210+0530 webview-teams[67508:1376795] [ProcessSuspension] 0x1100209c0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'XPCConnectionTerminationWatchdog' for process with PID=67511, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
2023-11-20 11:17:58.627679+0530 webview-teams[67508:1376700] [client] No error handler for XPC error: Connection invalid

Platform and Versions: OS: MacOs Sonoma 14.0 Rustc: 1.74.0

prabhupant avatar Nov 20 '23 06:11 prabhupant