kyouryuukunn / renpy-ActionEditor3

125 stars 13 forks source link

ActionEditor crashing on load #8

Closed overlordofflies closed 1 year ago

overlordofflies commented 2 years ago

Getting an intermittent error.

Sometimes it seems to work just fine, sometimes it crashes upon load. It doesn't seem to be connected to any one sprite in particular.



While running game code:
  File "game/script.rpy", line 288, in script
    h "Sorry man, I didn't realize you were \"that\" Kris..."
  File "game/camera/ActionEditor.rpy", line 2446, in open_action_editor
    renpy.call_screen("_new_action_editor")
  File "game/camera/ActionEditor.rpy", line 1173, in transform
    w, h = renpy.render(new_widget, 0, 0, 0, 0).get_size()
  File "game/camera/ActionEditor.rpy", line 116, in render
    return self.d.render(width, height, self.st, self.at)
AttributeError: 'LayeredImage' object has no attribute 'render'

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

Full traceback:
  File "game/script.rpy", line 288, in script
    h "Sorry man, I didn't realize you were \"that\" Kris..."
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/ast.py", line 921, in execute
    renpy.exports.say(who, what, *args, **kwargs)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/exports.py", line 1373, in say
    who(what, *args, **kwargs)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/character.py", line 1266, in __call__
    self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/character.py", line 927, in do_display
    display_say(who,
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/character.py", line 666, in display_say
    rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/core.py", line 3377, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs) # type: ignore
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/core.py", line 4252, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/layout.py", line 1175, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/behavior.py", line 476, in event
    rv = run(action)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/behavior.py", line 329, in run
    return action(*args, **kwargs)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/game.py", line 286, in invoke_in_new_context
    return callable(*args, **kwargs)
  File "game/camera/ActionEditor.rpy", line 2446, in open_action_editor
    renpy.call_screen("_new_action_editor")
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/exports.py", line 3161, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/core.py", line 3377, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs) # type: ignore
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/core.py", line 3906, in interact_core
    self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/core.py", line 2602, in draw_screen
    surftree = renpy.display.render.render_screen(
  File "render.pyx", line 495, in renpy.display.render.render_screen
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/layout.py", line 884, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/layout.py", line 884, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/layout.py", line 884, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/image.py", line 505, in render
    return wrap_render(self.target, width, height, st, at)
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/image.py", line 308, in wrap_render
    rend = render(child, w, h, st, at)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/transform.py", line 747, in render
    return transform_render(self, width, height, st, at)
  File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/layout.py", line 884, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/transform.py", line 747, in render
    return transform_render(self, width, height, st, at)
  File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/transform.py", line 747, in render
    return transform_render(self, width, height, st, at)
  File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/layout.py", line 884, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/transform.py", line 747, in render
    return transform_render(self, width, height, st, at)
  File "accelerator.pyx", line 187, in renpy.display.accelerator.transform_render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/layout.py", line 884, in render
    surf = render(child, width, height, cst, cat)
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/transform.py", line 747, in render
    return transform_render(self, width, height, st, at)
  File "accelerator.pyx", line 148, in renpy.display.accelerator.transform_render
  File "/home/ghostclown/Documents/renpy-8.0.1-sdk/renpy/display/transform.py", line 732, in update_state
    fr = self.function(self, self.st, self.at)
  File "game/camera/ActionEditor.rpy", line 1173, in transform
    w, h = renpy.render(new_widget, 0, 0, 0, 0).get_size()
  File "render.pyx", line 170, in renpy.display.render.render
  File "render.pyx", line 266, in renpy.display.render.render
  File "game/camera/ActionEditor.rpy", line 116, in render
    return self.d.render(width, height, self.st, self.at)
AttributeError: 'LayeredImage' object has no attribute 'render'

Linux-6.0.6-76060006-generic-x86_64-with-glibc2.35 x86_64
Ren'Py 8.0.1.22070801
R. I. P. Tour 1.0
Thu Nov 24 11:42:58 2022```
overlordofflies commented 2 years ago

The same error occurs with Renpy 8.03.

kyouryuukunn commented 1 year ago

Fixed 1ffd1dc92763dfce3982ace18b5ba84428f24151