Page 1 of 1

"Could not find return label" error on reloading

Posted: Tue Oct 14, 2014 4:33 pm
by ketskari
Okay... so if I change text in a say statement like so:

Code: Select all

nar "Lorem ipsum blah blah blah"
to

Code: Select all

nar "Something else here."
...And save it, sometimes it doesn't reload automatically. When this happens and I press shift-R to reload it, I get this:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 81, in script
    return
Exception: Could not find return label (u'\Sun Labyrinth(OL)\\TESTS/game/script.rpy', 1413316876, 6).

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

Full traceback:
  File "renpy/common/00start.rpy", line 81, in script
    return
  File "\Desktop\renpy-6.18.2-sdk\renpy\ast.py", line 1328, in execute
    next_node(renpy.game.context().lookup_return(pop=True))
  File "\Desktop\renpy-6.18.2-sdk\renpy\execution.py", line 391, in lookup_return
    raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'\Sun Labyrinth(OL)\\TESTS/game/script.rpy', 1413316876, 6).

Windows-7-6.1.7601-SP1
Ren'Py 6.18.2.729
TESTS 0.0
It seems to happen only after I update text, but it doesn't happen every time... and it occasionally happens with an autoreload. It doesn't appear to happen with images, even though I reload many more times when tweaking LiveComposites. When it comes up, the only option seems to be to close out and launch again.

Anyone know what this is about? The return label is definitely there, a few lines down...
Thanks!

Re: "Could not find return label" error on reloading

Posted: Wed Mar 11, 2015 3:24 am
by Geckos
Same thing happened to me just now.

Re: "Could not find return label" error on reloading

Posted: Wed Mar 11, 2015 10:54 am
by PyTom
This should be fixed when 6.99 comes out.