canselcik / libremarkable

The only public framework for developing applications with native refresh support for Remarkable Tablet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crashes on RM2 with Eraser

rlingineni opened this issue · comments

I was able to get the Demo running on my Remarkable, however, it crashes as soon as I use the eraser.

Looks like there's some unhandled input.

2021-03-19T17:26:14Z INFO  demo] Init complete. Beginning event dispatch...
[2021-03-19T17:26:14Z INFO  libremarkable::input::ev] Init complete for "/dev/input/event1"
[2021-03-19T17:26:14Z INFO  libremarkable::input::ev] Init complete for "/dev/input/event2"
[2021-03-19T17:26:14Z INFO  libremarkable::input::ev] Init complete for "/dev/input/event0"
[2021-03-19T17:26:14Z DEBUG libremarkable::input::scan] Closed initially opened evdev fds (if not used by now).
thread 'main' panicked at 'internal error: entered unreachable code', examples/demo.rs:497:22
stack backtrace:
   0: rust_begin_unwind
             at /rustc/1705a7d64b833d1c4b69958b0627bd054e6d764b/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/1705a7d64b833d1c4b69958b0627bd054e6d764b/library/core/src/panicking.rs:92:14
   2: core::panicking::panic
             at /rustc/1705a7d64b833d1c4b69958b0627bd054e6d764b/library/core/src/panicking.rs:50:5
   3: demo::on_wacom_input
             at /home/builder/libremarkable/examples/demo.rs:497:22
   4: libremarkable::appctx::ApplicationContext::dispatch_events
             at /home/builder/libremarkable/src/appctx.rs:524:25
   5: demo::main
             at /home/builder/libremarkable/examples/demo.rs:1176:5
   6: core::ops::function::FnOnce::call_once
             at /rustc/1705a7d64b833d1c4b69958b0627bd054e6d764b/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.