Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mijia-homie crash #131

Open
qwandor opened this issue Jan 23, 2021 · 1 comment
Open

mijia-homie crash #131

qwandor opened this issue Jan 23, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@qwandor
Copy link
Collaborator

qwandor commented Jan 23, 2021

Jan 20 01:12:55 cottagepi systemd[1]: Started Bluetooth temperature sensor to MQTT publisher.
Jan 20 01:12:56 cottagepi mijia-homie[465]: The application panicked (crashed).
Jan 20 01:12:56 cottagepi mijia-homie[465]: Message:  called `Option::unwrap()` on a `None` value
Jan 20 01:12:56 cottagepi mijia-homie[465]: Location: /project/homie-device/src/lib.rs:588
Jan 20 01:12:56 cottagepi mijia-homie[465]: Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Jan 20 01:12:56 cottagepi mijia-homie[465]: Run with RUST_BACKTRACE=full to include source snippets.
Jan 20 01:12:56 cottagepi mijia-homie[465]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Jan 20 01:12:56 cottagepi mijia-homie[465]:  1: __libc_start_main
Jan 20 01:12:56 cottagepi mijia-homie[465]:     at <unknown source file>
Jan 20 01:12:56 cottagepi systemd[1]: mijia-homie.service: Main process exited, code=exited, status=101/n/a
Jan 20 01:12:56 cottagepi systemd[1]: mijia-homie.service: Failed with result 'exit-code'.
Jan 20 01:13:06 cottagepi systemd[1]: mijia-homie.service: Service RestartSec=10s expired, scheduling restart.
Jan 20 01:13:06 cottagepi systemd[1]: mijia-homie.service: Scheduled restart job, restart counter is at 1.
Jan 20 01:13:06 cottagepi systemd[1]: Stopped Bluetooth temperature sensor to MQTT publisher.
Jan 20 01:13:06 cottagepi systemd[1]: Started Bluetooth temperature sensor to MQTT publisher.
Jan 20 01:13:06 cottagepi mijia-homie[1041]: The application panicked (crashed).
Jan 20 01:13:06 cottagepi mijia-homie[1041]: Message:  called `Option::unwrap()` on a `None` value
Jan 20 01:13:06 cottagepi mijia-homie[1041]: Location: /project/homie-device/src/lib.rs:588
Jan 20 01:13:06 cottagepi mijia-homie[1041]: Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Jan 20 01:13:06 cottagepi mijia-homie[1041]: Run with RUST_BACKTRACE=full to include source snippets.
Jan 20 01:13:06 cottagepi mijia-homie[1041]: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Jan 20 01:13:06 cottagepi mijia-homie[1041]:  1: __libc_start_main
Jan 20 01:13:06 cottagepi mijia-homie[1041]:     at <unknown source file>
J
@qwandor qwandor self-assigned this Jan 23, 2021
@qwandor qwandor added the bug Something isn't working label Jan 23, 2021
@qwandor
Copy link
Collaborator Author

qwandor commented Jan 23, 2021

The crash is because local_ipaddress::get() returns None, presumably because there is no network connection at that point. This is a bit weird, as mijia-homie shouldn't be started until the network is up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant