Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android,iOS页面跳转崩溃 #486

Closed
657415669 opened this issue Nov 18, 2019 · 2 comments
Closed

Android,iOS页面跳转崩溃 #486

657415669 opened this issue Nov 18, 2019 · 2 comments

Comments

@657415669
Copy link

场景根页面是A页面,现在想打开B页面,同时把A页面关闭掉。
代码:点击某个Button触发下面逻辑
BoostContainerSettings settings = BoostContainer.of(context).settings;
FlutterBoost.singleton.close(settings.uniqueId);
FlutterBoost.singleton.open(AppPages.demoPage);
现象:在Android部分机型上崩溃,华为Mate20 Android 9,小米8正常。

2019-11-18 11:28:06.542 5529-5615/com.julanling.recruit W/libEGL: EGLNativeWindowType 0x71dfa3a010 disconnect failed
2019-11-18 11:28:06.546 5529-5529/com.julanling.recruit D/ZrHung.AppEyeUiProbe: stop checker.
2019-11-18 11:28:06.585 5529-5529/com.julanling.recruit E/MethodChannel#flutter_boost: Failed to handle method call
java.lang.IllegalArgumentException: Unsupported value: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String com.idlefish.flutterboost.interfaces.IContainerRecord.uniqueId()' on a null object reference
at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:294)
at io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:70)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:230)
at com.idlefish.flutterboost.FlutterBoostPlugin$BoostMethodHandler.onMethodCall(FlutterBoostPlugin.java:241)
at com.idlefish.flutterboost.FlutterBoostPlugin$1.onMethodCall(FlutterBoostPlugin.java:91)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:222)
at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:96)
at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:656)
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)
2019-11-18 11:28:06.592 5529-5614/com.julanling.recruit I/flutter: 异常: PlatformException(error, Unsupported value: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String com.idlefish.flutterboost.interfaces.IContainerRecord.uniqueId()' on a null object reference, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7)
#1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33)

#2 BoostChannel.invokeMethod (package:flutter_boost/channel/boost_channel.dart:77:27)

#3 FlutterBoost.open (package:flutter_boost/flutter_boost.dart:125:20)
#4 SplashSate.build.. (package:anxin_recruit/ui/splash/splash_sate.dart:33:44)
#5 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
#6 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
#7 TapGestureRecognizer.handlePrimaryPointer (package:flutter/src
2019-11-18 11:28:06.637 5529-5614/com.julanling.recruit I/flutter: FlutterBoost#onShownContainerChanged old:1574047683349-172460568 now:default
2019-11-18 11:28:06.672 5529-5614/com.julanling.recruit I/flutter: FlutterBoost#ContainerObserver#2 didPush
2019-11-18 11:28:06.672 5529-5614/com.julanling.recruit I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:splashPage lifeCycle:ContainerLifeCycle.Appear
2019-11-18 11:28:06.672 5529-5614/com.julanling.recruit I/flutter: FlutterBoost#native containner did show,

@657415669
Copy link
Author

用错Context了,已解决

@jxnc12yangb
Copy link

@657415669 怎么解决的,我也碰到这样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants