RecursionError: maximum recursion depth exceeded, when running my project

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
canija2000
Newbie
Posts: 2
Joined: Thu Feb 22, 2024 3:57 pm
Contact:

RecursionError: maximum recursion depth exceeded, when running my project

#1 Post by canija2000 »

Ive been working on a game for a week now. Ive gotten normal errors about syntaxis and stuff like that. But today i was adding some images and changing some dialogs and all of the sudden the launcher throws me this error. I dont have any idea how this could happened, in first place the error is ocurring in files that i haven't touched, and is not mentioning any of the code ive written.
So if someone could guide through this ill appreciate it a lot.
Thanks!


Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 211, in script call
    call _gl_test
  File "renpy/common/00gltest.rpy", line 388, in script
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 388, in <module>
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 317, in _m1_00gltest__gl_test
    _gl_performance_test()
  File "renpy/common/00gltest.rpy", line 340, in _gl_performance_test
    ui.interact(suppress_underlay=True, suppress_overlay=True)
RecursionError: maximum recursion depth exceeded

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "renpy/common/00start.rpy", line 211, in script call
    call _gl_test
  File "renpy/common/00gltest.rpy", line 388, in script
    $ __gl_test()
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/ast.py", line 823, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/python.py", line 1178, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00gltest.rpy", line 388, in <module>
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 317, in _m1_00gltest__gl_test
    _gl_performance_test()
  File "renpy/common/00gltest.rpy", line 340, in _gl_performance_test
    ui.interact(suppress_underlay=True, suppress_overlay=True)
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/ui.py", line 301, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/display/core.py", line 2165, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/display/core.py", line 2704, in interact_core
    renpy.display.focus.before_interact(focus_roots)
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/display/focus.py", line 357, in before_interact
    root.find_focusable(callback, None)
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/display/displayable.py", line 333, in find_focusable
    i.find_focusable(callback, focus_name)
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/display/displayable.py", line 333, in find_focusable
    i.find_focusable(callback, focus_name)
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/display/displayable.py", line 333, in find_focusable
    i.find_focusable(callback, focus_name)
  [Previous line repeated 976 more times]
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/display/displayable.py", line 329, in find_focusable
    for i in self.visit():
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/atl.py", line 766, in visit
    return self.children + block.visit() # type: ignore
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/atl.py", line 1055, in visit
    return [ j for i in self.statements for j in i.visit() ]
  File "/Users/jabac/Desktop/renpy-p/renpy-8.2.0-sdk/renpy/atl.py", line 1055, in <listcomp>
    return [ j for i in self.statements for j in i.visit() ]
RecursionError: maximum recursion depth exceeded

macOS-14.2.1-arm64-arm-64bit arm64
Ren'Py 8.2.0.24012702
Tutorial1 1.0
Thu Feb 22 17:13:58 2024

canija2000
Newbie
Posts: 2
Joined: Thu Feb 22, 2024 3:57 pm
Contact:

Re: RecursionError: maximum recursion depth exceeded, when running my project

#2 Post by canija2000 »

I fixed it. Don't know why, but naming a image "black" was causing the error. Maybe in other part of the repository was a file named equally, but, just changing that name the error dissapeared.
So, thanks anyway

jeffster
Veteran
Posts: 409
Joined: Wed Feb 03, 2021 9:55 pm
Contact:

Re: RecursionError: maximum recursion depth exceeded, when running my project

#3 Post by jeffster »

canija2000 wrote: Thu Feb 22, 2024 5:16 pm I fixed it. Don't know why, but naming a image "black" was causing the error. Maybe in other part of the repository was a file named equally, but, just changing that name the error dissapeared.
Yes, "black" is a predefined name for something like
Solid("#000")
It's used in Ren'Py more than once. Maybe it should be added to the list of reserved id's
https://renpy.org/doc/html/reserved.html

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], decocloud