UIKit.UIKitThreadAccessException: UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread. #19710
-
I am making use of the
This is being called from a MVUX model, and it's surprising to see that this is not being called on the UI thread by default. Is there a way to ensure that commands executed from the UI are run on the UI thread? Thank you for any assistance you can provide. |
Beta Was this translation helpful? Give feedback.
Answered by
Mike-E-angelo
Mar 20, 2025
Replies: 1 comment 8 replies
-
Thanks for the report. Could you tell which version of the uno.sdk you're using? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @jeromelaban the UI thread issue appears to be more fundamental than the
CameraCaptureUI
and is due to how AsyncCommand is executing. From WPF/Silverlight it was expected that every command fired on the UI thread. Of course, WPF/Silverlight didn't have asynchronous operations at the time. 😁 But it would be the expectation here that any calls made directly on the model would be on the UI thread. I have captured this on https://github.com/unoplatform/uno/issues/19717