[Crash] Using Native iOS UIViewController+UIWebView

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.)

  1. Create UIViewController (MyInputViewController)
  2. Add subview UITextField to UIViewController.
  3. Run. show and hide Virtual keyboard
  4. 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 …?).

Hello sangpan,

Thank you for your report. I’m looking into this now and currently packaging to launch to a device to test. I’ll get back to you as soon as I have results, just wanted to update you since it’s been a few days since you entered this.

I’ve reproduced the issue that you mentioned and entered a bug report for the issue under the number UE-32603. Unfortunately I can’t think of any kind of work around for the issue at the moment but I’ll be sure to update you when any changes are made to the bug or if we need further information.

Thank you again for the report and have a nice day!

This problem (virtual keyboard…) was resolved since 4.14. Is that right??

According to the bug report, this issue has not be fixed as of yet. You can track the bug report at this link: UE-32603