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

Repeated drag-and-drop causes out-of-memory error in wgpu #40

Open
ids1024 opened this issue May 2, 2024 · 4 comments
Open

Repeated drag-and-drop causes out-of-memory error in wgpu #40

ids1024 opened this issue May 2, 2024 · 4 comments
Milestone

Comments

@ids1024
Copy link
Member

ids1024 commented May 2, 2024

thread 'main' panicked at /home/ian/.cargo/git/checkouts/wgpu-53e70f8674b08dd4/20fda69/wgpu/src/backend/wgpu_core.rs:2990:5:
wgpu error: Validation Error

Caused by:
    In Device::create_buffer
      note: label = `image upload buffer`
    Not enough memory left.


note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I guess iced_sctk is not destroying the drag surface buffers properly? Though looking at it I don't see anything obviously wrong...

@ids1024
Copy link
Member Author

ids1024 commented May 3, 2024

sudo bpftrace -p $(pidof cosmic-workspaces) -e 'uprobe:libvulkan:vkCreateWaylandSurfaceKHR { @ptr = arg3; } uretprobe:libvulkan:vkCreateWaylandSurfaceKHR { printf("Create Vulkan surface %d\n", *@ptr); }  uprobe:libvulkan:vkDestroySurfaceKHR { printf("Destroy Vulkan surface %d\n", arg1) }'

It seems all the Vulkan surfaces are being destroyed correctly, at least...

@ids1024
Copy link
Member Author

ids1024 commented May 3, 2024

renderdoc doesn't seem to recognize the API being used by cosmic-workspaces, so I'm not sure it can help.

cat /proc/$(pidof cosmic-workspaces)/maps | grep i915 | wc -l seems to suggest that showing and hiding workspaces sometimes, at least, also leaks buffers.

@ids1024
Copy link
Member Author

ids1024 commented May 3, 2024

Ah, the same thing seems to happen with upstream Iced in the multi_window example. So it's presumably an iced_wgpu bug and not related to iced-sctk.

@WatchMkr
Copy link

WatchMkr commented Dec 6, 2024

Is this fixed?

@WatchMkr WatchMkr modified the milestones: alpha 4, alpha 7, alpha 6 Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Alpha 6
Development

No branches or pull requests

2 participants