IndexError: Position outside surface (Linux)

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
meyaoi
Regular
Posts: 61
Joined: Thu Dec 03, 2015 6:07 am
Tumblr: meyaoigames
Deviantart: meyaoi
Contact:

IndexError: Position outside surface (Linux)

#1 Post by meyaoi »

Hello there!
I've recently released a beta version of my game, and a player just reported an error "IndexError: Position outside surface" whenever he moves the mouse cursor in main menu. It's not happening in my Windows computer, nor is it happening in Mac computers, so I think it is a Linux-only bugs.

This is the full traceback.txt

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
IndexError: Position outside surface.

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

Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  File "/home/mormonjz/Projects/SeiyuuDanshi/renpy/ast.py", line 848, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/home/mormonjz/Projects/SeiyuuDanshi/renpy/python.py", line 1812, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/_layout/screen_main_menu.rpym", line 35, in <module>
    ui.interact()
  File "/home/mormonjz/Projects/SeiyuuDanshi/renpy/ui.py", line 287, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/home/mormonjz/Projects/SeiyuuDanshi/renpy/display/core.py", line 2624, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "/home/mormonjz/Projects/SeiyuuDanshi/renpy/display/core.py", line 3414, in interact_core
    rv = renpy.display.focus.mouse_handler(ev, x, y)
  File "/home/mormonjz/Projects/SeiyuuDanshi/renpy/display/focus.py", line 380, in mouse_handler
    new_focus = renpy.display.render.focus_at_point(x, y)
  File "render.pyx", line 451, in renpy.display.render.focus_at_point
  File "render.pyx", line 1204, in renpy.display.render.Render.focus_at_point
  File "render.pyx", line 1204, in renpy.display.render.Render.focus_at_point
  File "render.pyx", line 1204, in renpy.display.render.Render.focus_at_point
  File "render.pyx", line 1204, in renpy.display.render.Render.focus_at_point
  File "render.pyx", line 1204, in renpy.display.render.Render.focus_at_point
  File "render.pyx", line 1184, in renpy.display.render.Render.focus_at_point
  File "render.pyx", line 1311, in renpy.display.render.Render.is_pixel_opaque
  File "/home/mormonjz/Projects/SeiyuuDanshi/renpy/display/swdraw.py", line 1042, in is_pixel_opaque
    if self.is_pixel_opaque(child, x, y):
  File "/home/mormonjz/Projects/SeiyuuDanshi/renpy/display/swdraw.py", line 1053, in is_pixel_opaque
    if not child.get_masks()[3] or child.get_at((cx, cy))[3]:
  File "src/pygame_sdl2/surface.pyx", line 512, in pygame_sdl2.surface.Surface.get_at (gen/pygame_sdl2.surface.c:7581)
IndexError: Position outside surface.
Also, the OS detail:
Linux-4.15.8-1-ARCH-x86_64-with-glibc2.2.5
Using Ren'Py 6.99.14.1.3218 (latest version... I think?)

Any idea why this sort of error's happening?

Thanks for the help!

Post Reply

Who is online

Users browsing this forum: No registered users