alibaba / alibaba/flutter_boost
1.17.1版本 华为手机会出现打开页面时crash
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
## Steps to Reproduce
**A small application to reproduce the bug(最小化可复现的demo)**
1. ...
2. ...
3. ...
**Flutter Boost Version**
**Target Platform:**
**Target OS version/browser:**
**Devices:**
## Logs
add your crash log or something else.
Caused by: java.lang.NullPointerException: Attempt to read from field 'int io.flutter.view.AccessibilityBridge$SemanticsNode.platformViewId' on a null object reference
at io.flutter.view.AccessibilityBridge$SemanticsNode.access$1400(AccessibilityBridge.java:1)
at io.flutter.view.AccessibilityBridge.onAccessibilityHoverEvent(AccessibilityBridge.java:3)
at com.idlefish.flutterboost.XFlutterView.onHoverEvent(XFlutterView.java:3)
at android.view.View.dispatchHoverEvent(View.java:12817)
at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:2195)
at android.view.View.dispatchGenericMotionEvent(View.java:12734)
at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2524)
at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:2157)
at android.view.View.dispatchGenericMotionEvent(View.java:12734)
at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2524)
at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:2157)
at android.view.View.dispatchGenericMotionEvent(View.java:12734)
at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2524)
at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:2157)
at android.view.View.dispatchGenericMotionEvent(View.java:12734)
at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2524)
at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:2157)
at android.view.View.dispatchGenericMotionEvent(View.java:12734)
at com.android.internal.policy.DecorView.superDispatchGenericMotionEvent(DecorView.java:573)
at com.android.internal.policy.PhoneWindow.superDispatchGenericMotionEvent(PhoneWindow.java:1939)
at android.app.Activity.dispatchGenericMotionEvent(Activity.java:3630)
at com.android.internal.policy.DecorView.dispatchGenericMotionEvent(DecorView.java:532)
at android.view.View.dispatchPointerEvent(View.java:12875)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5771)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5535)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4983)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5036)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5002)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5157)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5010)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5214)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4983)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5036)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5002)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5010)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4983)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7803)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7768)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7726)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8007)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:202)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:386)
at android.os.Looper.loop(Looper.java:175)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
```
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the crash on a Huawei device with Flutter Boost 1.17.1, then trace the reported path from com.idlefish.flutterboost.XFlutterView.onHoverEvent to io.flutter.view.AccessibilityBridge.onAccessibilityHoverEvent. The issue is done when opening the affected page no longer produces the reported NullPointerException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, dart, flutter, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100