dotnet/android

[Android] native crash by lib64/libhwui.so

filyXplor opened this issue · 3 comments

Description

Google Play Console is showing abort crashes, the stack trace is the following:

**backtrace: 
#00 pc 0x00000000004a98a0 /system/lib64/libhwui.so (android::getRootAlpha(_JNIEnv*, _jobject*, long) (.__uniq.25916780740310767939597790641704475677)+4) dotnet/maui
#1 pc 0x0000000000215a18 /system/framework/arm64/boot-framework.oat (art_jni_trampoline+88) dotnet/maui
#2 pc 0x0000000000413920 /system/framework/arm64/boot-framework.oat (android.graphics.drawable.VectorDrawable$VectorDrawableState.getAlpha+48) dotnet/maui
#3 pc 0x0000000000416508 /system/framework/arm64/boot-framework.oat (android.graphics.drawable.VectorDrawable.getAlpha+56) dotnet/maui
#4 pc 0x0000000000416700 /system/framework/arm64/boot-framework.oat (android.graphics.drawable.VectorDrawable.getOpacity+48) dotnet/maui
#5 pc 0x00000000007f79c0 /system/framework/arm64/boot-framework.oat (android.widget.ImageView.isOpaque+112) dotnet/maui
#6 pc 0x000000000074e2b8 /system/framework/arm64/boot-framework.oat (android.view.View.invalidateInternal+376) dotnet/maui
#7 pc 0x000000000074e06c /system/framework/arm64/boot-framework.oat (android.view.View.invalidate+76) dotnet/maui
#8 pc 0x000000000075d66c /system/framework/arm64/boot-framework.oat (android.view.View.setFlags+684) dotnet/maui
#9 pc 0x00000000007f9134 /system/framework/arm64/boot-framework.oat (android.widget.ImageView.setVisibility+52) dotnet/maui
#10 pc 0x00000000001a9a04 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/oat/arm64/base.odex (androidx.appcompat.widget.SearchView.updateCloseButton+196) dotnet/maui
#11 pc 0x00000000005bb730 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) dotnet/maui
#12 pc 0x00000000001d6074 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/oat/arm64/base.vdex (androidx.appcompat.widget.SearchView.onTextChanged+40) dotnet/maui
#13 pc 0x00000000005bb6d4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) dotnet/maui
#14 pc 0x00000000001d4074 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/oat/arm64/base.vdex (androidx.appcompat.widget.SearchView$10.onTextChanged+4) dotnet/maui
#15 pc 0x000000000081f1b0 /system/framework/arm64/boot-framework.oat (android.widget.TextView.sendOnTextChanged+224) dotnet/maui
#16 pc 0x000000000080dee8 /system/framework/arm64/boot-framework.oat (android.widget.TextView.setText+6344) dotnet/maui
#17 pc 0x000000000083c17c /system/framework/arm64/boot-framework.oat (android.widget.EditText.setText+76) dotnet/maui
#18 pc 0x0000000000823534 /system/framework/arm64/boot-framework.oat (android.widget.TextView.setText+52) dotnet/maui
#19 pc 0x00000000005bb730 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) dotnet/maui
#20 pc 0x00000000001d63a8 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/oat/arm64/base.vdex (androidx.appcompat.widget.SearchView.setQuery+4) dotnet/maui
#21 pc 0x000000000033eba4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612) dotnet/maui
#22 pc 0x0000000000494f18 /apex/com.android.art/lib64/libart.so (art::JNI::CallNonvirtualVoidMethodA(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue const*)+476) dotnet/maui
#23 pc 0x000000000002ea08 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/lib/arm64/libaot-Java.Interop.dll.so**

Google Play Console is showing abort crashes, the stack trace is the following:

pid: 0, tid: 14774 >>> com.test.app1 <<<

