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

macos webview_cocoa.c unknown error #328

Open
4cecoder opened this issue Jan 9, 2024 · 0 comments
Open

macos webview_cocoa.c unknown error #328

4cecoder opened this issue Jan 9, 2024 · 0 comments

Comments

@4cecoder
Copy link

4cecoder commented Jan 9, 2024

description

I'm using the master branch in a rust project and it fails to render a webview on macos and the program crashes when instantiating webview
according to my debugger my program just quits when this is hit

Issues lie here:
https://github.com/Boscop/web-view/blob/master/webview-sys/webview_cocoa.c

let user_data = Box::new(UserData {

debugger leads

line 61

	if (webview_init(wv) != 0) {
		webview_free(wv);
		return NULL;
	}
	return wv;
}

line 328 in webview_cocoa.c

  id wkPref = ((id(*)(id, SEL))objc_msgSend)((id)__WKPreferences, sel_registerName("new"));

finally src/lib.rs line 348

        let user_data = Box::new(UserData {
            inner: user_data,
            live: Arc::new(RwLock::new(())),
            invoke_handler: Box::new(invoke_handler),
            result: Ok(()),
        });
        let user_data_ptr = Box::into_raw(user_data);
    ### Somethings up with user_data according to the debugging
Screenshot 2024-01-09 at 4 13 59 PM
@4cecoder 4cecoder changed the title macos cocoas missing function error macos cocoas.c unknown error Jan 9, 2024
@4cecoder 4cecoder changed the title macos cocoas.c unknown error macos webview_cocoa.c unknown error Jan 9, 2024
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