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
On Windows and Android, there are not enough frames showing up in the stacktrace. Most of the frames are missing because they cannot be resolved.
On macOS and iOS, the code filenames are not visible because frames in that Rust code don't include the filename information. It would be great to enable filepath information.
Things that don't make any difference:
Using the default panic hook of Rust without set_hook
web: Not handled by Rinf. Handled by wasm_bindgen.
This is the panic handler code. We replace the native panic hook with the std::panic::set_hook function, sending the panic info to Flutter to print it in the CLI(Only in debug mode, of course) with our debug_print! macro.
On Android, if you disable the resolve step by commenting it out, many more unnamed frames appear in the stacktrace, which seem to derive from our Rust code.
Report
On Windows and Android, there are not enough frames showing up in the stacktrace. Most of the frames are missing because they cannot be
resolve
d.On macOS and iOS, the code filenames are not visible because
frame
s in that Rust code don't include thefilename
information. It would be great to enable filepath information.Things that don't make any difference:
set_hook
RUST_BACKTRACE=1
/RUST_BACKTRACE=full
environment variablesWindows, Android:
macOS, iOS:
Ubuntu:
web: Not handled by Rinf. Handled by
wasm_bindgen
.This is the panic handler code. We replace the native panic hook with the
std::panic::set_hook
function, sending the panic info to Flutter to print it in the CLI(Only in debug mode, of course) with ourdebug_print!
macro.https://github.com/cunarist/rust-in-flutter/blob/8869298306ec585d9cfb37503fcbf7a3d2ef583a/example/native/hub/src/bridge/api.rs#L166-L198
On Android, if you disable the
resolve
step by commenting it out, many more unnamed frames appear in the stacktrace, which seem to derive from our Rust code.https://github.com/cunarist/rust-in-flutter/blob/8869298306ec585d9cfb37503fcbf7a3d2ef583a/example/native/hub/src/bridge/api.rs#L192
This issue can be related to cargokit or missing
.pdb
files after compilation, but we do need deeper anaylsis.Steps to Reproduce
Just use
panic!
anywhere in the Rust code.System Information
I'm testing on multiple platforms, but they all pass these checks.
The text was updated successfully, but these errors were encountered: