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

Intel HD Graphics 4600 (Windows): barebon app panics #920

Open
RustamC opened this issue May 25, 2023 · 0 comments
Open

Intel HD Graphics 4600 (Windows): barebon app panics #920

RustamC opened this issue May 25, 2023 · 0 comments

Comments

@RustamC
Copy link

RustamC commented May 25, 2023

Hi!
I've tried to run the simpliest bare-bones nannou app that opens an empty window from the Guide and got a panic:

Error log:
thread 'main' panicked at 'wgpu error: Out of Memory
', C:\Users\user1\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.11.1\src\backend\direct.rs:2195:5
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:579
   1: core::panicking::panic_fmt
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\core\src\panicking.rs:64
   2: core::ops::function::Fn::call
   3: <wgpu::backend::direct::Context as wgpu::Context>::device_create_command_encoder
   4: wgpu::Device::create_command_encoder
   5: nannou::frame::raw::RawFrame::new_empty
   6: winit::platform_impl::platform::event_loop::EventLoop<T>::run_return::{{closure}}
   7: std::panicking::try
   8: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<T>::register_window
   9: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<T>::send_event
  10: winit::platform_impl::platform::event_loop::public_window_callback_inner::{{closure}}
  11: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<T>::catch_unwind
  12: winit::platform_impl::platform::event_loop::public_window_callback
  13: DefSubclassProc
  14: DefSubclassProc
  15: CallWindowProcW
  16: DispatchMessageW
  17: SendMessageTimeoutW
  18: KiUserCallbackDispatcher
  19: NtUserDispatchMessage
  20: DispatchMessageW
  21: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<T>::owned_windows
  22: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
  23: winit::platform_impl::platform::event_loop::runner::EventLoopRunner<T>::catch_unwind
  24: winit::platform_impl::platform::event_loop::thread_event_target_callback
  25: DefSubclassProc
  26: DefSubclassProc
  27: CallWindowProcW
  28: DispatchMessageW
  29: SendMessageTimeoutW
  30: KiUserCallbackDispatcher
  31: NtUserDispatchMessage
  32: DispatchMessageW
  33: winit::platform_impl::platform::event_loop::EventLoop<T>::run
  34: alloc::alloc::box_free
  35: nannou::app::Builder<M,E>::run
  36: wgpu_core::device::queue::PendingWrites<A>::dispose
  37: core::ops::function::impls::impl$2::call_once
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\core\src\ops\function.rs:287
  38: std::panicking::try::do_call
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:487
  39: std::panicking::try
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:451
  40: std::panic::catch_unwind
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panic.rs:140
  41: std::rt::lang_start_internal::closure$2
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\rt.rs:148
  42: std::panicking::try::do_call
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:487
  43: std::panicking::try
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:451
  44: std::panic::catch_unwind
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panic.rs:140
  45: std::rt::lang_start_internal
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\rt.rs:148
  46: main
  47: invoke_main
             at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  48: __scrt_common_main_seh
             at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  49: BaseThreadInitThunk
  50: RtlUserThreadStart
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `target\release\barebone_nannou_app.exe` (exit code: 101)

System configuration

  • rustc 1.69.0 (84c898d65 2023-04-16)
  • cargo 1.69.0 (6e9a83356 2023-04-12)
  • nannou = "0.18.1"
  • Windows 10 Professional (x64) Build 19045.2965 (22H2)
  • Intel HD Graphics 4600 (Driver version: 20.19.15.5171)
  • Intel Core i7-4790
  • RAM: 8 Gb

Steps to reproduce:

  1. Create an empty project:
cargo new barebone_nannout
cd barebone_nannout
cargo add nannou
  1. Copy to main.rs an example of bare-bones nannou app that opens an empty window from the Guide:
Source code:
use nannou::prelude::*;

struct Model {}

fn main() {
    nannou::app(model)
        .event(event)
        .simple_window(view)
        .run();
}

fn model(_app: &App) -> Model {
    Model {}
}

fn event(_app: &App, _model: &mut Model, _event: Event) {
}

fn view(_app: &App, _model: &Model, _frame: Frame) {
}
  1. Run:
$env:RUST_BACKTRACE=1; cargo run --release
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