yackle / CLImageEditor

MIT License
2.21k stars 574 forks source link

CLDrawTool Runtime Error #195

Closed cliffjoyce closed 6 years ago

cliffjoyce commented 6 years ago

Xcode 9 reports a Runtime Error for line 338 of CLDrawTool.m buildImage method when run on actual iOS 11 device:

UIGraphicsBeginImageContextWithOptions(_originalImageSize, NO, self.editor.imageView.image.scale);

The error is "[UIImageView image] must be used from main thread only".

yackle commented 6 years ago

Fixed, thanks!

hermannkuschke commented 6 years ago

I still get this error! In addition, the same error occurs in all tools inside the buildImage func.

Tippit commented 6 years ago

Does this link could help ?

https://developer.apple.com/documentation/code_diagnostics/main_thread_checker

Le 6 nov. 2017 à 09:26, Hermann Kuschke notifications@github.com a écrit :

I still get this error! In addition, the same error occurs in all tools inside the buildImage func.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yackle/CLImageEditor/issues/195#issuecomment-342077601, or mute the thread https://github.com/notifications/unsubscribe-auth/ACaddkkUwYluRq35hDotQYjklYIEvuBVks5szsKfgaJpZM4P5EMn.

yackle commented 6 years ago

@hermannkuschke Did you use cocoapods? Please try v0.2.2