I created the project with cargo mobile init. I selected egui as my template.
I ran it on my device with cargo android run.
It successfully installs on the phone, but crashes immediately on startup.
logcat reveals this information.
04-11 16:50:11.284 4397 4397 W ContextImpl: Failed to ensure /storage/0403-0201/Android/data/com.uglyoldbob.uob_radio/files: android.os.ServiceSpecificException: (code -30)
04-11 16:50:11.287 4397 4451 I RustStdoutStderr:
04-11 16:50:11.287 4397 4451 I RustStdoutStderr: thread '' panicked at library/core/src/panicking.rs:218:5:
04-11 16:50:11.287 4397 4451 I RustStdoutStderr: unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed isize::MAX
04-11 16:50:11.287 4397 4451 I RustStdoutStderr: note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
04-11 16:50:11.287 4397 4451 I RustStdoutStderr: thread caused non-unwinding panic. aborting.
I created the project with
cargo mobile init. I selected egui as my template.I ran it on my device with cargo android run.
It successfully installs on the phone, but crashes immediately on startup.
logcat reveals this information.
04-11 16:50:11.284 4397 4397 W ContextImpl: Failed to ensure /storage/0403-0201/Android/data/com.uglyoldbob.uob_radio/files: android.os.ServiceSpecificException: (code -30)
04-11 16:50:11.287 4397 4451 I RustStdoutStderr:
04-11 16:50:11.287 4397 4451 I RustStdoutStderr: thread '' panicked at library/core/src/panicking.rs:218:5:
04-11 16:50:11.287 4397 4451 I RustStdoutStderr: unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed
isize::MAX04-11 16:50:11.287 4397 4451 I RustStdoutStderr: note: run with
RUST_BACKTRACE=1environment variable to display a backtrace04-11 16:50:11.287 4397 4451 I RustStdoutStderr: thread caused non-unwinding panic. aborting.