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

Failed to acquire next frame: Timeout #45

Open
davids91 opened this issue Jun 27, 2024 · 0 comments
Open

Failed to acquire next frame: Timeout #45

davids91 opened this issue Jun 27, 2024 · 0 comments

Comments

@davids91
Copy link

Hey, something have changed recently, because the same code that worked previously now does not:

The code I use

There is a panic with the following backtrace:

thread 'main' panicked at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/show-image-0.14.0/src/backend/context.rs:404:14:
Failed to acquire next frame: Timeout
stack backtrace:
   0: rust_begin_unwind
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:652:5
   1: core::panicking::panic_fmt
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:72:14
   2: core::result::unwrap_failed
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/result.rs:1654:5
   3: core::result::Result<T,E>::expect
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/result.rs:1034:23
   4: show_image::backend::context::Context::render_window
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/show-image-0.14.0/src/backend/context.rs:401:15
   5: show_image::backend::context::Context::handle_event
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/show-image-0.14.0/src/backend/context.rs:609:13
   6: show_image::backend::context::Context::run::{{closure}}
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/show-image-0.14.0/src/backend/context.rs:210:4
   7: winit::platform_impl::platform::sticky_exit_callback
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.7/src/platform_impl/linux/mod.rs:884:9
   8: winit::platform_impl::platform::x11::EventLoop<T>::run_return::single_iteration
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.7/src/platform_impl/linux/x11/mod.rs:375:21
   9: winit::platform_impl::platform::x11::EventLoop<T>::run_return
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.7/src/platform_impl/linux/x11/mod.rs:483:27
  10: winit::platform_impl::platform::x11::EventLoop<T>::run
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.7/src/platform_impl/linux/x11/mod.rs:498:25
  11: winit::platform_impl::platform::EventLoop<T>::run
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.7/src/platform_impl/linux/mod.rs:792:56
  12: winit::event_loop::EventLoop<T>::run
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.7/src/event_loop.rs:305:9
  13: show_image::backend::context::Context::run
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/show-image-0.14.0/src/backend/context.rs:208:3
  14: show_image::backend::run_context
             at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/show-image-0.14.0/src/backend/mod.rs:93:2
  15: cpu_render::main
             at ./examples/cpu_render.rs:8:1
  16: core::ops::function::FnOnce::call_once
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread '<unnamed>' panicked at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/show-image-0.14.0/src/backend/proxy.rs:144:14:
global context failed to send function return value back, which can only happen if the event loop stopped, but that should also kill the process: Disconnected
stack backtrace:
   0: rust_begin_unwind
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs

What might cause this problem? What can I do to fix it?

Thank you for your help in advance!

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