Hi there,
Thank you for bringing this issue to our attention.
I saw a couple issues reported to us which are also linked to UIViewControllerHierarchyInconsistency error. However, both of these cases are not related to the IMA SDK. Please note that UIViewControllerHierarchyInconsistency is not an IMA validation but instead an iOS UIKit/OS level (more information here).
Also, in case you are implementing full-screen solutions like juggling around the video views and view controllers. I’m afraid this is currently not explicitly supported by the IMA SDK. This implementation may also throw an error related to UIViewControllerHierarchyInconsistency.
Let me know if you have further questions or clarifications.
Regards,
|
||||||
Reposting the last inquiry link from the forum as it wasn't routed to our support queue.
Cheers,
William Pescherine
IMA SDK Team
Hi Haibo,
Thank you for your reply. How about using the latest SDK version (3.14.1) and see if you will encounter the same issue? Also, could you kindly share the following information so we can investigate on our end?
Kindly share the requested information to our testing alias: imate...@gmail.com
Hi Haibo,
Thank you for your response.
I’m comparing the two crash logs you shared and these seem to be two different types of issue. Could you confirm if the previous one is still an issue, and the latest crash log is the current crash you are having? For the latest crash, what SDK version are you using here? Would it be possible for you to share with us the sample project file so we can check further?
Kindly send the project file privately to our testing alias: imate...@gmail.com
Regards,
|
||||||
Hi TeamLet me bring this up with my team. We will get back to you as soon as possible.
Thanks for your help. we will update the framework 3.14.1 for the next version of App. it will take few days.
adTagUrl :
AssetKey:
complete stack trace :
Fatal Exception: UIViewControllerHierarchyInconsistency
0 CoreFoundation 0x19d46586c __exceptionPreprocess
1 libobjc.A.dylib 0x1b2480c50 objc_exception_throw
2 CoreFoundation 0x19d35e4a4 -[NSCache init]
3 UIKitCore 0x1a0360a5c -[UIView(Internal) _setViewDelegate:]
4 UIKitCore 0x19f6ff27c +[UIViewController setViewController:forView:]
5 UIKitCore 0x19f6f75ec -[UIViewController setView:]
6 UIKitCore 0x19f6f6c7c -[UIViewController loadViewIfRequired]
7 UIKitCore 0x19f6f7334 -[UIViewController view]
8 GoogleInteractiveMediaAds 0x102ffc204 (Missing)
9 UIKitCore 0x19f6f2744 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled]
10 UIKitCore 0x19f6f6f70 -[UIViewController loadViewIfRequired]
11 UIKitCore 0x19f6f7334 -[UIViewController view]
12 GoogleInteractiveMediaAds 0x102ff04d4 (Missing)
13 GoogleInteractiveMediaAds 0x102fe6f00 (Missing)
14 CoreFoundation 0x19d3c29a0 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
15 CoreFoundation 0x19d3c2948 ___CFXRegistrationPost_block_invoke
16 CoreFoundation 0x19d3c1eb0 _CFXRegistrationPost
17 CoreFoundation 0x19d3c1870 _CFXNotificationPost
18 Foundation 0x19e6884bc -[NSNotificationCenter postNotificationName:object:userInfo:]
19 GoogleInteractiveMediaAds 0x103002ab0 (Missing)
20 GoogleInteractiveMediaAds 0x103001eb4 (Missing)
21 GoogleInteractiveMediaAds 0x103001d9c (Missing)
22 GoogleInteractiveMediaAds 0x103001698 (Missing)
23 GoogleInteractiveMediaAds 0x102fdc6c0 (Missing)
24 GoogleInteractiveMediaAds 0x103000e14 (Missing)
25 WebKit 0x1a9c55948 ScriptMessageHandlerDelegate::didPostMessage(WebKit::WebPageProxy&, WebKit::FrameInfoData&&, API::ContentWorld&, WebCore::SerializedScriptValue&)
26 WebKit 0x1a9e602f4 WebKit::WebUserContentControllerProxy::didPostMessage(WTF::ObjectIdentifier<WebKit::WebPageProxyIdentifierType>, WebKit::FrameInfoData&&, unsigned long long, IPC::DataReference const&, WTF::CompletionHandler<void (IPC::DataReference const&, WTF::String const&)>&&)
27 WebKit 0x1aa09b188 WebKit::WebUserContentControllerProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&)
28 WebKit 0x1a9a44a1c IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&)
29 WebKit 0x1a9d795dc WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&)
30 WebKit 0x1a9a27c4c IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)
31 WebKit 0x1a9a27490 IPC::Connection::dispatchIncomingMessages()
32 JavaScriptCore 0x1a77505e0 WTF::RunLoop::performWork()
33 JavaScriptCore 0x1a77512c8 WTF::RunLoop::performWork(void*)
34 CoreFoundation 0x19d3e176c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
35 CoreFoundation 0x19d3e1668 __CFRunLoopDoSource0
36 CoreFoundation 0x19d3e0960 __CFRunLoopDoSources0
37 CoreFoundation 0x19d3daa8c __CFRunLoopRun
38 CoreFoundation 0x19d3da21c CFRunLoopRunSpecific
39 GraphicsServices 0x1b4fa6784 GSEventRunModal
40 UIKitCore 0x19fe1aee8 -[UIApplication _run]
41 UIKitCore 0x19fe2075c UIApplicationMain
42 UnivisionNowSwift_TVE 0x102785de8 main (<compiler-generated>)
43 libdyld.dylib 0x19d09a6b0 start
Thanks,
|
||||||
|
||||||
Hi there,
Thank you for writing back.
Our team have an ongoing investigation regarding this matter but we are kind of stuck as we can't narrow down the situation that leads to this behavior. Have you been able to reproduce this? Could you please share with us the steps to reproduce the issue and your sample project file implementation where this issue is reproducible? This would greatly help us progress in our investigation. You can send it in our testing alias at imate...@gmail.com.
Regards,
|
||||||
Hi there,
Thank you for providing additional information. Let me see if this can shed a light for current investigation. I will share this to our team and we will get back to you once we have our findings.
Regards,
Hi Haibo,
I hope you are doing fine.
Our team circled back on this and wants to know if you are still encountering this issue? There seems to be some adjustments and modifications done that is now reflected on the latest version 3.14.4. Would it be possible for you to update to the latest version and see if this would still occur?
Regards,
Hello Haibo,
Thank you for responding back to us.
Would you be able to share the sample project implementation where we can reproduce the issue? Or if you have replicated it with our sample apps, point us out directly to what sample app you have used and we will check on our end.
Regards,
Hello Haibo,
Thank you for reaching out to us.
I understand if you can't consistently replicate the issue. However, would you be able to share with us the sample project implementation where the issue occurs? We request this as we need something to test and reproduce on our end and see the exact issue to have better understanding what is causing it.
You may send the requested information privately via "Reply To Author" button.
Regards,
Hello Haibo,
Thank you for responding back to us.
The forum thread you shared is already closed as the user on that thread didn't respond and re-confirm the issue. On your case, since the error seems to be resolved in previous version of the SDK (v3.14.4) and there is no reliable steps to replicate the issue you are reporting now nor a sample project implementation we can use to reproduce it and investigate, I'm afraid that we are left with nothing to continue investigating the case. Should you found a way of reproducing the same behavior in one of our sample apps or with your own project, do not hesitate to come back to us with more information.
Regards,
*** Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'A view can only be associated with at most one view controller at a time! View <IMAWKWebView: 0x7fa162f34f10; frame = (0 0; 428 306.333); opaque = NO; autoresize = W+H; layer = <CALayer: 0x600001e19a40>> is associated with <IMAWebUIViewController: 0x7fa1648acb80>. Clear this association before associating this view with <IMAWebUIViewController: 0x7fa162eae320>.'
terminating with uncaught exception of type NSException
CoreSimulator 776.3 - Device: iPhone 12 Pro Max (B2F37766-2E94-4CAD-B958-D76648FE1157) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone 12 Pro Max
Thanks,
Haibo
Hello Haibo,
Thank you for responding back to us.
This seems to be an edge case as there are no other known steps to reproduce this issue in our sample apps or even on your own project implementation, other than how it was describe in this related case (https://groups.google.com/g/ima-sdk/c/gdS51gJv0Q4). Nonetheless, I have relayed this to the rest of our team for further investigation to see if we can find anything that could possibly point out the cause of the issue and resolution if possible. For the meantime, you can share with us anything that comes up on your end that will help resolve the issue, like screen recording of your own testing or any other relevant information. We will update you the soonest we have sufficient information on our end.
Regards,
|
||||||