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
This is due to the ropi-rwpi compilation mode and the fact that our operating system does not have a loader (yet). Some cases are not handled correctly, especially dyn Trait, which write! uses under the hood: for each formatting there is an indirect call to a function (so a 'dynamic' pointer to a static) and this is not handled by ropi.
This is usually solved by calling a specific macro/function (pic()), but this cannot be done in write!'s case because it is part of the standard library, which we can modify like this. There's also ongoing work to make it work in all cases transparently.
Currently in Rust code you can only recode your own formatting function :/
@yhql k, i'm glad you know and are confident about the exact reason of this problem)
Feel free to reopen it and link to any other issues/prs, if it might help the discoverability of this issue for other users stumbling across it.
When using a type from https://github.com/dj8yfo/fmt_buffer/blob/master/src/lib.rs
an app crashes in speculos (not a panic) and hangs on a
nanos
device.This is likely the reason, why
numtoa
is used in https://github.com/LedgerHQ/app-boilerplate-rustinstead of
core::fmt
.An issue, which looked very similar to this one by external features: rust-lang/rust#44538
The text was updated successfully, but these errors were encountered: