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

根据demo例子,通过present方式打开Flutter page,第二次进入的时候崩溃 #442

Closed
yangpansky opened this issue Oct 29, 2019 · 13 comments
Labels
iOS iOS Only more-information-needed Please provide more information so we can reproduce the issue

Comments

@yangpansky
Copy link

yangpansky commented Oct 29, 2019

0011

0022

在我新建的demo工程中运行官方例子,当第二次进入Present Flutter Page时,程序crash
feature/flutter_1.9_upgrade xcode11.1 iOS13.1

@OHeroJ
Copy link

OHeroJ commented Oct 30, 2019

+1

1 similar comment
@kelvinluo1112
Copy link

+1

@czzj0212
Copy link

+10086

@xujim
Copy link
Collaborator

xujim commented Dec 2, 2019

@yangpansky 麻烦将你的demo工程发上来

@Dolphii
Copy link

Dolphii commented Dec 2, 2019

@yangpansky 请问解决了吗?

@Dolphii
Copy link

Dolphii commented Dec 2, 2019

@xujim demo也有问题。 github下载工程AS,打开example文件夹在.yaml文件,点击Packages get之后运行在iOS13.1的模拟器上,来回点击Flutter Push Page两次就闪退,打印[XDEBUG]---surface changed--reset-
Lost connection to device.
版本:
flutter_boost:
git:
url: 'https://github.com/alibaba/flutter_boost.git'
ref: '0.1.61'

@prczhb prczhb added the iOS iOS Only label Dec 5, 2019
@nahajub
Copy link

nahajub commented Dec 10, 2019

+1
Flutter 1.9.1+hotfix.6
flutter_boost 0.1.61
demo奔溃

@Dolphii
Copy link

Dolphii commented Dec 11, 2019

+1
Flutter 1.9.1+hotfix.6
flutter_boost 0.1.61
demo奔溃
官方demo其实有时候也会crash 用真机 应该是engine对模拟器有点问题

@xujim
Copy link
Collaborator

xujim commented Dec 18, 2019

@xujim demo也有问题。 github下载工程AS,打开example文件夹在.yaml文件,点击Packages get之后运行在iOS13.1的模拟器上,来回点击Flutter Push Page两次就闪退,打印[XDEBUG]---surface changed--reset-
Lost connection to device.
版本:
flutter_boost:
git:
url: 'https://github.com/alibaba/flutter_boost.git'
ref: '0.1.61'

在我这边无法复现

@xujim
Copy link
Collaborator

xujim commented Dec 18, 2019

诸位,如果奔溃,请提供堆栈日志

@xujim
Copy link
Collaborator

xujim commented Dec 18, 2019

有时候你的flutter环境有问题会导致崩溃

@xujim xujim added the more-information-needed Please provide more information so we can reproduce the issue label Dec 18, 2019
@SeasonSheng
Copy link

开发环境:
[✓] Flutter (Channel beta, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G87, locale zh-Hans-CN)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[!] Android Studio (not installed)
[✓] VS Code (version 1.41.1)
[✓] Connected device (2 available)

使用master分支的Demo,模拟器第二次进入Present Flutter Page,可复现Crash。

控制台输出:
2019-12-20 17:35:52.574076+0800 Runner[51486:2631916] [XDEBUG]---surface changed--reset-

堆栈:
Thread 1 Queue : com.apple.main-thread (serial)
#0 0x000000010443164b in objc_msgSend ()
#1 0x0000000101deb7ba in flutter::AccessibilityBridge::~AccessibilityBridge() ()
#2 0x0000000101df2a25 in std::__1::unique_ptr<flutter::AccessibilityBridge, std::__1::default_deleteflutter::AccessibilityBridge >::reset(flutter::AccessibilityBridge*) ()
#3 0x0000000101df2822 in flutter::PlatformViewIOS::SetOwnerViewController(fml::WeakPtr) ()
#4 0x0000000101dd3add in -[FlutterEngine setViewController:] ()
#5 0x0000000101de41d6 in -[FlutterViewController initWithEngine:nibName:bundle:] ()
#6 0x0000000101a23c7a in -[FLBFlutterViewContainer init] at /Users/shengxichen/Desktop/Git/flutter_boost/ios/Classes/container/FLBFlutterViewContainer.m:51
#7 0x0000000101a1b679 in -[PlatformRouterImp present:urlParams:exts:completion:] at /Users/shengxichen/Desktop/Git/flutter_boost/example/ios/Runner/PlatformRouterImp.m:36
#8 0x0000000101a21eed in -[FLBFlutterApplication open:urlParams:exts:onPageFinished:completion:] at /Users/shengxichen/Desktop/Git/flutter_boost/ios/Classes/Engine/FLBFlutterApplication.m:181
#9 0x0000000101a26f1f in +[FlutterBoostPlugin open:urlParams:exts:onPageFinished:completion:] at /Users/shengxichen/Desktop/Git/flutter_boost/ios/Classes/Boost/FlutterBoostPlugin.m:166
#10 0x0000000101a1ce12 in -[UIViewControllerDemo present:] at /Users/shengxichen/Desktop/Git/flutter_boost/example/ios/Runner/UIViewControllerDemo.m:34
#11 0x000000010dd8f624 in -[UIApplication sendAction:to:from:forEvent:] ()
#12 0x000000010d7e48d5 in -[UIControl sendAction:to:forEvent:] ()
#13 0x000000010d7e4bf2 in -[UIControl _sendActionsForEvents:withEvent:] ()
#14 0x000000010d7e3ba8 in -[UIControl touchesEnded:withEvent:] ()
#15 0x000000010ddc84e6 in -[UIWindow _sendTouchesForEvent:] ()
#16 0x000000010ddc9bca in -[UIWindow sendEvent:] ()
#17 0x000000010dda830e in -[UIApplication sendEvent:] ()
#18 0x000000010de782b3 in __dispatchPreprocessedEventFromEventQueue ()
#19 0x000000010de7abd9 in __handleEventQueueInternal ()
#20 0x0000000104de0db1 in CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION ()
#21 0x0000000104de0633 in __CFRunLoopDoSources0 ()
#22 0x0000000104ddacef in __CFRunLoopRun ()
#23 0x0000000104dda4d2 in CFRunLoopRunSpecific ()
#24 0x0000000108b632fe in GSEventRunModal ()
#25 0x000000010dd8dfc2 in UIApplicationMain ()
#26 0x0000000101a1c8f0 in main at /Users/shengxichen/Desktop/Git/flutter_boost/example/ios/Runner/main.m:7
#27 0x000000010543a541 in start ()

FLBFlutterViewContainer类,第59行。Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

@xujim
Copy link
Collaborator

xujim commented Dec 25, 2019

这是flutter自身的一个voice over bug引起的。具体解法参考:flutter/engine#14155

@xujim xujim closed this as completed Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS iOS Only more-information-needed Please provide more information so we can reproduce the issue
Projects
None yet
Development

No branches or pull requests

9 participants