crdroidandroid / issue_tracker

all crDroid related issues should go here
12 stars 1 forks source link

bug: App stuck on Splash Screen after first run #485

Closed SerpentDash closed 2 months ago

SerpentDash commented 2 months ago

Issue type

Source code related

Device

Oneplus 7T Pro (hotdog)

crDroid version

crDroid 10

Exact version / Build date

10.6/2024-08-06

Bug description

Bunny (Discord Client app) freezes on Splash screen after first successful launch. After device reboot, app can be launched again, but only once. Link to Bunny github issue

Issue started occurring after CrDroid 10.3 and still occurs on 10.7. Older version 10.2 AND other ROMs, such as Lineage and YAAP, work fine.

Steps to reproduce

Step 1. Download and install Bunny Manager Step 2. Open Bunny Manger and install client Step 3. Open client and wait until login screen show up Step 4. Close client and open again (app won't fully launch and will be stuck on splash screen)

Relevant log (logcat/build log)

08-06 13:52:28.667 1667 3733 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=io.github.pyoncord.app/com.discord.main.MainDefault bnds=[576,733][864,1105]} with LAUNCH_SINGLE_TASK from uid 10442 (BAL_ALLOW_ALLOWLISTED_COMPONENT) result code=0
08-06 13:52:28.667 1667 1753 W ActivityManager: ProcessRecord{28a6c7 0:io.github.pyoncord.app/u0a487} is attached to a previous process 14308
08-06 13:52:28.668 3208 3252 V WindowManagerShell: Transition requested (#250): android.os.BinderProxy@2f323a9 TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=38 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=io.github.pyoncord.app/com.discord.main.MainDefault } baseActivity=ComponentInfo{io.github.pyoncord.app/com.discord.main.MainActivity} topActivity=ComponentInfo{io.github.pyoncord.app/com.discord.main.MainActivity} origActivity=ComponentInfo{io.github.pyoncord.app/com.discord.main.MainDefault} realActivity=ComponentInfo{io.github.pyoncord.app/com.discord.main.MainActivity} numActivities=1 lastActiveTime=4622145 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{android.window.IWindowContainerToken$Stub$Proxy@419dd2e} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=null topActivityInfo=ActivityInfo{ffb60cf com.discord.main.MainDefault} launchCookies=[android.os.BinderProxy@4a17a5c] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isVisibleRequested=false isSleeping=false locusId=null displayAreaFeatureId=1 isTopActivityTransparent=false appCompatTaskInfo=AppCompatTaskInfo { topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false isLetterboxDoubleTapEnabled= false topActivityEligibleForUserAspectRatioButton= false topActivityBoundsLetterboxed= false isFromLetterboxDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=1440 topActivityLetterboxHeight=3120 isUserFullscreenOverrideEnabled=false isSystemFullscreenOverrideEnabled=false cameraCompatControlState=hidden}}, pipTask = null, remoteTransition = RemoteTransition { remoteTransition = android.window.IRemoteTransition$Stub$Proxy@b315165, appThread = android.app.IApplicationThread$Stub$Proxy@3ea9e3a, debugName = QuickstepLaunch }, displayChange = null, flags = 0, debugId = 250 }
08-06 13:52:28.673 1667 1753 W ActivityManager: ProcessRecord{28a6c7 0:io.github.pyoncord.app/u0a487} is attached to a previous process 14308
08-06 13:52:28.674 1667 1753 W ActivityManager: ProcessRecord{28a6c7 0:io.github.pyoncord.app/u0a487} is attached to a previous process 14308
08-06 13:52:28.684 1667 5468 D CoreBackPreview: Window{c4b84eb u0 Splash Screen io.github.pyoncord.app}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@4c4b606, mPriority=0, mIsAnimationCallback=false}
08-06 13:52:28.692 1667 1748 V WindowManager: Sent Transition (#250) createdAt=08-06 13:52:28.657 via request=TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=38 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=io.github.pyoncord.app/com.discord.main.MainDefault } baseActivity=ComponentInfo{io.github.pyoncord.app/com.discord.main.MainActivity} topActivity=ComponentInfo{io.github.pyoncord.app/com.discord.main.MainActivity} origActivity=ComponentInfo{io.github.pyoncord.app/com.discord.main.MainDefault} realActivity=ComponentInfo{io.github.pyoncord.app/com.discord.main.MainActivity} numActivities=1 lastActiveTime=4622145 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{RemoteToken{e783260 Task{80b1d30 #38 type=standard A=10487:io.github.pyoncord.app}}} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=null topActivityInfo=ActivityInfo{4553a73 com.discord.main.MainDefault} launchCookies=[android.os.BinderProxy@ec6e319] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isVisibleRequested=false isSleeping=false locusId=null displayAreaFeatureId=1 isTopActivityTransparent=false appCompatTaskInfo=AppCompatTaskInfo { topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false isLetterboxDoubleTapEnabled= false topActivityEligibleForUserAspectRatioButton= false topActivityBoundsLetterboxed= false isFromLetterboxDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=1440 topActivityLetterboxHeight=3120 isUserFullscreenOverrideEnabled=false isSystemFullscreenOverrideEnabled=false cameraCompatControlState=hidden}}, pipTask = null, remoteTransition = RemoteTransition { remoteTransition = android.window.IRemoteTransition$Stub$Proxy@2367fde, appThread = android.app.IApplicationThread$Stub$Proxy@fde45bf, debugName = QuickstepLaunch }, displayChange = null, flags = 0, debugId = 250 }
08-06 13:52:28.692 1667 1748 V WindowManager: {WCT{RemoteToken{e783260 Task{80b1d30 #38 type=standard A=10487:io.github.pyoncord.app}}} m=OPEN f=NONE leash=Surface(name=Task=38)/@0x5e62c92 sb=Rect(0, 0 - 1440, 3120) eb=Rect(0, 0 - 1440, 3120) d=0},
08-06 13:52:38.677 1667 1778 E ActivityManager: ProcessRecord{28a6c7 0:io.github.pyoncord.app/u0a487} 14308 refused to die while trying to launch ProcessRecord{3b60b65 0:io.github.pyoncord.app/u0a487}, cancelling the process start
08-06 13:53:21.105 1667 2279 D ActivityManager: sync unfroze 16319 io.github.pyoncord.manager for 6
08-06 13:53:46.750 1667 2462 W InputDispatcher: Not sending touch gesture to ff913ad ActivityRecordInputSink io.github.pyoncord.app/com.discord.main.MainActivity because it has config NO_INPUT_CHANNEL

Screenshots or videos

No response

Solution

No response

Additional context

I believe there is something wrong with CrDroid source code itself since this bug occurs only on ROMs that are based on it (official one, Matrixx ROM). As already stated, other ROMs (including stock Lineage OS) are not affected. In the linked issue on Bunny's github, other device also have this issue, so it's not device-related.

Acknowledgements

gwolf2u commented 2 months ago

can not confirm using todays build and built discord (bunny) app

photo_2024-08-23_22-09-04

SerpentDash commented 2 months ago

I just installed new build (26 august) using OTA and issue still occurs. (For testing, I uninstalled client and reinstalled it again using manager)

Could you please double check? Open client, after app fully loads, close it by removing it from Recents and open app again.

In my case, app still only fully loads once, then stays on splash screen.

gwolf2u commented 2 months ago

yup, still loads fine even after reboot of phone also tested on guacamole (that has almost same code base) as wanted to make sure is not issue of platform

gwolf2u commented 2 months ago

So as Shev has no way of testing locally (restrictions to install discord based on private chat), I'll have to close this one