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

UIImageBeginImageContext() is not thread-safe on the iPhone #43

Closed
GoogleCodeExporter opened this issue Apr 21, 2015 · 0 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Use the UIImage category on a second thread

What is the expected output? What do you see instead?
Expected: EXC_BAD_ACCESS if another thread affects the context whilst drawing.
Actual: As above. Inconsistent reproduction, due to it requiring specific
thread interleaving.

What version of the product are you using? On what operating system?
Version: Latest source code.
OS: iPhone/Any.

Please provide any additional information below.
I suggest reading
http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/
for details on how to perform the same operations using pure CoreGraphics
functions, which are thread-safe.

Original issue reported on code.google.com by oliver.l...@gmail.com on 17 Jan 2010 at 4:53

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

No branches or pull requests

2 participants