Boscop / Boscop/web-view

Core dump when exiting

Open
#85 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
179
PR merge metrics
No merged PRs in 30d

Description

I'm running very simple sample code for testing.

When exiting externally via just closing the window, I get:

```
malloc_consolidate(): invalid chunk size
zsh: abort (core dumped) cargo run
```
Environment: Arch Linux, Sway (Wayland)

Code:
```rust

const HTML: &'static str = r#"


hello

"#;

fn main() {
let webview = web_view::builder()
.title("YouToo")
.content(web_view::Content::Html(HTML))
.size(800, 600)
.resizable(true)
.debug(true)
.user_data(0)
.invoke_handler(|webview, arg| {
match arg {
"reset" => {
//render(webview, *counter)?;
}
"exit" => {
webview.terminate();
}
_ => unimplemented!(),
};
Ok(())
})
.build()
.unwrap();

webview.run().unwrap();
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.