Rain icon indicating copy to clipboard operation
Rain copied to clipboard

App crashes after being closed for a long time

Open brianmakesthings opened this issue 1 year ago • 2 comments

Describe the bug

When I open the app (usually the first time in a few days) it crashes and then works fine when I open it again.

To Reproduce

  1. Place widget on home screen
  2. Force stop app
  3. Open app

Expected behavior App does not crash

Screenshots

Can provide upon request

Smartphone (please complete the following information):

  • Device: Pixel 7a
  • OS: Android 15
  • Browser Firefox is default
  • Version 1.3.6

Additional context

I think this is the relevant line from the logcat

java.lang.RuntimeException: Unable to start receiver com.yoshi.rain.OreoWidget: java.lang.IllegalArgumentException: pendingIntentBackgroundActivityStartMode must not be set when creating a PendingIntent

logcat surround context
04-27 22:31:50.787 24631 24631 W com.yoshi.rain: type=1400 audit(0.0:59723): avc:  denied  { read } for  name="max_map_count" dev="proc" ino=14643220 scontext=u:r:untrusted_app:s0:c203,c257,c512,c768 tcontext=u:object_r:proc_max_map_count:s0 tclass=file permissive=0 app=com.yoshi.rain
04-27 22:31:50.821 32478 23683 E DetectedApp: detected app :- com.yoshi.rain
04-27 22:31:51.041  1738  5398 D CoreBackPreview: Window{81ede58 u0 com.yoshi.rain/com.yoshi.rain.MainActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@1e31fe9, mPriority=-1, mIsAnimationCallback=false, mOverrideBehavior=0}
04-27 22:31:51.083  1738  5398 E ActivityManager: Resetting option setPendingIntentBackgroundActivityStartMode(1) to SYSTEM_DEFINED from the options provided by the pending intent creator (com.yoshi.rain) because this option is meant for the pending intent sender
04-27 22:31:51.084 24631 24631 E AndroidRuntime: Process: com.yoshi.rain, PID: 24631
04-27 22:31:51.084 24631 24631 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver com.yoshi.rain.OreoWidget: java.lang.IllegalArgumentException: pendingIntentBackgroundActivityStartMode must not be set when creating a PendingIntent
04-27 22:31:51.084 24631 24631 E AndroidRuntime:        at com.yoshi.rain.OreoWidget$a.k(SourceFile:114)
04-27 22:31:51.084 24631 24631 E AndroidRuntime:        at com.yoshi.rain.OreoWidget.a(SourceFile:2)
04-27 22:31:51.086  1738  5398 W ActivityTaskManager:   Force finishing activity com.yoshi.rain/.MainActivity
04-27 22:31:51.089  1738  1780 I ActivityManager: Showing crash dialog for package com.yoshi.rain u0
04-27 22:31:51.126  1738  1780 D CoreBackPreview: Window{35ed08a u0 Application Error: com.yoshi.rain}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper@442bd30, mPriority=0, mIsAnimationCallback=false, mOverrideBehavior=0}
04-27 22:31:51.219 32478 23231 E DetectedApp: detected app :- com.yoshi.rain
04-27 22:31:51.586  1738  1782 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{158708428 u0 com.yoshi.rain/.MainActivity t26962 f}}
04-27 22:31:51.587  1738  1782 W ActivityTaskManager: Activity pause timeout for ActivityRecord{158708428 u0 com.yoshi.rain/.MainActivity t26962 f}}
04-27 22:31:51.598  1738  1779 V WindowManager:         {WCT{RemoteToken{d11077b Task{95f7915 #26962 type=standard A=10459:com.yoshi.rain}}} m=CLOSE f=NONE leash=Surface(name=Task=26962)/@0x8de845f sb=Rect(0, 0 - 1080, 2400) eb=Rect(0, 0 - 1080, 2400) epz=Point(1080, 2400) d=0 taskParent=-1},
04-27 22:31:54.176  1738  1780 D CoreBackPreview: Window{35ed08a u0 Application Error: com.yoshi.rain}: Setting back callback null
04-27 22:31:54.176  1738  5398 I ActivityManager: Killing 24631:com.yoshi.rain/u0a459 (adj 0): crash
04-27 22:31:54.301  1738  5398 V ActivityManager: Got obituary of 24631:com.yoshi.rain

brianmakesthings avatar Apr 28 '25 05:04 brianmakesthings

Not a mobile dev but threw the logcat into chatgpt and it seems that it's the widget that's causing the issue

(as always take it with a grain of salt, I trust you know more than the AI)

https://chatgpt.com/share/680f14ff-be30-8000-a37c-0e42bfc0e014

Deleting the home screen widget seems to make the app opening more stable

brianmakesthings avatar Apr 28 '25 05:04 brianmakesthings

same there

praisesunsei avatar May 24 '25 07:05 praisesunsei