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

byte index N is not a char boundary; it is inside 't' #323

Open
JosXa opened this issue Dec 4, 2024 · 0 comments
Open

byte index N is not a char boundary; it is inside 't' #323

JosXa opened this issue Dec 4, 2024 · 0 comments

Comments

@JosXa
Copy link

JosXa commented Dec 4, 2024

Govee Device SKU

Unsure which device causes it

Govee2MQTT Version

2024.07.13-82ddc6e9

Describe the issue

Crashes the entire addon, then weirdly doesn't even auto-restart itself with Watchdog enabled:

...
[2024-12-04T13:46:56 INFO  govee::service::http] http server addr is 0.0.0.0:8056
The application panicked (crashed).
Message:  byte index 4570656 is not a char boundary; it is inside 't' (bytes 4570655..4570656) of `{
  "expires": "2024-12-05T12:46:08.039415091Z",
  "result": {
    "Ok": [
      {
        "categoryId": 5,
        "categoryName": "Natural",
        "scenes": [
          {
            "sceneId": 128,
            "iconUrls": [
              "https://d1f2`[...]
Location: library/core/src/fmt/mod.rs:2399
Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                              ⋮ 7 frames hidden ⋮                               
 8: core::str::slice_error_fail_rt::h04374f75c560e191
    at <unknown source file>
 9: core::str::slice_error_fail::hb89db4ef9048a705
    at <unknown source file>
10: <str as core::fmt::Debug>::fmt::hef83272574c6e16a
    at <unknown source file>
11: core::fmt::write::h8d9f62e4196a6251
    at <unknown source file>
12: core::fmt::write::h8d9f62e4196a6251
    at <unknown source file>
13: govee::setup_logger::{{closure}}::h8e256c90ddb6c1f7
    at <unknown source file>
14: <env_logger::logger::Logger as log::Log>::log::{{closure}}::h7c4ccfe12260e070
    at <unknown source file>
15: <env_logger::logger::Logger as log::Log>::log::h9f59259f25d8f1b1
    at <unknown source file>
16: log::__private_api::log_impl::h20a75d03b27538b4
    at <unknown source file>
17: govee::undoc_api::GoveeUndocumentedApi::synthesize_platform_api_scene_list::{{closure}}::hf374a65cf8d88711
    at <unknown source file>
18: govee::platform_api::GoveeApiClient::get_scene_caps::{{closure}}::h89898890b7fb6ff8
    at <unknown source file>
19: govee::service::state::State::device_list_scenes::{{closure}}::h9afde22318b1b8e5
    at <unknown source file>
20: govee::hass_mqtt::light::DeviceLight::for_device::{{closure}}::hed2dfaa4c879082b
    at <unknown source file>
21: govee::hass_mqtt::enumerator::enumerate_entities_for_device::{{closure}}::h9c5f8d27be788273
    at <unknown source file>
22: govee::service::state::State::notify_of_state_change::{{closure}}::ha862e27c7da85c7b
    at <unknown source file>
23: govee::commands::serve::ServeCommand::run::{{closure}}::{{closure}}::{{closure}}::h8287557b03ffc273
    at <unknown source file>
24: tokio::runtime::task::core::Core<T,S>::poll::h79843911e417cba3
    at <unknown source file>
25: tokio::runtime::task::harness::Harness<T,S>::poll::h06d6fd49e81101ed
    at <unknown source file>
26: tokio::runtime::scheduler::multi_thread::worker::Context::run_task::h0f83abf397e8037d
    at <unknown source file>
27: tokio::runtime::scheduler::multi_thread::worker::Context::run::h4c6987d1cf1dd4fd
    at <unknown source file>
28: tokio::runtime::context::runtime::enter_runtime::h419b4ee1aeaefaca
    at <unknown source file>
29: tokio::runtime::scheduler::multi_thread::worker::run::he9c1151b4867600c
    at <unknown source file>
30: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll::hf34b69d8485bb368
    at <unknown source file>
31: tokio::runtime::task::core::Core<T,S>::poll::hd6e7bf2d2589f4a8
    at <unknown source file>
32: tokio::runtime::task::harness::Harness<T,S>::poll::h830cadfcba9534cc
    at <unknown source file>
33: tokio::runtime::blocking::pool::Inner::run::h683654db4186ac95
    at <unknown source file>
34: std::sys_common::backtrace::__rust_begin_short_backtrace::hf85fa8c8b780c91c
    at <unknown source file>
35: core::ops::function::FnOnce::call_once{{vtable.shim}}::h58902e68d95766ad
    at <unknown source file>
36: std::sys::pal::unix::thread::Thread::new::thread_start::h61ac85f9f5579d7e
    at <unknown source file>
Segmentation fault (core dumped)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
GOVEE_API_KEY=REDACTED
GOVEE_MQTT_HOST=core-mosquitto
GOVEE_TEMPERATURE_SCALE=C
GOVEE_EMAIL=REDACTED
GOVEE_PASSWORD=REDACTED
GOVEE_MQTT_PASSWORD=REDACTED
GOVEE_MQTT_USER=addons
GOVEE_MQTT_PORT=1883
++ cd /app
++ exec /app/govee serve

Startup Diagnostics

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
GOVEE_API_KEY=REDACTED
GOVEE_MQTT_HOST=core-mosquitto
GOVEE_TEMPERATURE_SCALE=C
GOVEE_EMAIL=REDACTED
GOVEE_PASSWORD=REDACTED
GOVEE_MQTT_PASSWORD=REDACTED
GOVEE_MQTT_USER=addons
GOVEE_MQTT_PORT=1883
++ cd /app
++ exec /app/govee serve
[2024-12-04T17:03:12 INFO  govee::commands::serve] Starting service. version 2024.07.13-82ddc6e9
[2024-12-04T17:03:12 INFO  govee::commands::serve] Querying platform API for device list
[2024-12-04T17:03:14 INFO  govee::commands::serve] Querying undocumented API for device + room list
[2024-12-04T17:03:15 INFO  govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted.
[2024-12-04T17:03:15 INFO  govee::commands::serve] Starting LAN discovery
[2024-12-04T17:03:15 INFO  govee::commands::serve] Waiting 10 seconds for LAN API discovery
[2024-12-04T17:03:15 INFO  govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted.
[2024-12-04T17:03:25 INFO  govee::commands::serve] Devices returned from Govee's APIs
...

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant