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

VIRT memory on Linux at >80GB+. #51

Closed
duckinator opened this issue Jan 17, 2019 · 4 comments
Closed

VIRT memory on Linux at >80GB+. #51

duckinator opened this issue Jan 17, 2019 · 4 comments

Comments

@duckinator
Copy link

Testcase, using web-view v0.4.0.

extern crate web_view;

fn main() {
    web_view::builder()
        .content(web_view::Content::Html(":("))
        .user_data(())
        .invoke_handler(|_w, _a| Ok(()))
        .run()
        .unwrap();
}

Screenshot of htop output while running cargo run with the above code:

screenshot_20190116_233126

@duckinator duckinator changed the title Allocates 80GB+ RAM immediately. VIRT memory on Linux at >80GB+. Jan 17, 2019
@duckinator
Copy link
Author

duckinator commented Jan 17, 2019

I updated the title because, while discussing it elsewhere, I was reminded that VIRT refers to the entire virtual memory address space. This means it includes mmap() and MMIO and friends, not just malloc() and friends.

So, not inherently as bad as I thought, but it still very much seems like a bug.

@duckinator
Copy link
Author

duckinator commented Jan 17, 2019

I'm not sure when I'll get to it, but my current plan re narrowing down the cause is roughly:

  1. Attempt to reproduce using zserge/webview from C, C++, and Go.
  2. Attempt to reproduce by using gtk-webkit directly.
  3. Depending on which of the above (if any) could be used to reproduce it, attempt to narrow down the root cause.

@duckinator
Copy link
Author

@duckinator
Copy link
Author

I'm going to close this issue, since I reproduced it using only C and webkit2gtk+: https://gist.github.com/duckinator/4c8a2fd8b898c6aa1e4a44d9c61b4d57

Sorry for the noise while narrowing it down!

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