Skip to content

The application panicked (crashed) when Address already in use #37

@ckujau

Description

@ckujau

Upon upgrading from 0.5.0-beta2 to 0.5.0 I was greeted with this:

$ ./sthp-macos-0.5.0 --version; ./sthp-macos-0.5.0; echo $?
sthp 0.5.0
The application panicked (crashed).
Message:  Failed to run program: 
   0: Address already in use (os error 48)

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Location: src/main.rs:82

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
101

Of course, I forgot to add the options to have it use another port that's not currently in use but that "The application panicked" error was kinda unexpected. With the beta2 version the error message is much more user friendly and the application did not crash:

./sthp-macos-0.5.0-beta2 --version; ./sthp-macos-0.5.0-beta2; echo $?
sthp 0.5.0-beta2
Error: 
   0: Address already in use (os error 48)

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
1

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