Skip to content

eframe's Event::Resumed on android panics since #3172 #3674

@m-hugo

Description

@m-hugo

Hiding and resuming any eframe app on android since #3172 causes it to crash, logging (on master) thread panicked at .cargo/git/checkouts/egui-5e4507fa4153be06/84a6d6f/crates/eframe/src/native/wgpu_integration.rs:392:54: no entry found for key

running.shared.borrow().viewports[&ViewportId::ROOT]

the offending line is running.shared.borrow().viewports[&ViewportId::ROOT]
the commit after #3172 logs the same line but in eframe/src/native/run.rs
the commit before works fine
digging in #3172's commits, it was broken as early as 7caa042 .get(&ViewportId::ROOT): called Option::unwrap() on a None value

Expected behavior
get back to the app normally like before #3172

Smartphone

  • OS: Android 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions