"Could not find return label" error on reloading

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
User avatar
ketskari
Veteran
Posts: 296
Joined: Tue Dec 21, 2010 6:22 pm
Completed: Asher, Sunrise, Tell a Demon
Projects: Asher Remake, TEoA
Organization: Sun Labyrinth
Tumblr: sunlabyrinth
Deviantart: sunlabyrinth
itch: sunlabyrinth
Contact:

"Could not find return label" error on reloading

#1 Post 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!

User avatar
Geckos
Veteran
Posts: 471
Joined: Fri Aug 17, 2012 8:33 am
Completed: Brilliant Shadows, Perceptions of the Dead, The Phantom Icecream Truck
Projects: Embers of Magic, Pale Spectrum, Perceptions of the Dead
Organization: Ithaqua Labs
Tumblr: geckosart
Deviantart: sitaart
Contact:

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

#2 Post by Geckos »

Same thing happened to me just now.
Attachments
error.jpg
Image ImageImage

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

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

#3 Post by PyTom »

This should be fixed when 6.99 comes out.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]