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

Getting RBSServiceErrorDomain while running Tauri with Wry on MacOs Sonoma 14.0 #848

Closed
prabhupant opened this issue Nov 20, 2023 · 0 comments

Comments

@prabhupant
Copy link

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

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

1 participant