Giter VIP home page Giter VIP logo

ascii-pay-nfc-terminal's People

Contributors

bennofs avatar jkrbs avatar pixix4 avatar tanneberger avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

5l1v3r1

ascii-pay-nfc-terminal's Issues

thread 'tokio-runtime-worker' panicked at 'range end index 64 out of range for slice of length 63', src/nfc_module/generic_nfc_handler.rs:211:27

This happens sometimes, I have not investigated why:

thread 'tokio-runtime-worker' panicked at 'range end index 64 out of range for slice of length 63', src/nfc_module/generic_nfc_handler.rs:211:27

Here's the crash log:

May 26 15:23:44 latte ascii-pay-nfc-terminal-start[654]: [2023-05-26T13:23:44Z INFO  ascii_pay_nfc_terminal::nfc_module::generic_nfc_handler] Insert 'MiFare DESFire EV2' card
May 26 15:23:45 latte ascii-pay-nfc-terminal-start[654]: [2023-05-26T13:23:45Z INFO  ascii_pay_nfc_terminal::nfc_module::generic_nfc_handler] Insert 'MiFare DESFire EV2' card
May 26 15:23:56 latte ascii-pay-nfc-terminal-start[654]: [2023-05-26T13:23:56Z INFO  ascii_pay_nfc_terminal::nfc_module] Remove nfc card
May 26 15:23:56 latte ascii-pay-nfc-terminal-start[654]: [2023-05-26T13:23:56Z INFO  ascii_pay_nfc_terminal::nfc_module] Remove nfc card
May 26 15:29:44 latte ascii-pay-nfc-terminal-start[654]: [2023-05-26T13:29:44Z INFO  ascii_pay_nfc_terminal::nfc_module] Remove nfc card
May 26 15:29:44 latte ascii-pay-nfc-terminal-start[654]: [2023-05-26T13:29:44Z INFO  ascii_pay_nfc_terminal::nfc_module::generic_nfc_handler] Insert 'MiFare DESFire EV2' card
May 26 15:29:44 latte ascii-pay-nfc-terminal-start[654]: transmit [FF, CA, 0, 0, 0]
May 26 15:29:44 latte ascii-pay-nfc-terminal-start[654]: [2023-05-26T13:29:44Z INFO  ascii_pay_nfc_terminal::nfc_module::generic_nfc_handler] Insert 'MiFare DESFire EV2' card
May 26 15:29:44 latte ascii-pay-nfc-terminal-start[654]: [2023-05-26T13:29:44Z INFO  ascii_pay_nfc_terminal::nfc_module::generic_nfc_handler] Insert 'MiFare DESFire EV2' card
May 26 15:29:44 latte ascii-pay-nfc-terminal-start[654]: thread 'tokio-runtime-worker' panicked at 'range end index 64 out of range for slice of length 63', src/nfc_module/generic_nfc_handler.rs:211:27
May 26 15:29:44 latte ascii-pay-nfc-terminal-start[654]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Terminate process if component thread crashes

Right now, parts of the application may crash without terminating the application:

Sep 09 23:51:37 latte ascii-pay-nfc-terminal-start[2876237]: thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: NoService>
Sep 09 23:51:37 latte ascii-pay-nfc-terminal-start[2876237]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

After this, the application is still running but no NFC cards are scanned anymore.
Terminating fully in this case will allow the service manager (systemd) to restart the application.

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.