Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native crash on Android Google Play and TestLab #107264

Closed
yasburg opened this issue Jul 7, 2022 · 16 comments
Closed

Native crash on Android Google Play and TestLab #107264

yasburg opened this issue Jul 7, 2022 · 16 comments
Labels
a: production Issues experienced in live production apps c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. needs repro info Automated crash report whose cause isn't yet known platform-android Android applications specifically r: duplicate Issue is closed as a duplicate of an existing issue

Comments

@yasburg
Copy link

yasburg commented Jul 7, 2022

My app works fine on a local emulator but when I tried to release it on google play, I received the following native crash report:
(This only happens on google virtual machines so I don't know how to reproduce it.)

Google Pixel 2 (Virtual) 1080x1920 Android 9 (SDK 28) - x86 en_US

Stack trace Native crash of com.company.name

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'generic/gce_x86_phone/gce_x86:9/PGR1.190916.001/5877764:userdebug/test-keys'
Revision: '0'
ABI: 'x86'
pid: 7537, tid: 8492, name: 1.raster  >>> com.company.name <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'vendor/unbundled_google/libs/ndk_translation/ndk_translation/ir/include/ndk_translation/ir/ir.h:685: CHECK failed: IsAligned(offset, GetFormatSize(format))'
    eax 00000000  ebx 00001d71  ecx 0000212c  edx 00000006
    edi 00001d71  esi c47a7b5c
    ebp c47a7b28  esp c47a7ab8  eip eb2c5be9
backtrace:
    #00 pc 00000be9  [vdso:eb2c5000] (__kernel_vsyscall+9)
    #01 pc 0001fdf8  /system/lib/libc.so (syscall+40)
    #02 pc 00022e73  /system/lib/libc.so (abort+115)
    #03 pc 00006c84  /system/lib/liblog.so (__android_log_assert+292)
    #04 pc 0009f2b4  /system/lib/libndk_translation.so (ndk_translation::GetInsn::GetInsn(ndk_translation::IR*, ndk_translation::Format, unsigned int)+276)
    #05 pc 0009f100  /system/lib/libndk_translation.so (ndk_translation::IRBuilder::Get(ndk_translation::Format, unsigned int)+144)
    #06 pc 0009dd2e  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::InsnBuilder::Get(ndk_translation::Format, unsigned int)+46)
    #07 pc 000d0b4b  /system/lib/libndk_translation.so (ndk_translation::SemanticsDecoder::VTBL(ndk_translation::VTBL_Args const&)+363)
    #08 pc 00100568  /system/lib/libndk_translation.so (ndk_translation::ArmDecoder::TranslateThumbInsn(unsigned short const*)+86104)
    #09 pc 0009c2b6  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::GenerateIRHelper(ndk_translation::CompilerHooks*, unsigned int, unsigned int, ndk_translation::IR*)+1142)
    #10 pc 0009be1f  /system/lib/libndk_translation.so (ndk_translation::GenerateIR(ndk_translation::CompilerHooks*, unsigned int, ndk_translation::IR*, unsigned int*)+47)
    #11 pc 0009bbdf  /system/lib/libndk_translation.so (ndk_translation::Compile(ndk_translation::CompilerHooks*, unsigned int, ndk_translation::GuestCodeEntry*, unsigned int*, ndk_translation::MachineCode*)+143)
    #12 pc 0007a0da  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::Translate(ndk_translation::TranslationCache*, unsigned int, ndk_translation::GuestCodeEntry*)+378)
    #13 pc 00079f1c  /system/lib/libndk_translation.so (ndk_translation_HandleNotTranslated+300)
    #14 pc 0018db57  /system/lib/libndk_translation.so
@exaby73 exaby73 added the in triage Presently being triaged by the triage team label Jul 8, 2022
@exaby73
Copy link
Member

exaby73 commented Jul 8, 2022

Hello @yasburg. Google Virtual machine seems to be using a x86 emulator. Android Studio has images for those. Could you check on those types of emulators and try to reproduce this crash?

@exaby73 exaby73 added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 8, 2022
@yasburg
Copy link
Author

yasburg commented Jul 8, 2022

Hello, @exaby73 I am using x86 emulator. Actually, it is the same as the device that is in this test (Pixel 2 API 28 x86)

image

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 8, 2022
@exaby73
Copy link
Member

exaby73 commented Jul 8, 2022

Okay thank you. So it's not reproducible locally, but maybe someone from the team would have some insights on this

@exaby73 exaby73 added c: crash Stack traces logged to the console platform-android Android applications specifically engine flutter/engine repository. See also e: labels. a: production Issues experienced in live production apps needs repro info Automated crash report whose cause isn't yet known and removed in triage Presently being triaged by the triage team labels Jul 8, 2022
@juzejunior
Copy link

Same here, only on x86 devices

@signalfrax
Copy link

I have the same issue as well.

@DoHyun-95
Copy link

Same here...

@prgtrdr
Copy link

prgtrdr commented Jul 11, 2022

I have same issue, works fine on dev machine with Pixel 2 emulator, but Play Store is rejecting it.

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'generic/gce_x86_phone/gce_x86:9/PGR1.190916.001/5877764:userdebug/test-keys'
Revision: '0'
ABI: 'x86'
pid: 6954, tid: 7982, name: 1.raster  >>> com.hrsnc.bsds <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'vendor/unbundled_google/libs/ndk_translation/ndk_translation/ir/include/ndk_translation/ir/ir.h:685: CHECK failed: IsAligned(offset, GetFormatSize(format))'
    eax 00000000  ebx 00001b2a  ecx 00001f2e  edx 00000006
    edi 00001b2a  esi c7345b5c
    ebp c7345b28  esp c7345ab8  eip ee702be9
backtrace:
    #00 pc 00000be9  [vdso:ee702000] (__kernel_vsyscall+9)
    #01 pc 0001fdf8  /system/lib/libc.so (syscall+40)
    #02 pc 00022e73  /system/lib/libc.so (abort+115)
    #03 pc 00006c84  /system/lib/liblog.so (__android_log_assert+292)
    #04 pc 0009f2b4  /system/lib/libndk_translation.so (ndk_translation::GetInsn::GetInsn(ndk_translation::IR*, ndk_translation::Format, unsigned int)+276)
    #05 pc 0009f100  /system/lib/libndk_translation.so (ndk_translation::IRBuilder::Get(ndk_translation::Format, unsigned int)+144)
    #06 pc 0009dd2e  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::InsnBuilder::Get(ndk_translation::Format, unsigned int)+46)
    #07 pc 000d0b4b  /system/lib/libndk_translation.so (ndk_translation::SemanticsDecoder::VTBL(ndk_translation::VTBL_Args const&)+363)
    #08 pc 00100568  /system/lib/libndk_translation.so (ndk_translation::ArmDecoder::TranslateThumbInsn(unsigned short const*)+86104)
    #09 pc 0009c2b6  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::GenerateIRHelper(ndk_translation::CompilerHooks*, unsigned int, unsigned int, ndk_translation::IR*)+1142)
    #10 pc 0009be1f  /system/lib/libndk_translation.so (ndk_translation::GenerateIR(ndk_translation::CompilerHooks*, unsigned int, ndk_translation::IR*, unsigned int*)+47)
    #11 pc 0009bbdf  /system/lib/libndk_translation.so (ndk_translation::Compile(ndk_translation::CompilerHooks*, unsigned int, ndk_translation::GuestCodeEntry*, unsigned int*, ndk_translation::MachineCode*)+143)
    #12 pc 0007a0da  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::Translate(ndk_translation::TranslationCache*, unsigned int, ndk_translation::GuestCodeEntry*)+378)
    #13 pc 00079f1c  /system/lib/libndk_translation.so (ndk_translation_HandleNotTranslated+300)
    #14 pc 0018db57  /system/lib/libndk_translation.so

@excess4
Copy link

excess4 commented Jul 11, 2022

have the same issue, please help

@tooooofu24
Copy link

same issue

@chinmaygarde
Copy link
Member

Duplicate of #37396. The workaround is to use x86 builds on virtual devices.

@prgtrdr
Copy link

prgtrdr commented Jul 11, 2022

@chinmaygarde Not sure I understand your comment. The problem is that apps with min API < 29 don't pass the Play Store review process, and of course, we don't have control over which virtual devices they use.

@yasburg
Copy link
Author

yasburg commented Jul 11, 2022

I tried the solution from #37396 . It didn't work.

targetSdkVersion 31
...
ndk {
  abiFilters 'armeabi-v7a', 'arm64-v8a'
}

$ flutter build appbundle --release --target-platform android-arm,android-arm64

@exaby73
Copy link
Member

exaby73 commented Jul 12, 2022

There's a more recent issue (#105903) that describes this exact problem

@exaby73 exaby73 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2022
@exaby73 exaby73 added the r: duplicate Issue is closed as a duplicate of an existing issue label Jul 12, 2022
@NdegwaJulius
Copy link

This might be a flutter version issue and you can Try deploying with flutter 3.1.0 and dart version 2.18.0 although it's a beta version where I think the problem might be solved.

@fosella11
Copy link

Yep, 3.1.0 and dart version 2.18.0 resolve the problem.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: production Issues experienced in live production apps c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. needs repro info Automated crash report whose cause isn't yet known platform-android Android applications specifically r: duplicate Issue is closed as a duplicate of an existing issue
Projects
None yet
Development

No branches or pull requests