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

RuntimeError: maximum recursion depth exceeded while calling a Python object #198

Open
l29ah opened this issue May 23, 2023 · 1 comment

Comments

@l29ah
Copy link

l29ah commented May 23, 2023

Using 53bb6e6 decompiler:

Decompiling method $deserializeLambda$ (Ljava/lang/invoke/SerializedLambda;)Ljava/lang/Object;
Traceback (most recent call last):
  File "./decompile.py", line 158, in <module>
    decompileClass(path, targets, args.out, args.skip, magic_throw=args.xmagicthrow)
  File "./decompile.py", line 103, in decompileClass
    source = printer.visit(javaclass.generateAST(c, makeGraphCB, skip_errors, add_throws=add_throws))
  File "Krakatau/java/javaclass.py", line 68, in generateAST
    method_defs = [_getMethod(m, cb, forbidden_identifiers, skip_errors) for m in methods]
  File "Krakatau/java/javaclass.py", line 40, in _getMethod
    code_ast = javamethod.generateAST(method, graph, forbidden_identifiers)
  File "Krakatau/java/javamethod.py", line 851, in generateAST
    ast_root, varinfo = astgen.createAST(method, graph, setree, namegen)
  File "Krakatau/java/astgen.py", line 321, in createAST
    astroot = _createASTSub(info, seroot, None)
  File "Krakatau/java/astgen.py", line 272, in _createASTSub
    parts = [_createASTSub(info, item, newft) for item, newft in zip(current.items, ftitems)]
  File "Krakatau/java/astgen.py", line 279, in _createASTSub
    parts = [_createASTSub(info, scope, ftitem, True) for scope in current.getScopes()]
...
  File "Krakatau/java/astgen.py", line 272, in _createASTSub
    parts = [_createASTSub(info, item, newft) for item, newft in zip(current.items, ftitems)]
  File "Krakatau/java/astgen.py", line 279, in _createASTSub
    parts = [_createASTSub(info, scope, ftitem, True) for scope in current.getScopes()]
  File "Krakatau/java/astgen.py", line 268, in _createASTSub
    if isinstance(current, SEBlockItem):
RuntimeError: maximum recursion depth exceeded while calling a Python object
@Storyyeller
Copy link
Owner

Can you please provide the jar you were trying to decompile?

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

2 participants