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

Crashes when initializing popup from background thread #373

Open
aebanoidze opened this issue Sep 1, 2021 · 0 comments
Open

Crashes when initializing popup from background thread #373

aebanoidze opened this issue Sep 1, 2021 · 0 comments

Comments

@aebanoidze
Copy link

aebanoidze commented Sep 1, 2021

  • Xcode version 12.5.1: ℹ

  • PopupDialog version 1.1.1: ℹ

  • Minimum deployment target 13.4: ℹ

  • Language Swift: ℹ

  • Swift - Version 5.0: ℹ

  • Dependency manager CocoaPods: ℹ

  • Version 1.10.1: ℹ

I am trying to present DopupDialog from background thread:

let popup = PopupDialog(title: title, message: message, buttonAlignment: .horizontal, transitionStyle: .zoomIn, tapGestureDismissal: true, panGestureDismissal: true, hideStatusBar: false) {}

I am getting error:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.'

Error happening on the line 57:

Screen Shot 2021-09-01 at 5 58 44 PM

@aebanoidze aebanoidze changed the title crashes when initializing popup from background thread Crashes when initializing popup from background thread Sep 1, 2021
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

1 participant