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 is not woking on Mac App #294

Open
miku1958 opened this issue May 7, 2021 · 0 comments
Open

visualize is not woking on Mac App #294

miku1958 opened this issue May 7, 2021 · 0 comments

Comments

@miku1958
Copy link

miku1958 commented May 7, 2021

Hi, I am trying latest commit of chisel in a Mac App, if I visualize a controller, it will fail with this error:

error: error: Execution was interrupted, reason: Attempted to dereference an invalid ObjC Object or send it an unrecognized selector.
The process has been returned to the state before expression evaluation.
Traceback (most recent call last):
  File "/Users/taozhuang/Documents/chisel/fblldb.py", line 99, in runCommand
    command.run(args, options)
  File "/Users/taozhuang/Documents/chisel/commands/FBVisualizationCommands.py", line 247, in run
    _visualize(arguments[0])
  File "/Users/taozhuang/Documents/chisel/commands/FBVisualizationCommands.py", line 201, in _visualize
    if objectHelpers.isKindOfClass(target, "UIImage"):
  File "/Users/taozhuang/Documents/chisel/fbchisellldbobjecthelpers.py", line 13, in isKindOfClass
    return fb.evaluateBooleanExpression(isKindOfClassStr.format(className))
  File "/Users/taozhuang/Documents/chisel/fbchisellldbbase.py", line 145, in evaluateBooleanExpression
    int(evaluateIntegerExpression("(BOOL)(" + expression + ")", printErrors)) != 0
  File "/Users/taozhuang/Documents/chisel/fbchisellldbbase.py", line 133, in evaluateIntegerExpression
    output = evaluateExpression("(int)(" + expression + ")", printErrors).replace(
AttributeError: 'NoneType' object has no attribute 'replace'

If I visualize [controller view], it will fail with this error:

error: error: <user expression 5>:1:21: no known method '-view'; cast the message send to the method's return type
[responderChainItem view]
~~~~~~~~~~~~~~~~~~~~^~~~~
Traceback (most recent call last):
  File "/Users/taozhuang/Documents/chisel/fblldb.py", line 99, in runCommand
    command.run(args, options)
  File "/Users/taozhuang/Documents/chisel/commands/FBVisualizationCommands.py", line 247, in run
    _visualize(arguments[0])
  File "/Users/taozhuang/Documents/chisel/commands/FBVisualizationCommands.py", line 189, in _visualize
    "(unsigned long)CFGetTypeID((CFTypeRef)"
TypeError: can only concatenate str (not "NoneType") to str
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