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

[Android] native crash by lib64/libhwui.so #9094

Closed
filyXplor opened this issue Jul 4, 2024 · 3 comments
Closed

[Android] native crash by lib64/libhwui.so #9094

filyXplor opened this issue Jul 4, 2024 · 3 comments
Assignees
Labels
Area: App Runtime Issues in `libmonodroid.so`. need-info Issues that need more information from the author.

Comments

@filyXplor
Copy link

filyXplor commented Jul 4, 2024

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

@PureWeen PureWeen transferred this issue from dotnet/maui Jul 9, 2024
@dotnet-policy-service dotnet-policy-service bot added the needs-triage Issues that need to be assigned. label Jul 9, 2024
@dotnet dotnet deleted a comment from github-actions bot Jul 9, 2024
@jpobst jpobst added Area: App Runtime Issues in `libmonodroid.so`. and removed needs-triage Issues that need to be assigned. labels Jul 9, 2024
@jonpryor
Copy link
Member

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.

@jonpryor jonpryor added the need-info Issues that need more information from the author. label Jul 10, 2024
Copy link

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.

Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area: App Runtime Issues in `libmonodroid.so`. need-info Issues that need more information from the author.
Projects
None yet
Development

No branches or pull requests

4 participants