-
Notifications
You must be signed in to change notification settings - Fork 472
[BrowserGestureDetector] Crash in [@ java.lang.IllegalArgumentException: at kotlin.jvm.internal.ArrayIteratorKt.throwParameterIsNullException(ArrayIterator.kt:5)] #8356
Comments
CC @Mugurell |
Thank you Sebastian! Based on
I understand that Android's As a speculative fix I'll
|
Try to resolve a situation in which system's GestureDetector calls us as a callback with null parameters, so triggering an IllegalArgumentException. A possible explanation could be that not all MotionEvents are passed to the GestureDetector, situation which this patch tries to fix.
Try to resolve a situation in which system's GestureDetector calls us as a callback with null parameters, so triggering an IllegalArgumentException. A possible explanation could be that not all MotionEvents are passed to the GestureDetector, situation which this patch tries to fix.
8357: For #8356 - Speculative fix for BrowserGestureDetector IAE r=pocmo a=Mugurell Try to resolve a situation in which system's GestureDetector calls us as a callback with null parameters, so triggering an IllegalArgumentException. A possible explanation could be that not all MotionEvents are passed to the GestureDetector, situation which this patch tries to fix. Co-authored-by: Mugurell <Mugurell@users.noreply.github.com>
…ctor Last ditch effort to prevent against crashes caused by ACTION_DOWN event being null in GestureDetector.SimpleOnGestureListener#onScroll. We can use the fact that the parameters are platform types and so can consider the first parameter (that should be the ACTION_DOWN MotionEvent) being null so that we won't automatically crash in such situations. This will result in the toolbar not being animated as a result of a scroll gesture by the user. More investigations about why the ACTION_DOWN event is null are to be done in android-components/issues/8552.
…ctor Last ditch effort to prevent against crashes caused by ACTION_DOWN event being null in GestureDetector.SimpleOnGestureListener#onScroll. We can use the fact that the parameters are platform types and so can consider the first parameter (that should be the ACTION_DOWN MotionEvent) being null so that we won't automatically crash in such situations. This will result in the toolbar not being animated as a result of a scroll gesture by the user. More investigations about why the ACTION_DOWN event is null are to be done in android-components/issues/8552.
Last ditch effort to prevent against crashes caused by ACTION_DOWN event being null in GestureDetector.SimpleOnGestureListener#onScroll. We can use the fact that the parameters are platform types and so can consider the first parameter (that should be the ACTION_DOWN MotionEvent) being null so that we won't automatically crash in such situations. This will result in the toolbar not being animated as a result of a scroll gesture by the user. More investigations about why the ACTION_DOWN event is null are to be done in android-components/issues/8552.
Closing since this the PR for this was merged in 62.0.0 |
Crash report: https://crash-stats.mozilla.org/report/index/3e85c676-c77c-4ca8-ab56-1504d0200908
Java stack trace:
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: