Git Product home page Git Product logo

simuverse's Issues

crashed when run it on the window10

run it on windows 10 by the compiler(rustc 1.67.0 (fc594f156 2023-01-24))
callstack is

thread 'main' panicked at 'called glDebugMessageCallback but it was not loaded.', C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\glow-0.12.0\src\gl46.rs:4234:5
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library\std\src\panicking.rs:575
   1: core::panicking::panic_fmt
             at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library\core\src\panicking.rs:64
   2: glow::gl46::go_panic_because_fn_not_loaded
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\glow-0.12.0\src\gl46.rs:4234
   3: glow::gl46::call_atomic_ptr_2arg
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\glow-0.12.0\src\gl46.rs:4316
   4: glow::gl46::struct_commands::GlFns::DebugMessageCallback
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\glow-0.12.0\src\gl46.rs:10203
   5: glow::native::impl$2::debug_message_callback<void (*)(u32,u32,u32,u32,ref$<str$>)>
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\glow-0.12.0\src\native.rs:2545
   6: wgpu_hal::gles::egl::impl$12::enumerate_adapters
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-hal-0.15.2\src\gles\egl.rs:888
   7: wgpu_core::instance::impl$6::request_adapter::gather<wgpu_hal::gles::Api,tuple$<> >
             at C:\Users\litonggao\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.15.1\src\instance.rs:733
   8: wgpu_core::hub::Global<wgpu_core::hub::IdentityManagerFactory>::request_adapter<wgpu_core::hub::IdentityManagerFactory>
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.15.1\src\instance.rs:805
   9: wgpu::backend::direct::impl$7::instance_request_adapter
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.15.1\src\backend\direct.rs:576
  10: wgpu::context::impl$5::instance_request_adapter<wgpu::backend::direct::Context>
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.15.1\src\context.rs:1932
  11: wgpu::Instance::request_adapter
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.15.1\src\lib.rs:1424
  12: wgpu::util::init::initialize_adapter_from_env_or_default::async_fn$0
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.15.1\src\util\init.rs:79
  13: app_surface::request_device::async_fn$0
             at C:\Users\xxx\.cargo\git\checkouts\wgpu-in-app-358da915a14ea882\8271c28\app-surface\src\lib.rs:116
  14: app_surface::app_surface::impl$0::new::async_fn$0
             at C:\Users\xxx\.cargo\git\checkouts\wgpu-in-app-358da915a14ea882\8271c28\app-surface\src\app_surface.rs:24
  15: simuverse::framework::create_action_instance::async_fn$0<simuverse::SimuverseApp>
             at .\src\framework.rs:129
  16: pollster::block_on<enum2$<simuverse::framework::create_action_instance::async_fn_env$0<simuverse::SimuverseApp> > >
             at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\pollster-0.2.5\src\lib.rs:125
  17: simuverse::framework::run<simuverse::SimuverseApp>
             at .\src\framework.rs:31
  18: simuverse::main
             at .\src\main.rs:230
  19: core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
             at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405\library\core\src\ops\function.rs:507
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `target\debug\simuverse.exe` (exit code: 101)

Didn't copy the cloth image to target/assets

when running
cargo run-wasm
there is a warning :could not find file cloth_500x500.png and can't get contents from localhost 8000
when i copy the cloth png to the warned directory, all perfectly worked

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.