Open FrostKiwi opened 1 year ago
Same issue, started as immediately after the Android 14 update on a Pixel 5 and on a Pixel 6. Crashes almost every single time on swipe up/left/right, to a blank wallpaper, and recovers only upon swiping to "Home" again, after which swipe up/left/right works only once before crashing again.
Happy to help, please let us know how we can help debug, if we should try older versions, etc.
Able to reproduce it now with 100% success rate! Take a look at the video. It happens when you switch apps "too fast". By that I mean, return to the home screen and click another app in the fav bar.
Steps in the video:
https://github.com/Neamar/KISS/assets/60887273/7b39a752-2af6-4d5c-9d9b-2578caea4b42
Only reason I could think of is the minimize animation of android not being finished when the new app is called and this being somehow involved, but that's just an uneducated guess. Animation doesn't seem different from Android 13 though...
Not sure if this helps at all, but I'm having the same issue with my new Pixel 8 Pro, stock (Android 14).
Can anybody provide some logs from when this happens, including stacktrace of crash? Using adb, scoop, LogFox or something similar?
Yes, here it is. LogCat
from the moment, that I start performing the following actions: Open up Firefox, then open LINE, slowly. No crash. Then open one after the other fast. Kiss becomes invisible or something. Relaunch KISS by swiping from below. Again same deal. Slowly, then fast, then crash. Essentially the same actions performed as seen in https://github.com/Neamar/KISS/issues/2188#issuecomment-1773697017
Same issue, pixel 5 grapheneos
Yes, here it is.
LogCat
from the moment, that I start performing the following actions: Open up Firefox, then open LINE, slowly. No crash. Then open one after the other fast. Kiss becomes invisible or something. Relaunch KISS by swiping from below. Again same deal. Slowly, then fast, then crash. Essentially the same actions performed as seen in #2188 (comment)
Thx! Still no clue what is going on here, logcat contains nothing that points to crash of kiss itself.
Anybody else has log data to analyze?
There must be something in common throughout problems on android 14.
Yes, here it is.
LogCat
from the moment, that I start performing the following actions: Open up Firefox, then open LINE, slowly. No crash. Then open one after the other fast. Kiss becomes invisible or something. Relaunch KISS by swiping from below. Again same deal. Slowly, then fast, then crash. Essentially the same actions performed as seen in #2188 (comment) logcat.txtThx! Still no clue what is going on here, logcat contains nothing that points to crash of kiss itself.
Anybody else has log data to analyze?
There must be something in common throughout problems on android 14.
@marunjar I have the same problem, this is due to a change in the Android animations introduced in Android 14. If you disable the "Animator during scale" in the developer options and quickly switch between home/launching apps, everything is working fine. I think that this crash/error only happens when using navigation gestures instead of the buttons.
Here's a link to the new feature and what I think needs to be fixed, according to this thread on stackoverflow:
https://developer.android.com/about/versions/14/features/predictive-back#custom-activity
Add custom activity transitions on Android 14 and higher To ensure that custom Activity transitions support predictive back on Android 14 and higher, you can use overrideActivityTransition instead of overridePendingTransition. This means that the transition animation plays as the user swipes back.
To provide an example of how this might work, imagine a scenario in which Activity B is on top of Activity A in the back stack. You would handle custom Activity animations in the following way:
Call either opening or closing transitions within Activity B's onCreate method. When the user navigates to Activity B, use OVERRIDE_TRANSITION_OPEN. When the user swipes to navigate back to Activity A, use OVERRIDE_TRANSITION_CLOSE. When specifying OVERRIDE_TRANSITION_CLOSE, the enterAnim is Activity A's enter animation and the exitAnim is Activity B's exit animation.
Here's the logcat error I keep getting when launching an app too quickly and the screen goes "blank":
Error setVisibility=true while transition is not collecting or finishing ActivityRecord{3714ea7 u0 fr.neamar.kiss.debug/fr.neamar.kiss.MainActivity t3088} caller=com.android.server.wm.ActivityRecord.setVisibility:5287 com.android.server.wm.ActivityRecord.makeVisibleIfNeeded:6042 com.android.server.wm.EnsureActivitiesVisibleHelper.setActivityVisibilityState:214 com.android.server.wm.EnsureActivitiesVisibleHelper.process:144 com.android.server.wm.TaskFragment.updateActivityVisibilities:1157 com.android.server.wm.Task.lambda$ensureActivitiesVisible$20:4878 com.android.server.wm.Task.$r8$lambda$glAS06h6u0gde7lZWW7SuxTbP1w:0 com.android.server.wm.Task$$ExternalSyntheticLambda16.accept:0
@marunjar I have the same problem, this is due to a change in the Android animations introduced in Android 14.
So my minimize animation
guess wasn't half bad.
Really great to have someone with android insight provide sources, many thx <3
@marunjar I have the same problem, this is due to a change in the Android animations introduced in Android 14.
So my
minimize animation
guess wasn't half bad. Really great to have someone with android insight provide sources, many thx <3
I played a bit in Android Studio following a discussion with Matthieu B. on Telegram, but I haven't coded in ages and never coded for Android, so I don't really know how to fix the issue.
@marunjar Hi, is there a fix planned for this bug?
Thank you π
Using KISS on at least 2 A14 devices w/o issues, there's a log of this crash?
Using KISS on at least 2 A14 devices w/o issues, there's a log of this crash?
Are you using navigation gestures? If you use the navigation buttons, there's no crash.
Setting the animation scales to .5x seems to bypass the issue since the animation is faster, but the crashes are still there at 1x (I just tested). The logcat was provided in a previous comment.
Using gestures since Android9 lol
0.5x, 1.0x, no issues.
Well, it's still happening here, using a Google Pixel 6A with Kiss 3.21.1, under Android 14.
This is an older video I recorded for Matthieu B, but it's the exact same problem happening (which is the same as the video in the previous post).
https://github.com/Neamar/KISS/assets/9488095/c0e5d551-f5a6-44d2-9473-59c9c157dd29
@marunjar Hi, is there a fix planned for this bug?
Thank you π
I think someone else needs to fix this. i have no device with android 14 where i can debug and on emulated devices i can't reproduce
I ran into this issue a few months ago. I'm on Nothing phone 1, android 14, animation scale .5x, navigation gestures.
During my search for more information I ran into this report on googles issue tracker that wasn't discussed here: Using a custom launcher, apps won't launch properly if the app icon was tapped immediately after returning to the home screen It seems that it hasn't been resolved for a number of months.
I tried to use Olauncher, but I was still experiencing the same bug.
Stock Nothing launcher seems to work.
I tried to find some solution, but it was beyond my abilities as I am not an android developer. Just wanted to add some of my findings that might be related to this issue.
I mentioned in a previous comment that the fix was related with the Activity transition. Ithink it's an easy fix, the way to call/open an app just needs to be updated with the changes.
I only recently discovered KISS, love a lot about it β but this bug is a dealbreaker. I tried different settings now: Gestures + disable animations, 3 button menu, but KISS still frequently crashes as described here in the thread. Is KISS still being maintained or is there a fork that fixes this?
It has recently gotten really bad for me, not sure what changed. Switching Apps now very regularly causes this crash behavior and sometimes the app list does not appear. Not sure if this is still part of the same bug π€
@dreamflasher Just for reference, could you name your phone and Android Version?
I observe:
my device: Fxtec Pro1, Android 14, LOS 21-20240615-NIGHTLY-pro1
Potentially solved by @colonelgeil and his test build in https://github.com/Neamar/KISS/issues/2308 , though a Pull Request does not exist yet.
Years long and huge fan of KISS <3 Describe the crash With the update to Android 14 on my Google Pixel 6 Pro, KISS seems to frequently crashes when returning to the home screen. I specifically disabled Battery optimization in the hopes, that this was involved, but no, didn't affect anything. ~I can't pin the exact circumstance as to when it happens,~ but it just happens sometimes. Roughly 15 times a day.
The crash looks like this: Upon returning to the home screen, the whole screen goes blank, just the wallpaper seen and KISS re-initializes. The Clock Widget appears half a second later, followed by all the icons a second later.
To Reproduce ~Can't pin down a specific cause yet.~
Able to reproduce 100% consistently now, see comment https://github.com/Neamar/KISS/issues/2188#issuecomment-1773697017 below.
Stack trace See https://github.com/Neamar/KISS/issues/2188#issuecomment-1791776081
Additional information
3.20.1