BrainiumLLC / cargo-mobile

Rust on mobile made easy!
Apache License 2.0
1.23k stars 52 forks source link

Android app crashes on open. #33

Open indiein opened 3 years ago

indiein commented 3 years ago

Created app from bevy-demo template and app crashes on startup. Here is the stack trace from logcat.

07-29 08:01:30.543  5951  5951 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-29 08:01:30.543  5951  5951 F DEBUG   : Build fingerprint: 'OnePlus/OnePlus7T/OnePlus7T:11/RKQ1.201022.002/2105251411:user/release-keys'
07-29 08:01:30.543  5951  5951 F DEBUG   : Revision: '0'
07-29 08:01:30.544  5951  5951 F DEBUG   : ABI: 'arm64'
07-29 08:01:30.547  5951  5951 F DEBUG   : Timestamp: 2021-07-29 08:01:30+0530
07-29 08:01:30.547  5951  5951 F DEBUG   : pid: 4954, tid: 5898, name: m.example.hello  >>> com.example.hello <<<
07-29 08:01:30.547  5951  5951 F DEBUG   : uid: 10469
07-29 08:01:30.547  5951  5951 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
07-29 08:01:30.547  5951  5951 F DEBUG   :     x0  0000000000000000  x1  000000000000170a  x2  0000000000000006  x3  00000076ffdc87b0
07-29 08:01:30.547  5951  5951 F DEBUG   :     x4  00000076fcef707c  x5  00000076fcef707c  x6  00000076fcef707c  x7  00000076fcef707c
07-29 08:01:30.547  5951  5951 F DEBUG   :     x8  00000000000000f0  x9  0548d6964125785a  x10 0000000000000000  x11 ffffffc0fffffbdf
07-29 08:01:30.547  5951  5951 F DEBUG   :     x12 0000000000000001  x13 0000000000000004  x14 ffffffffffffffff  x15 0000bbab6a9421db
07-29 08:01:30.547  5951  5951 F DEBUG   :     x16 0000007a5d8d0c80  x17 0000007a5d8b2b70  x18 00000076fc514000  x19 000000000000135a
07-29 08:01:30.547  5951  5951 F DEBUG   :     x20 000000000000170a  x21 00000000ffffffff  x22 000000000000135a  x23 000000000000135a
07-29 08:01:30.547  5951  5951 F DEBUG   :     x24 00000076ffdc8cc0  x25 00000076ffdc8cc0  x26 00000076ffdc8ff8  x27 0000000000204000
07-29 08:01:30.547  5951  5951 F DEBUG   :     x28 00000076ffbc8000  x29 00000076ffdc8830
07-29 08:01:30.547  5951  5951 F DEBUG   :     lr  0000007a5d8663e0  sp  00000076ffdc8790  pc  0000007a5d86640c  pst 0000000000000000
07-29 08:01:30.609  5951  5951 F DEBUG   : backtrace:
07-29 08:01:30.609  5951  5951 F DEBUG   :       #00 pc 000000000004e40c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 07fbaeed7b7a19203975f06be6f1d5ef)
07-29 08:01:30.609  5951  5951 F DEBUG   :       #01 pc 000000000152d6d8  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (std::sys::unix::abort_internal::hcc82a6e88a8977ea+4)
07-29 08:01:30.609  5951  5951 F DEBUG   :       #02 pc 00000000015280b4  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (std::process::abort::h2da4fae5ddb4e49a+4)
07-29 08:01:30.609  5951  5951 F DEBUG   :       #03 pc 000000000063dbbc  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (hello::stop_unwind::h4f85dae9f010e4ac+172)
07-29 08:01:30.609  5951  5951 F DEBUG   :       #04 pc 000000000063dc50  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (hello::_start_app::h7f83025936cdba21+4)
07-29 08:01:30.609  5951  5951 F DEBUG   :       #05 pc 000000000139120c  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (ndk_glue::init::_$u7b$$u7b$closure$u7d$$u7d$::hd13bb002d643b300+212)
07-29 08:01:30.609  5951  5951 F DEBUG   :       #06 pc 0000000001393d3c  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (std::sys_common::backtrace::__rust_begin_short_backtrace::h456a843f00695006+12)
07-29 08:01:30.609  5951  5951 F DEBUG   :       #07 pc 0000000001392c5c  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h9c85b406d1905222+12)
07-29 08:01:30.609  5951  5951 F DEBUG   :       #08 pc 000000000138ee84  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (_$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h844acdfdd6cedcc8+12)
07-29 08:01:30.609  5951  5951 F DEBUG   :       #09 pc 000000000138eb44  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (std::panicking::try::do_call::h49b0cf076f580d61+36)
07-29 08:01:30.609  5951  5951 F DEBUG   :       #10 pc 000000000138ee14  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (__rust_try+24)
07-29 08:01:30.610  5951  5951 F DEBUG   :       #11 pc 000000000138e9dc  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (std::panicking::try::h0ab13e2b2fdd0397+60)
07-29 08:01:30.610  5951  5951 F DEBUG   :       #12 pc 000000000138ef2c  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (std::panic::catch_unwind::h24e1bcdde8e14af8+12)
07-29 08:01:30.610  5951  5951 F DEBUG   :       #13 pc 0000000001392b04  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::ha6b8e1db4326c096+220)
07-29 08:01:30.610  5951  5951 F DEBUG   :       #14 pc 000000000138be78  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hfcde3c97ef841cbb+12)
07-29 08:01:30.610  5951  5951 F DEBUG   :       #15 pc 000000000152d3b8  /data/app/~~haF1CAQzEyu4aSnKMwPhkw==/com.example.hello-J32oCDWT7U8M3S2BffzRaA==/lib/arm64/libhello.so (std::sys::unix::thread::Thread::new::thread_start::h252218714dd4a499+28)
07-29 08:01:30.610  5951  5951 F DEBUG   :       #16 pc 00000000000b0048  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 07fbaeed7b7a19203975f06be6f1d5ef)
07-29 08:01:30.610  5951  5951 F DEBUG   :       #17 pc 00000000000503c8  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 07fbaeed7b7a19203975f06be6f1d5ef)
zeerooth commented 3 years ago

Hello @indiein - sorry for a late reply, but are you still experiencing this issue? If so, could you please provide some more logs from adb logcat containing any relevant info for from the application and your NDK and Rust versions?