this Example Project GitHub src : .com/sangpan/UENativeiOSCrashReport
replay crash video : - YouTube
using Engine 4.11, 4.12 …
testdevice : iphone 5s 9.3.2
Just Simple Code. Create UIViewController. and Add UIWebView to that UIViewController.
MyWebViewController * myVC1;
myVC1 = [[MyWebViewController alloc] init];
dispatch_async(dispatch_get_main_queue(), ^{
//use presentViewController
///....
[myVC1.view addSubview:_webView];
///....
});
then run with some website like www.google.com… input something with iOS virtual Keyboard, click link, click link, drag webpage etc …
And suddenly crash occured from engine source ( [AutoreleasePool release]; ).
I don’t use any memory free, drain, dealloc code.
Can’t find exactly crash condition. (Engine’s Memory management Issue??)
I try to use [[IOSAppDelegate GetDelegate] ToggleSuspend:true]; for avoiding this crash problem.
But it cause some side effect. (sometime Suspend absorb Home Button event).
I want to native iOS UIViewController+UIWebView.
Add Test Codnition (Update Git Source Code.)
- Create UIViewController (MyInputViewController)
- Add subview UITextField to UIViewController.
- Run. show and hide Virtual keyboard
- crash will occured.
If using new UIViewcontroller with presentViewController:animated:completion: ,
I think that UE can’t manage UIKit (like virtual keyboard memory management?.. uipickerview …?).