Haptic-Apps / Slide

Slide is an open-source, ad-free Reddit browser for Android.
https://reddit.com/r/slideforreddit
GNU General Public License v3.0
1.78k stars 344 forks source link

Bizarre behavior when transitioning between day/night modes #3093

Open gbakeman opened 5 years ago

gbakeman commented 5 years ago

Slide version: 6.2.2 Android version: 9 (Pie)

In general when using the app, I've noticed some strange behavior when there's a transition between day and night modes. Usually it seems like a new activity opens (and always to /r/popular). If I press the back button, this new activity seems to go away and my old screen comes back, but then the app reloads to /r/popular again.

Then today, a brand-new issue cropped up. I had the app open to a post and had left it running in the background of my phone. Later, in the night-time, I opened the app to have it start "flickering" on a black screen. If I try to open my phone's task manager, the task manager is closed and the flickering resumes. If I go back to my home screen and try opening the app, the same happens. I tried clearing the cache (which was quite large, about ~3.5GB) but that didn't seem to fix anything. I'd like to avoid deleting my data and lose my settings if I can avoid it, am I stuck? I recorded a video of the behavior if that helps. Also willing to provide any logs if available & necessary.

Video capture

taaem commented 4 years ago

I have the same issue as you, I got it the second time just now, the first time I could only fix it by deleting the data. I will try to get a log later today.

taaem commented 4 years ago

So I got a logcat and there is something weird going on, the app starts normally and then the following happens:

03-23 20:26:18.892 10993 10993 V (MainActivity.java:1169): Starting main LOGGEDOUT
03-23 20:26:18.897 10993 10993 V (MainActivity.java:4080): notnull
03-23 20:26:18.948 10993 10993 V (MainActivity.java:1643): user
03-23 20:26:18.949 10993 10993 V (MainActivity.java:1648): Adding click to user
03-23 20:26:18.974 10993 10993 V (MainActivity.java:1289): Installed browsers
03-23 20:26:18.987 10993 10993 V (MainActivity.java:1297): com.android.chrome
03-23 20:26:19.025  4956  5048 D ViewRootImpl@b405dbc[redditslide]: setView = com.android.internal.policy.DecorView@d99ccc1 TM=true MM=false
03-23 20:26:19.025 10993 10993 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@1fb13e9
03-23 20:26:19.029 10993 10993 I MultiWindowDecorSupport: updateCaptionType >> DecorView@c6805a5[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
03-23 20:26:19.029 10993 10993 D MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@c6805a5[]
03-23 20:26:19.045 10993 10993 D ScrollView: initGoToTop
03-23 20:26:19.046  4956  5048 E DecorView: mWindow.mActivityCurrentConfig is null
03-23 20:26:19.054 10993 10993 V (MainActivity.java:4080): notnull
...
03-23 20:26:19.087 10993 10993 V (MainActivity.java:1643): user
03-23 20:26:19.088 10993 10993 V (MainActivity.java:1648): Adding click to user

and so on and so forth. In between the loop there is much code regarding relayouting but I don't think that comes from slide. I hope this helps to debug this issue.

tlofgren commented 4 years ago

I just had this start happening a few days ago. Version 6.3. Samsung Galaxy S10e. Any advice appreciated.

Tensounder54 commented 4 years ago

This is a very odd issue. I've never seen something like this before. Can you access the app's settings through the task manager or does the same issue still occur?

gbakeman commented 4 years ago

This issue does still occur for me (the first one), but I haven't seen the second crashing one in awhile. I've heard that day/night transitions might be related to my phone, a OnePlus 6T.

Edit: I also fixed the crashing issue by restoring an old backup of my data.