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

SearchableInfo should be on a background thread? #335

Open
TWiStErRob opened this issue Sep 12, 2023 · 0 comments
Open

SearchableInfo should be on a background thread? #335

TWiStErRob opened this issue Sep 12, 2023 · 0 comments
Labels
a:bug something isn't working as expected in:search search entry, search results via:Console http://play.google.com/console/developers/7995455198986011414/app/4974852622245161228/vitals/crashes
Milestone

Comments

@TWiStErRob
Copy link
Owner

TWiStErRob commented Sep 12, 2023

1 occurrence OnePlus OnePlus9Pro (OnePlus 9 Pro 5G) Android 13 (SDK 33) Version: 11303191 (1.1.3#3191)

stacktrace.log

  #00  pc 0x00000000000d0ffc  /apex/com.android.runtime/lib64/bionic/libc.so (__ioctl+12)
  #01  pc 0x0000000000087cb8  /apex/com.android.runtime/lib64/bionic/libc.so (ioctl+160)
  #02  pc 0x000000000005f384  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+284)
  #03  pc 0x00000000000605e0  /system/lib64/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+76)
  #04  pc 0x000000000006031c  /system/lib64/libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+224)
  #05  pc 0x0000000000057ab8  /system/lib64/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+308)
  #06  pc 0x000000000017a224  /system/lib64/libandroid_runtime.so (android_os_BinderProxy_transact(_JNIEnv*, _jobject*, int, _jobject*, _jobject*, int)+400)
  at android.os.BinderProxy.transactNative (Native method)
This Binder call may be taking too long, causing the main thread to wait, and triggering the ANR

  at android.os.BinderProxy.transact (BinderProxy.java:678)
  at android.app.ISearchManager$Stub$Proxy.getSearchableInfo (ISearchManager.java:201)
  at android.app.SearchManager.getSearchableInfo (SearchManager.java:864)
  at net.twisterrob.android.utils.tools.AndroidTools.prepareSearch$7a842574 (AndroidTools.java:600)
Your app's code results in the Binder call above. Code that triggers Binder calls should be moved out of the main thread.

  at net.twisterrob.inventory.android.activity.MainActivity.onCreateOptionsMenu (MainActivity.java:331)
  at android.app.Activity.onCreatePanelMenu (Activity.java:4429)
  at android.support.v4.app.FragmentActivity.onCreatePanelMenu (FragmentActivity.java:358)
  at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu (WindowCallbackWrapper.java:88)
  at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onCreatePanelMenu (AppCompatDelegateImplBase.java:270)
  at android.support.v7.app.AppCompatDelegateImplV7.preparePanel (AppCompatDelegateImplV7.java:1348)
  at android.support.v7.app.AppCompatDelegateImplV7.doInvalidatePanelMenu (AppCompatDelegateImplV7.java:1628)
  at android.support.v7.app.AppCompatDelegateImplV7.access$100 (AppCompatDelegateImplV7.java:92)
  at android.support.v7.app.AppCompatDelegateImplV7.access$400 (AppCompatDelegateImplV7.java:92)
  at android.support.v7.app.AppCompatDelegateImplV7$1.run (AppCompatDelegateImplV7.java:128)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1412)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1420)
  at android.view.Choreographer.doCallbacks (Choreographer.java:1047)
  at android.view.ChoreographerExtImpl.checkScrollOptSceneEnable (ChoreographerExtImpl.java:442)
  at android.view.Choreographer.doFrame (Choreographer.java:918)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1395)
  at android.os.Handler.handleCallback (Handler.java:942)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:240)
  at android.os.Looper.loop (Looper.java:351)
  at android.app.ActivityThread.main (ActivityThread.java:8422)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:584)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1013)

https://play.google.com/console/u/0/developers/7995455198986011414/app/4974852622245161228/vitals/crashes/77d30c2955f43fbfceffef878a6d1e25/details?days=60

@TWiStErRob TWiStErRob added a:bug something isn't working as expected in:search search entry, search results via:Console http://play.google.com/console/developers/7995455198986011414/app/4974852622245161228/vitals/crashes labels Sep 12, 2023
@TWiStErRob TWiStErRob added this to the vNext milestone Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug something isn't working as expected in:search search entry, search results via:Console http://play.google.com/console/developers/7995455198986011414/app/4974852622245161228/vitals/crashes
Projects
None yet
Development

No branches or pull requests

1 participant