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

Update deps and replace FrameBuilder to epi::backend::FrameData #16

Merged
merged 2 commits into from
Jan 7, 2022

Conversation

haricot
Copy link
Contributor

@haricot haricot commented Jan 7, 2022

This PR updated the dependencies and tried to update code related hasenbanck/egui_wgpu_backend#51, but there seems to be a problem with the texture allocator with egui_demo_lib/apps/color_test :

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Internal("user texture 0 not found")', src/main.rs:172:22
stack backtrace:
   0: rust_begin_unwind
             at /rustc/f1ce0e6a00593493a12e0e3662119786c761f375/library/std/src/panicking.rs:498:5
   1: core::panicking::panic_fmt
             at /rustc/f1ce0e6a00593493a12e0e3662119786c761f375/library/core/src/panicking.rs:107:14
   2: core::result::unwrap_failed
             at /rustc/f1ce0e6a00593493a12e0e3662119786c761f375/library/core/src/result.rs:1690:5
   3: core::result::Result<T,E>::unwrap
             at /rustc/f1ce0e6a00593493a12e0e3662119786c761f375/library/core/src/result.rs:1018:23
   4: egui_example::main::{{closure}}
             at ./src/main.rs:164:17
   5: winit::platform_impl::platform::sticky_exit_callback
             at .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/linux/mod.rs:753:5
   6: winit::platform_impl::platform::x11::EventLoop<T>::run_return
             at .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/linux/x11/mod.rs:310:21
   7: winit::platform_impl::platform::x11::EventLoop<T>::run
             at .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/linux/x11/mod.rs:392:9
   8: winit::platform_impl::platform::EventLoop<T>::run
             at .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/linux/mod.rs:669:56
   9: winit::event_loop::EventLoop<T>::run
             at .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.1/src/event_loop.rs:154:9
  10: egui_example::main
             at ./src/main.rs:97:5
  11: core::ops::function::FnOnce::call_once
             at /rustc/f1ce0e6a00593493a12e0e3662119786c761f375/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

although i don't need this feature currently, I noticed that mesh.texture_id (Egui) https://github.com/hasenbanck/egui_wgpu_backend/blob/master/src/lib.rs#L348 come user (0) when I click on color test.

@hasenbanck
Copy link
Owner

Fine for now. Maybe somebody can fix it later ,since I'm not using egui anymore.

@hasenbanck hasenbanck merged commit ca1262a into hasenbanck:master Jan 7, 2022
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

Successfully merging this pull request may close these issues.

2 participants