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

NSInternalInconsistencyException in WPMediaPickerViewController: threading violation: expected the main thread #350

Open
loremattei opened this issue Apr 14, 2020 · 1 comment
Labels

Comments

@loremattei
Copy link
Contributor

Sentry Url: https://sentry.io/share/issue/908f4cc518554171b60e5b272f81d555/
User Count: 99
Count: 359
First Release: 13.4.1.1
First Seen: 2019-11-06T23:18:15Z
Last Release: 14.5.0.2
Last Seen: 2020-04-14T03:37:21Z
24 Hours: 3
30 Days: 88

Stacktrace:

NSInternalInconsistencyException: threading violation: expected the main thread
    at null.__exceptionPreprocess(null:null)
    at null.objc_exception_throw(null:null)
    at null.+[NSException raise:format:arguments:](null:null)
    at null.-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:](null:null)
    at null.-[FBSSerialQueue assertOnQueue](null:null)
    at null.-[FBSSceneImpl updateClientSettings:withTransitionContext:](null:null)
    at null.-[FBSSceneImpl updateClientSettingsWithTransitionBlock:](null:null)
    at null.-[FBSScene(UIApp) updateUIClientSettingsWithTransitionBlock:](null:null)
    at null.-[UIScene _updateUIClientSettingsWithUITransitionBlock:](null:null)
    at null.-[_UISystemAppearanceManager updateWhitePointAdaptivityStyle](null:null)
...
(21 additional frame(s) were not displayed)
@yaelirub
Copy link

yaelirub commented Apr 20, 2020

Add DispatchQueue.main.async before calling [self.internalNavigationController pushViewController:viewController animated:YES]; in - (void)showAfterViewController:(UIViewController *)viewController

@leandroalonso , would you mind adding this when you're looking into #349 ?

@yaelirub yaelirub transferred this issue from wordpress-mobile/WordPress-iOS Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants