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

visualize fails for certain UIImage pointers #215

Closed
cbowns opened this issue Jan 3, 2018 · 1 comment
Closed

visualize fails for certain UIImage pointers #215

cbowns opened this issue Jan 3, 2018 · 1 comment

Comments

@cbowns
Copy link

cbowns commented Jan 3, 2018

(Refs #205 and #177 )

Swift 4 code in Xcode 9.2 running on an iOS 10.3 device. I have a UIImage? I'm trying to visualize from the device, and it sometimes fails. (I don't know if it's related to the image optional or not: sometimes it works just fine!)

The error text is reliably the same:

(lldb) visualize image
error: error: Execution was interrupted, reason: breakpoint 1.1.
The process has been returned to the state before expression evaluation.
Traceback (most recent call last):
  File "/usr/local/opt/chisel/libexec/fblldb.py", line 83, in runCommand
    command.run(args, options)
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 178, in run
    _visualize(arguments[0])
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 150, in _visualize
    _showImage(target)
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 38, in _showImage
    imageBytesStartAddress = fb.evaluateExpression('(void *)[(id)' + imageDataAddress + ' bytes]')
TypeError: cannot concatenate 'str' and 'NoneType' objects

Even if I backtick it, or force-unwrap:

(lldb) visualize image
error: error: Execution was interrupted, reason: breakpoint 1.1.
The process has been returned to the state before expression evaluation.
Traceback (most recent call last):
  File "/usr/local/opt/chisel/libexec/fblldb.py", line 83, in runCommand
    command.run(args, options)
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 178, in run
    _visualize(arguments[0])
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 150, in _visualize
    _showImage(target)
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 38, in _showImage
    imageBytesStartAddress = fb.evaluateExpression('(void *)[(id)' + imageDataAddress + ' bytes]')
TypeError: cannot concatenate 'str' and 'NoneType' objects

(lldb) visualize image!
error: error: Execution was interrupted, reason: breakpoint 1.1.
The process has been returned to the state before expression evaluation.
Traceback (most recent call last):
  File "/usr/local/opt/chisel/libexec/fblldb.py", line 83, in runCommand
    command.run(args, options)
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 178, in run
    _visualize(arguments[0])
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 150, in _visualize
    _showImage(target)
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 38, in _showImage
    imageBytesStartAddress = fb.evaluateExpression('(void *)[(id)' + imageDataAddress + ' bytes]')
TypeError: cannot concatenate 'str' and 'NoneType' objects

(lldb) visualize `image`
error: error: Execution was interrupted, reason: breakpoint 1.1.
The process has been returned to the state before expression evaluation.
Traceback (most recent call last):
  File "/usr/local/opt/chisel/libexec/fblldb.py", line 83, in runCommand
    command.run(args, options)
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 178, in run
    _visualize(arguments[0])
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 150, in _visualize
    _showImage(target)
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 38, in _showImage
    imageBytesStartAddress = fb.evaluateExpression('(void *)[(id)' + imageDataAddress + ' bytes]')
TypeError: cannot concatenate 'str' and 'NoneType' objects

(lldb) visualize `image!`
error: error: Execution was interrupted, reason: breakpoint 1.1.
The process has been returned to the state before expression evaluation.
Traceback (most recent call last):
  File "/usr/local/opt/chisel/libexec/fblldb.py", line 83, in runCommand
    command.run(args, options)
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 178, in run
    _visualize(arguments[0])
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 150, in _visualize
    _showImage(target)
  File "/usr/local/Cellar/chisel/HEAD-2bc1bf6/libexec/commands/FBVisualizationCommands.py", line 38, in _showImage
    imageBytesStartAddress = fb.evaluateExpression('(void *)[(id)' + imageDataAddress + ' bytes]')
TypeError: cannot concatenate 'str' and 'NoneType' objects
@cbowns
Copy link
Author

cbowns commented Jun 5, 2018

This is a dupe of #177

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

No branches or pull requests

1 participant