Iced: Memory leak on mac

Created on 8 Apr 2020  路  4Comments  路  Source: hecrj/iced

Noticed a lot of memory leak while running any example app on my macbook.
Attaching Leaks screenshots for todo example:
Screen Shot 2020-04-07 at 6 17 07 PM

bug

Most helpful comment

Thanks for investigating and submitting the PR to winit 馃檹馃徑

All 4 comments

Hey, thanks for testing!

I am not an expert on this, but I don't think the codebase has many instances where memory leaks can happen (no unsafe, no std::mem::forget, no cycles of shared references).

I believe wgpu may have fixed memory leaks in the latest release. It may be interesting to run the tests with the updated iced_wgpu version in #269.

I just investigated a bit and wgpu does not seem to be leaking any memory. Instead, I believe I ended up finding a memory leak in winit when cloning a proxy (which iced does quite a bit).

I have reported the issue: https://github.com/rust-windowing/winit/issues/1525

__Update__: Implemented a fix in https://github.com/rust-windowing/winit/pull/1526

Thanks for investigating and submitting the PR to winit 馃檹馃徑

Closing as the fix was merged and landed in the 0.22.2 release of winit.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hecrj picture hecrj  路  3Comments

Charles-Schleich picture Charles-Schleich  路  3Comments

Shootertrex picture Shootertrex  路  3Comments

aentity picture aentity  路  3Comments

casperstorm picture casperstorm  路  3Comments