You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
esp-idf-svc panics if the firmware version of esp_app_desc_t.version (and other related fields) is longer than 24 chars.
The upper limit (24 chars) is defined by embedded_svc. esp-idf-svc takes the version provided by esp-idf and tries to convert it into heapless::String::<24> panicking if the version is any longer.
In our project the version used by esp-idf-svc is the output of git describe which is quite big (e.g. v0.3.0-146-gd33fb261-dirty) and leads to a uncontrollable panic.
I think, at least the unwrap should be replaced by an except to give the developer any idea of what went wrong or in the better case be handled (in what ever way, e.g. truncate, Result/Option)
to set the correct firmware name i would suggest, you are using the app_desc makro we provide. That way you get a version controlled information and build time information, all set via your usual Cargo.toml. That way the information in the descriptor is based on your rust app and not on the esp-idf static lib the project is linked into.
Relevant code:
esp-idf-svc/src/ota.rs
Lines 33 to 35 in 730fa36
esp-idf-svc
panics if the firmware version ofesp_app_desc_t.version
(and other related fields) is longer than 24 chars.The upper limit (24 chars) is defined by embedded_svc.
esp-idf-svc
takes the version provided by esp-idf and tries to convert it intoheapless::String::<24>
panicking if the version is any longer.In our project the version used by
esp-idf-svc
is the output of git describe which is quite big (e.g.v0.3.0-146-gd33fb261-dirty
) and leads to a uncontrollable panic.I think, at least the unwrap should be replaced by an
except
to give the developer any idea of what went wrong or in the better case be handled (in what ever way, e.g. truncate, Result/Option)esp-idf app version description: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/misc_system_api.html#app-version
The text was updated successfully, but these errors were encountered: