GithubHelp home page GithubHelp logo

clam's People

Contributors

khyperia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clam's Issues

Panic at src/render_window.rs:82:14

When running cargo run --release on an M1 Apple Silicon Macbook, I get

     Running `target/release/clam5`
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/render_window.rs:82:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This part of the code is

  71   │     async fn new(window: &Window) -> Self {
  72   │         let size = window.inner_size();
  73   │ 
  74   │         let instance = wgpu::Instance::new(wgpu::BackendBit::VULKAN);
  75   │         let surface = unsafe { instance.create_surface(window) };
  76   │         let adapter = instance
  77   │             .request_adapter(&wgpu::RequestAdapterOptions {
  78   │                 power_preference: wgpu::PowerPreference::Default,
  79   │                 compatible_surface: Some(&surface),
  80   │             })
  81   │             .await
  82   │             .unwrap();

I got suspicious because of BackendBit::VULKAN, and its docs mention that it's supported on macOS with the vulkan-portability feature. I added that to the wgpu line in Cargo.toml:

-wgpu = ""
+wgpu = { version = "", features = ["vulkan-portability"] }

and reran to get a different error:

     Running `target/release/clam5`
[2021-01-18T00:00:24Z INFO  gfx_backend_vulkan] Missing Vulkan entry points: LoadingError(DlOpen { desc: "dlopen(libvulkan.dylib, 2): image not found" })
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/render_window.rs:82:14

Then I tried just switching to BackendBit::PRIMARY to see whether it would run anyways, and got an error about a missing font. I don't have the named font for macOS, so I added "/Library/Fonts/Arial Unicode.ttf" and after that it (seemed to) run successfully.

whoa

You fractals are really beautiful. Thank you!

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.