GithubHelp home page GithubHelp logo

bevmnist's People

Contributors

dependabot[bot] avatar mockersf avatar tommythorn 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

Watchers

 avatar  avatar

bevmnist's Issues

Panic when drawing out of bound

I don't have time to investigate right now, but I noticed a panic if you draw over the edge (eg. mouse-down and move down beyond the border).

RUST_BACKTRACE=1 cargo run 
    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
     Running `target/debug/bevmnist`
Nov 21 02:50:28.775  WARN wgpu_core::instance: Missing internal features: ROBUST_BUFFER_ACCESS
Nov 21 02:50:28.969  WARN wgpu_core::device: Failed to parse shader SPIR-V code: UnsupportedBuiltIn(4)
Nov 21 02:50:28.969  WARN wgpu_core::device: Shader module will not be validated
Nov 21 02:50:29.108  WARN wgpu_core::device: Failed to parse shader SPIR-V code: UnsupportedBuiltIn(4)
Nov 21 02:50:29.108  WARN wgpu_core::device: Shader module will not be validated
Nov 21 02:50:29.220  WARN wgpu_core::device: Failed to parse shader SPIR-V code: UnsupportedBuiltIn(4)
Nov 21 02:50:29.220  WARN wgpu_core::device: Shader module will not be validated
thread 'Compute Task Pool (4)' panicked at 'index out of bounds: the len is 1440000 but the index is 1441032', src/main.rs:200:5
stack backtrace:
   0: rust_begin_unwind
             at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:483
   1: core::panicking::panic_fmt
             at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:85
   2: core::panicking::panic_bounds_check
             at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:62
   3: <usize as core::slice::index::SliceIndex<[T]>>::index_mut
             at /Users/tommy/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/index.rs:261
   4: core::slice::index::<impl core::ops::index::IndexMut<I> for [T]>::index_mut
             at /Users/tommy/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/index.rs:26
   5: <alloc::vec::Vec<T> as core::ops::index::IndexMut<I>>::index_mut
             at /Users/tommy/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/vec.rs:1994
   6: bevmnist::set_pixel
             at ./src/main.rs:200
   7: bevmnist::drawing
             at ./src/main.rs:185
...

drawing is misaligned with input on Firefox for Android

Amazing! When I try in Firefox for Android on a Pixel 3, the paint appears in the top left of the input box, with drawing at the bottom-right corner appearing in the middle. It's as if scaled down 50%..

Version: 85.1.3 (Build #2015792283)
AC: 70.0.20, d282b98ef
GV: 85.0.2-20210208133944
AS: 67.2.0

drawing stutters and ends in Chrome on Android

Amazing! When I try https://vleue.itch.io/bevmnist-poc in Chrome on a Pixel 3, it draws a few blobs tracking my finger, then it stops updating. So to draw a reasonably-sized '1' I have to draw four segments, and a '3' takes about 10 (and it does recognize both well). When I press [Clear] it draws a line of blobs towards the button extending to the edge of the input canvas, suggesting it is still in some touch-tracking mode.

Chrome version 88.0.4324.181

cargo install error

When I run cargo install wasm-bindgen-cli https, error comes:
error: failed to run custom build command for curl-sys v0.4.39+curl-7.74.0

Caused by:
could not execute process C:\Users\cym\AppData\Local\Temp\cargo-installcRTlqM\release\build\curl-sys-832fd609f2fd14f1\build-script-build (never executed)

Caused by:
拒绝访问。 (os error 5)
warning: build failed, waiting for other jobs to finish...
error: failed to compile wasm-bindgen-cli v0.2.69, intermediate artifacts can be found at C:\Users\cym\AppData\Local\Temp\cargo-installcRTlqM

Caused by:
build failed
Ignored package https v1.10.0 is already installed, use --force to override
Summary Successfully installed https! Failed to install wasm-bindgen-cli (see error(s) above).
How can I fix it?

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.