Skip to content

Commit

Permalink
Try all threads when calling UIImagePNGRepresentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kastiglione committed Jun 5, 2018
1 parent 5e64a59 commit cf46d7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/FBVisualizationCommands.py
Expand Up @@ -34,7 +34,8 @@ def _showImage(commandForImage):
else:
raise

imageDataAddress = fb.evaluateObjectExpression('UIImagePNGRepresentation((id)' + commandForImage + ')')
toPNG = '(id)UIImagePNGRepresentation((id){})'.format(commandForImage)
imageDataAddress = fb.evaluateExpressionValue(toPNG, tryAllThreads=True).GetValue()
imageBytesStartAddress = fb.evaluateExpression('(void *)[(id)' + imageDataAddress + ' bytes]')
imageBytesLength = fb.evaluateExpression('(NSUInteger)[(id)' + imageDataAddress + ' length]')

Expand Down

0 comments on commit cf46d7a

Please sign in to comment.