Skip to content

Panic on startup #41

@matthiasbeyer

Description

@matthiasbeyer

https://github.com/Lissy93/AdGuardian-Term/blob/28caa1e35f15e1b85d77da9754b03c54fac85bf3/src/welcome.rs#L75

This line panics on nixos because of index out of bounds:

thread 'main' panicked at src/welcome.rs:75:62:
byte index 1 is out of bounds of ``
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::str::slice_error_fail_rt
   3: core::str::slice_error_fail
   4: adguardian::welcome::check_version
   5: adguardian::welcome::welcome::{{closure}}
   6: tokio::runtime::park::CachedParkThread::block_on
   7: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
   8: adguardian::main

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions