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

App crash - CTAlertViewController showFromWindow #292

Closed
Praphin opened this issue Sep 25, 2023 · 7 comments
Closed

App crash - CTAlertViewController showFromWindow #292

Praphin opened this issue Sep 25, 2023 · 7 comments
Assignees

Comments

@Praphin
Copy link

Praphin commented Sep 25, 2023

Describe the bug
App is getting crashed with following error
Fatal Exception: NSInternalInconsistencyException
UIViewController is missing its initial trait collection populated during initialization. This is a serious bug, likely caused by accessing properties or methods on the view controller before calling a UIViewController initializer. View controller: <CTAlertViewController: 0x10f813ff0>

Screenshots
Screenshot 2023-09-25 at 10 19 58 PM
Screenshot 2023-09-25 at 10 20 14 PM

Environment (please complete the following information):

  • Xcode version: Xcode 15
  • CleverTap SDK Version: 4.2.2
  • Device: iPhone12, iPhone SE
  • OS: iOS 17
@akashvercetti
Copy link
Collaborator

akashvercetti commented Sep 25, 2023

@Praphin We will investigate this on Xcode 15. Meanwhile could you please update to our latest version v5.2.0 and try this out?
Also, could you please provide the steps to reproduce and integration code if possible? Sounds like an event is fired from the AppDelegate which triggers an alert in-app.

@Praphin
Copy link
Author

Praphin commented Sep 27, 2023

@akashvercetti I can update version and check on the next release. Meanwhile any plans for above PR on Master release ?

@akashvercetti
Copy link
Collaborator

@Praphin we are planning to release a new version this week.

@vkochukov
Copy link

vkochukov commented Oct 3, 2023

@akashvercetti I sorry to write a comment in this issue, but it seems to me that this is the same problem. clevertap-react-native has a similar issue.

Could you please fix it there too?

Environment:
Xcode version: Xcode 15
CleverTap React Native SDK Version: 1.2.0
Device: iPhone 15
OS: iOS 17

@akashvercetti
Copy link
Collaborator

@vkochukov we will release a fix for react native too. We will keep you updated on the release 👍

@kartikthakur2022
Copy link

Please release fix for https://github.com/CleverTap/clevertap-cordova also.
Thanks

@akashvercetti
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants