vleue / bevmnist Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://vleue.itch.io/bevmnist-poc
License: MIT License
Home Page: https://vleue.itch.io/bevmnist-poc
License: MIT License
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
...
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
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
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.