UIViewControllerHierarchyInconsistency crash

3 views
Skip to first unread message

Mauro Sasso Coletes

unread,
2:36 AM (19 hours ago) 2:36 AM
to Interactive Media Ads SDK
We are experiencing this crash using IMA SDK iOS 3.26.1:
Fatal Exception: UIViewControllerHierarchyInconsistency
child view controller:<IMAAdViewController: 0x142900f00> should have parent view controller:<APP.DetailViewController: 0x132cc3600> but actual parent is:<SWRevealViewController: 0x1240a0a00>

We are setting the parent view controller correctly to IMA as DetailViewController. Still, for some reason, the SDK searches the view hierarchy and changes the parent view controller to BaseNavigationController. When it crashes, it changes to SWRevealViewController.

The crash is inconsistent; I can't reproduce it when running locally with Xcode, and it does not occur every time. There are spikes from time to time that we see on Crashlytics.

This is our view hierarchy:

SWRevealViewController (root)
└── BaseNavigationController
    └── FeedViewController (root of nav stack)
        └── DetailViewController (pushed)




ima_crash.png

IMA SDK

unread,
8:53 AM (12 hours ago) 8:53 AM
to mauro....@gmail.com, ima...@googlegroups.com

Hi,

Thank you for contacting the IMA SDK support team.

To assist you further with this issue, could you please provide the following details:

  • Full stack trace of the crash
     
  • List of affected devices and OS versions as observed in Crashlytics
     
  • Reproduction steps that might help us investigate further
Kindly provide the requested details via Reply privately to author option.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=500Ht00001u5ouTIAQ&entry.80707362=00331840

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.


Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-09-04 12:53:02Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u5ouT:ref" (ADR-00331840)



Reply all
Reply to author
Forward
0 new messages