Android App Crash when open doc file

Hi.

I’m building Collabora Android.

First, I built with NDK 23.0.7123448-beta1 and I got this error: “arm-linux-androideabi-ar” not found

so after googling, I built successfully with NDK 21.4.7075529 and compile with Android Studio

The app runs fine, but when open odt file, it crashes like below.

A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** A/DEBUG: Build fingerprint: 'UMIDIGI/A7_Pro/A7_Pro:10/QP1A.190711.020/2103171324:user/release-keys' A/DEBUG: Revision: '0' A/DEBUG: ABI: 'arm' A/DEBUG: Timestamp: 2021-05-04 11:54:35+0800 A/DEBUG: pid: 2824, tid: 2960, name: lokit_main >>> org.libreoffice.androidapp <<< A/DEBUG: uid: 10535 A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- A/DEBUG: Abort message: '/usr/local/google/buildbot/src/android/ndk-release-r19/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type com::sun::star::uno::DeploymentException" failed' A/DEBUG: r0 00000000 r1 00000b90 r2 00000006 r3 b5e13638 A/DEBUG: r4 b5e1364c r5 b5e13630 r6 00000b08 r7 0000016b A/DEBUG: r8 b5e13648 r9 b5e13638 r10 b5e13668 r11 b5e13658 A/DEBUG: ip 00000b90 sp b5e13608 lr f3efc2c3 pc f3efc2d6 A/DEBUG: backtrace: A/DEBUG: #00 pc 0005f2d6 /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: 4431b35d55c1d9b5f8568451110b8281) A/DEBUG: #01 pc 0005f583 /apex/com.android.runtime/lib/bionic/libc.so (__assert2+22) (BuildId: 4431b35d55c1d9b5f8568451110b8281) A/DEBUG: #02 pc 03a3c0e1 /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/liblo-native-code.so (BuildId: 53e6840f827d6a6d413b5fb99f94235e4e47edbc) A/DEBUG: #03 pc 03a3c207 /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/liblo-native-code.so (BuildId: 53e6840f827d6a6d413b5fb99f94235e4e47edbc) A/DEBUG: #04 pc 03a3a609 /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/liblo-native-code.so (BuildId: 53e6840f827d6a6d413b5fb99f94235e4e47edbc) A/DEBUG: #05 pc 03a39f9f /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/liblo-native-code.so (BuildId: 53e6840f827d6a6d413b5fb99f94235e4e47edbc) A/DEBUG: #06 pc 03a39f67 /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/liblo-native-code.so (BuildId: 53e6840f827d6a6d413b5fb99f94235e4e47edbc) A/DEBUG: #07 pc 00a2f3af /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/liblo-native-code.so (BuildId: 53e6840f827d6a6d413b5fb99f94235e4e47edbc) A/DEBUG: #08 pc 00a2f73f /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/liblo-native-code.so (BuildId: 53e6840f827d6a6d413b5fb99f94235e4e47edbc) A/DEBUG: #09 pc 038aa6a9 /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/liblo-native-code.so (BuildId: 53e6840f827d6a6d413b5fb99f94235e4e47edbc) A/DEBUG: #10 pc 038a93f9 /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/liblo-native-code.so (libreofficekit_hook_2+40) (BuildId: 53e6840f827d6a6d413b5fb99f94235e4e47edbc) A/DEBUG: #11 pc 00154c1f /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/libandroidapp.so (lokit_main(int, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&, unsigned int)+1622) (BuildId: ddf22cf6c926c676650a6fb9704af6c22b11873e) A/DEBUG: #12 pc 001a5389 /data/app/org.libreoffice.androidapp-etIqtr-y09rmVHiSedM6sA==/lib/arm/libandroidapp.so (BuildId: ddf22cf6c926c676650a6fb9704af6c22b11873e) A/DEBUG: #13 pc 000a60b3 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: 4431b35d55c1d9b5f8568451110b8281) A/DEBUG: #14 pc 00060783 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 4431b35d55c1d9b5f8568451110b8281)

Is it related to NDK version?

Please help me.

Thanks.

Hi @Damir and thanks for trying to build/hack on android : )

Maybe @merttumer can help you (?)

Meanwhile I will just drop here the step-by-step documentation: