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

ANR in HistoryWidgetProvider #962

Closed
2 tasks done
iSoron opened this issue Jun 5, 2021 · 0 comments
Closed
2 tasks done

ANR in HistoryWidgetProvider #962

iSoron opened this issue Jun 5, 2021 · 0 comments
Labels
bug Something is not behaving as the developers expected cant-reproduce The developers cannot replicate the issue on their own devices high-severity
Milestone

Comments

@iSoron
Copy link
Owner

iSoron commented Jun 5, 2021

Pre-submission checklist

  • I am submitting a bug report, not a feature request.
  • I have searched for similar issues, but did not find any matches.

Description

From Google Play Console:

  #00  pc 000000000004b60c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #00  pc 00000000001b092c  /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
  #00  pc 00000000003ca444  /apex/com.android.art/lib64/libart.so (art::JNI<false>::SetIntField(_JNIEnv*, _jobject*, _jfieldID*, int)+504)
  #00  pc 0000000000344144  /system/lib64/libhwui.so (GraphicsJNI::irect_to_jrect(SkIRect const&, _JNIEnv*, _jobject*)+60)
  #00  pc 000000000034c7a8  /system/lib64/libhwui.so (android::PaintGlue::doTextBounds(_JNIEnv*, unsigned short const*, int, _jobject*, android::Paint const&, android::Typeface const*, int)+212)
  #00  pc 0000000000349f68  /system/lib64/libhwui.so (android::PaintGlue::getStringBounds(_JNIEnv*, _jobject*, long, _jstring*, int, int, int, _jobject*)+112)
  at android.graphics.Paint.nGetStringBounds (Native method)
  at android.graphics.Paint.getTextBounds (Paint.java:2903)
  at org.isoron.platform.gui.AndroidCanvas.drawText (AndroidCanvas.kt:67)
  at org.isoron.uhabits.core.ui.views.HistoryChart.drawSquare (HistoryChart.kt:236)
  at org.isoron.uhabits.core.ui.views.HistoryChart.drawColumn (HistoryChart.kt:141)
  at org.isoron.uhabits.core.ui.views.HistoryChart.draw (HistoryChart.kt:114)
  at org.isoron.platform.gui.AndroidView.onDraw (AndroidView.kt:39)
  at android.view.View.draw (View.java:23901)
  at android.view.View.draw (View.java:23773)
  at android.view.ViewGroup.drawChild (ViewGroup.java:5336)
  at android.view.ViewGroup.dispatchDraw (ViewGroup.java:5093)
  at android.view.View.draw (View.java:23771)
  at android.view.ViewGroup.drawChild (ViewGroup.java:5336)
  at android.view.ViewGroup.dispatchDraw (ViewGroup.java:5093)
  at android.view.View.draw (View.java:23904)
  at android.view.View.draw (View.java:23773)
  at android.view.ViewGroup.drawChild (ViewGroup.java:5336)
  at android.view.ViewGroup.dispatchDraw (ViewGroup.java:5093)
  at android.view.View.draw (View.java:23904)
  at org.isoron.uhabits.widgets.BaseWidget.getBitmapFromView (BaseWidget.kt:110)
  at org.isoron.uhabits.widgets.BaseWidget.buildRemoteViews (BaseWidget.kt:86)
  at org.isoron.uhabits.widgets.BaseWidget.getRemoteViews (BaseWidget.kt:120)
  at org.isoron.uhabits.widgets.BaseWidget.getLandscapeRemoteViews (BaseWidget.kt:48)
  at org.isoron.uhabits.widgets.BaseWidgetProvider$Companion.updateAppWidget (BaseWidgetProvider.kt:171)
  at org.isoron.uhabits.widgets.BaseWidgetProvider.onAppWidgetOptionsChanged (BaseWidgetProvider.kt:77)
  at android.appwidget.AppWidgetProvider.onReceive (AppWidgetProvider.java:81)
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:4443)
  at android.app.ActivityThread.access$1600 (ActivityThread.java:301)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2159)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:246)
  at android.app.ActivityThread.main (ActivityThread.java:8512)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)

Steps to reproduce

Unknown

System information

  • Phone: Multiple Samsung phones (Z Fold2, S20+, S21)
  • Phone Operating System: Android 11
  • App version: 2.0.2
@iSoron iSoron added bug Something is not behaving as the developers expected cant-reproduce The developers cannot replicate the issue on their own devices high-severity labels Jun 5, 2021
@iSoron iSoron added this to the Loop 2.0.3 milestone Jun 5, 2021
iSoron added a commit that referenced this issue Jun 5, 2021
This operation seems to be very expensive on some Samsung phones,
which causes ANRs.

Fixes #962
@iSoron iSoron closed this as completed Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not behaving as the developers expected cant-reproduce The developers cannot replicate the issue on their own devices high-severity
Projects
None yet
Development

No branches or pull requests

1 participant