Stockfish
Stockfish copied to clipboard
Crashing on Real Device after Build
Crashing on real device (Pixel 5):
I/flutter (17212): test
I/flutter (17212): RouteSettings("/", null)
D/CompatibilityChangeReporter(17212): Compat change id reported: 179274888; UID 10476; state: LOGGED
I/flutter (17212): test
I/flutter (17212): RouteSettings("/game/new-ai", null)
F/appproc (17212): Error changing dalvik-cache ownership : Permission denied
F/libc (17212): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 17471 (DartWorker), pid 17212 (khad.white_pawn)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/redfin/redfin:S/SPB1.210331.013/7333779:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2021-05-28 10:56:31.896867306+0200
Process uptime: 0s
pid: 17212, tid: 17471, name: DartWorker >>> im.khad.white_pawn <<<
uid: 10476
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: 'Error changing dalvik-cache ownership : Permission denied'
x0 0000000000000000 x1 000000000000443f x2 0000000000000006 x3 0000007b723f9c10
x4 646d766e1f646762 x5 646d766e1f646762 x6 646d766e1f646762 x7 7f7f7f7f7f7f7f7f
x8 00000000000000f0 x9 a3eb7c49514cfb52 x10 0000000000000000 x11 ffffff80fffffbdf
x12 0000000000000001 x13 000000000000003a x14 0000007b723f9e60 x15 0000000000000050
x16 0000007ed3603068 x17 0000007ed35e0950 x18 0000007b71c76000 x19 000000000000433c
x20 000000000000443f x21 00000000ffffffff x22 0000007c3790c000 x23 0000007b723fa378
x24 0000007b723fc000 x25 0000000000000000 x26 0000007c3790b000 x27 0000000000000000
x28 0000007b723fc000 x29 0000007b723f9c90
lr 0000007ed359375c sp 0000007b723f9bf0 pc 0000007ed3593788 pst 0000000000001000
backtrace:
#00 pc 0000000000050788 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 913f3dd27e3b19e9d61a7a65f13548e7)
#01 pc 00000000005b6114 /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+676) (BuildId: f4e20cda211c7943fa6824a4307d7cfd)
#02 pc 000000000001595c /system/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+76) (BuildId: 09ac3d101f65baf5b5700a809c02f1f8)
#03 pc 0000000000006dc8 /system/lib64/liblog.so (__android_log_assert+308) (BuildId: 107c42275231402254eb8763518af13f)
#04 pc 00000000000026c8 /system/bin/app_process64 (main+1660) (BuildId: b14db68ce588c96e5fd5907ea5196e11)
#05 pc 000000000007c5bc /data/app/~~sVIl8gpjAu-30nJoGU9W8A==/im.khad.white_pawn-8w3dnlnYIXakNgE0ywSvaA==/base.apk!libstockfish.so (stockfish_main+124) (BuildId: 49578b80340cceb3ffdb3889df3ccd3e363d0c40)
#06 pc 0000000000006694 <anonymous:7ba2480000>
Lost connection to device.
Error changing dalvik-cache ownership : Permission denied
Sounds serious. I have just built the example app in release mode and it ran fine on an Android device... The crashing app your app or are you testing with the example one?
I am runnning my app. Probably i should try the example one on the device .)
Yes, please do that. Also, are you running Android 12 beta on the Pixel 5?
yes exactly, i can try on a other device first :)
I tested now on android 11 and it works. Do you have any ideas how to get it running on android 12 aswell ? :)
No idea yet, probably related to the old NDK version though...
I have just investigated NDK versioning (see https://github.com/ArjanAswal/Stockfish/issues/7#issuecomment-850581244). Can you try bumping gradle to 4.2.0 as suggested in that comment in order to use NDK 21.4? Newer version may have better compatibility with Android 12.
Thank you really much will try that as soon as i can. Probably Sunday :)
I tried out, bumped gradle to 4.2.0. Still crashing.. probably not very bad cause its only android 12 but still a pitty :/