Page 1 of 1

New Error Reporting:

Posted: Mon Mar 24, 2014 11:08 am
by xela

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

Re: New Error Reporting:

Posted: Mon Mar 24, 2014 11:34 am
by PyTom
Can you put together a replication of this? It looks like a bug in the error handling, but I haven't seen it here.

Re: New Error Reporting:

Posted: Mon Mar 24, 2014 11:45 am
by xela
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.

Re: New Error Reporting:

Posted: Mon Mar 24, 2014 1:42 pm
by xela
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).

Re: New Error Reporting:

Posted: Mon Mar 24, 2014 3:37 pm
by xela

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 :)

Re: New Error Reporting:

Posted: Mon Mar 24, 2014 5:29 pm
by PyTom
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.

Re: New Error Reporting:

Posted: Mon Mar 24, 2014 5:43 pm
by xela
No...

Errors occurs on any bad python or Ren'Py code it would seem. Right now I am clueless to it's origin.

Re: New Error Reporting:

Posted: Mon Mar 24, 2014 6:22 pm
by xela
Found the culprit:

Code: Select all

python early:
    config.developer = True
Apologies for wasting your time.

Re: New Error Reporting:

Posted: Thu Aug 07, 2014 10:58 pm
by bobobo1618
We're getting this at the moment. It appears to occur wherever a syntax error happens.

Re: New Error Reporting:

Posted: Thu Aug 07, 2014 11:43 pm
by xela
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.