backtrace: 
#00 pc 0x00000000004a98a0 /system/lib64/libhwui.so (android::getRootAlpha(_JNIEnv*, _jobject*, long) (.__uniq.25916780740310767939597790641704475677)+4) dotnet/maui
#1 pc 0x0000000000215a18 /system/framework/arm64/boot-framework.oat (art_jni_trampoline+88) dotnet/maui
#2 pc 0x0000000000413920 /system/framework/arm64/boot-framework.oat (android.graphics.drawable.VectorDrawable$VectorDrawableState.getAlpha+48) dotnet/maui
#3 pc 0x0000000000416508 /system/framework/arm64/boot-framework.oat (android.graphics.drawable.VectorDrawable.getAlpha+56) dotnet/maui
#4 pc 0x0000000000416700 /system/framework/arm64/boot-framework.oat (android.graphics.drawable.VectorDrawable.getOpacity+48) dotnet/maui
#5 pc 0x00000000007f79c0 /system/framework/arm64/boot-framework.oat (android.widget.ImageView.isOpaque+112) dotnet/maui
#6 pc 0x000000000074e2b8 /system/framework/arm64/boot-framework.oat (android.view.View.invalidateInternal+376) dotnet/maui
#7 pc 0x000000000074e06c /system/framework/arm64/boot-framework.oat (android.view.View.invalidate+76) dotnet/maui
#8 pc 0x000000000075d66c /system/framework/arm64/boot-framework.oat (android.view.View.setFlags+684) dotnet/maui
#9 pc 0x00000000007f9134 /system/framework/arm64/boot-framework.oat (android.widget.ImageView.setVisibility+52) dotnet/maui
#10 pc 0x00000000001a9a04 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/oat/arm64/base.odex (androidx.appcompat.widget.SearchView.updateCloseButton+196) dotnet/maui
#11 pc 0x00000000005bb730 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) dotnet/maui
#12 pc 0x00000000001d6074 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/oat/arm64/base.vdex (androidx.appcompat.widget.SearchView.onTextChanged+40) dotnet/maui
#13 pc 0x00000000005bb6d4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) dotnet/maui
#14 pc 0x00000000001d4074 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/oat/arm64/base.vdex (androidx.appcompat.widget.SearchView$10.onTextChanged+4) dotnet/maui
#15 pc 0x000000000081f1b0 /system/framework/arm64/boot-framework.oat (android.widget.TextView.sendOnTextChanged+224) dotnet/maui
#16 pc 0x000000000080dee8 /system/framework/arm64/boot-framework.oat (android.widget.TextView.setText+6344) dotnet/maui
#17 pc 0x000000000083c17c /system/framework/arm64/boot-framework.oat (android.widget.EditText.setText+76) dotnet/maui
#18 pc 0x0000000000823534 /system/framework/arm64/boot-framework.oat (android.widget.TextView.setText+52) dotnet/maui
#19 pc 0x00000000005bb730 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) dotnet/maui
#20 pc 0x00000000001d63a8 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/oat/arm64/base.vdex (androidx.appcompat.widget.SearchView.setQuery+4) dotnet/maui
#21 pc 0x000000000033eba4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612) dotnet/maui
#22 pc 0x0000000000494f18 /apex/com.android.art/lib64/libart.so (art::JNI::CallNonvirtualVoidMethodA(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue const*)+476) dotnet/maui
#23 pc 0x000000000002ea08 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/lib/arm64/libaot-Java.Interop.dll.so

I need help on how to fix the issue.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.60 SR6

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android

Did you find any workaround?

No response

Relevant log output

No response

Unfortunately, we will need a repro for this, as the only place we appear is in the last frame:

#23 pc 0x000000000002ea08 /data/app/~~-2PSJ0-liqQ7OWMU15pDqg==/com.test.app1-a_1XV0v46a0RxtFA0CisbA==/lib/arm64/libaot-Java.Interop.dll.so**

which in turn probably has another dozen callers below it.

Hi @filyXplor. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Hi @filyXplor. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you.