New Error Reporting:

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

New Error Reporting:

#1 Post by xela » Mon Mar 24, 2014 11:08 am

Code: Select all

I'm sorry, but an uncaught exception occurred.

After loading the script.
Exception: Invalid key specifier skip
On almost any syntax error. Isn't this about the same as telling you to go over the whole code in order to find a typo???

Old reports always gave the line and the file!?!

***
Windows-7-6.1.7601-SP1
Ren'Py 6.17.3.327
Like what we're doing? Support us at:
Image

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: New Error Reporting:

#2 Post by PyTom » Mon Mar 24, 2014 11:34 am

Can you put together a replication of this? It looks like a bug in the error handling, but I haven't seen it here.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: New Error Reporting:

#3 Post by xela » Mon Mar 24, 2014 11:45 am

PyTom wrote:Can you put together a replication of this? It looks like a bug in the error handling, but I haven't seen it here.
It happens all over the place. (It never happened before last Ren'Py update by the way if that helps narrow it down).

Last time it was in this code:

Code: Select all

                        txt += choice(["\n%s has been confiscated for a price of %s of the original value. " % (confiscate.name, multiplier)
                                               "\nThose sobs took %s from you! " % confiscate.name
                                               "\nYou've lost %s! If only you were better at managing your business... " % confiscate.name])
I forgot the commas to separate elements in the list.

Inside of method of a class (declared in init python).

But if required I can come up with more examples, other people working have reported this as well under simpler circumstances.
Like what we're doing? Support us at:
Image

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: New Error Reporting:

#4 Post by xela » Mon Mar 24, 2014 1:42 pm

Did I do something weird to my game or is this a bug???

Apparently even a bad indentation in Ren'Py script causes the same error:

Code: Select all

label game_over:
    scene bg game_over
        with dissolve
Edit:

It just came to me to try the exactly same code on a new project under the same Ren'Py version. It reported the error in a normal way, specifying a line and the file where it occurred. I have no idea what I've done to my game to cause this :( None of the Ren'Py files below the game directory has been edited.

But I do no longer believe it's bug or at least a common one, maybe I coded something unexpected (game is prolly over 60 - 70 thousand lines of code by now).
Like what we're doing? Support us at:
Image

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: New Error Reporting:

#5 Post by xela » Mon Mar 24, 2014 3:37 pm

Code: Select all

I'm sorry, but an uncaught exception occurred.

After loading the script.
Exception: Invalid key specifier skip

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

Full traceback:
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\bootstrap.py", line 286, in bootstrap
    renpy.main.main()
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\main.py", line 258, in main
    if renpy.parser.report_parse_errors():
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\parser.py", line 2250, in report_parse_errors
    renpy.display.error.report_parse_errors(full_text, error_fn)
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\display\error.py", line 156, in report_parse_errors
    error_fn = error_fn,
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\game.py", line 235, in invoke_in_new_context
    return callable(*args, **kwargs)
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\display\error.py", line 42, in call_exception_screen
    return renpy.ui.interact(mouse="screen", type="screen", suppress_overlay=True, suppress_underlay=True)
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\ui.py", line 237, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\display\core.py", line 1993, in interact
    repeat, rv = self.interact_core(preloads=preloads, **kwargs)
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\display\core.py", line 2563, in interact_core
    renpy.display.behavior.skipping(ev)
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\display\behavior.py", line 171, in skipping
    if map_event(ev, "skip"):
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\display\behavior.py", line 146, in map_event
    check_code = eval("lambda ev : " + compile_event(keysym, True), globals())
  File "D:\Coding\Dropbox\SimBro Dev\RenPy\renpy\display\behavior.py", line 107, in compile_event
    raise Exception("Invalid key specifier %s" % key)
Exception: Invalid key specifier skip

Windows-7-6.1.7601-SP1
Ren'Py 6.17.3.327
Full report...

I'd appreciate any ideas of what can be a cause of this. Otherwise I have a very extensive code review in front of me :)
Like what we're doing? Support us at:
Image

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: New Error Reporting:

#6 Post by PyTom » Mon Mar 24, 2014 5:29 pm

Offhand - could you be doing something odd with config.keymap? If the skip entry in config.keymap is not present, you'd get an error like this.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: New Error Reporting:

#7 Post by xela » Mon Mar 24, 2014 5:43 pm

No...

Errors occurs on any bad python or Ren'Py code it would seem. Right now I am clueless to it's origin.
Like what we're doing? Support us at:
Image

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: New Error Reporting:

#8 Post by xela » Mon Mar 24, 2014 6:22 pm

Found the culprit:

Code: Select all

python early:
    config.developer = True
Apologies for wasting your time.
Like what we're doing? Support us at:
Image

bobobo1618
Newbie
Posts: 2
Joined: Wed Dec 18, 2013 11:22 pm
Contact:

Re: New Error Reporting:

#9 Post by bobobo1618 » Thu Aug 07, 2014 10:58 pm

We're getting this at the moment. It appears to occur wherever a syntax error happens.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: New Error Reporting:

#10 Post by xela » Thu Aug 07, 2014 11:43 pm

Well, it most likely is your fault like it was mine ;)

It's prolly a similar issue, check config or anything in your script that may override Ren'Py normal functionality. This error cost me about 10 hours of wasted dev time so I wish you good luck in tracking it down.
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: No registered users