Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

repeatedly crashes on launch 😢

Error given in game window:

While running game code:
File "renpy/common/00start.rpy", line 275, in script
python:
File "renpy/common/00start.rpy", line 275, in script
python:
File "renpy/common/00start.rpy", line 1621, in <module>
Exception: Could not set video mode.
The game exited unexpectedly.
More information may be available in the browser console or contained in the log.

log.txt:

Fri Feb 23 12:03:03 2024
Emscripten-3.1.24-wasm32-32bit
Ren'Py 8.1.3.23091805
Bootstrap to the start of init.init. took 0.00s
Early init. took 0.02s
Loader init. took 0.04s
Loading error handling. took 0.34s
Loading script...
Loading script. took 6.25s
Loading save slot metadata. took 0.06s
Loading persistent. took 0.01s
Failed to initialize steam: ModuleNotFoundError("No module named '_ctypes'")
Set script version to: (8, 1, 3)
Running init code. took 0.13s
Loading analysis data. took 0.04s
Analyze and compile ATL. took 0.01s
Reloading save slot metadata. took 0.03s
Index archives took 0.01s
Dump and make backups. took 0.01s
Cleaning cache. took 0.00s
Making clean stores. took 0.00s
Initial gc. took 0.04s
DPI scale factor: 1.000000
Creating interface object. took 0.01s
Cleaning stores took 0.00s
Init translation took 0.10s
Build styles took 0.02s
Load screen analysis took 0.01s
Analyze screens took 0.03s
Save screen analysis took 0.03s
Prepare screens took 0.19s
Save pyanalysis. took 0.00s
Save bytecode. took 0.08s
Running _start took 0.01s
Interface start. took 0.07s
Initializing gles2 renderer:
primary display bounds: (0, 0, 1920, 1080)
swap interval: 1 frames
Windowed mode.
Could not get pygame screen: error('Could not create EGL context (call to eglCreateContext failed, reporting an error of EGL_BAD_MATCH)')
Initializing gles renderer:
primary display bounds: (0, 0, 1920, 1080)
swap interval: 1 frames
Windowed mode.
Could not get pygame screen: error('Could not create EGL context (call to eglCreateContext failed, reporting an error of EGL_BAD_MATCH)')
Full traceback:
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  File "/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 1616, in _execute_python_hide
  File "/renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/renpy/display/core.py", line 3539, in interact
    self.start()
  File "/renpy/display/core.py", line 2431, in start
    self.set_mode()
  File "/renpy/display/core.py", line 2765, in set_mode
    raise Exception("Could not set video mode.")
Exception: Could not set video mode.
While running game code:
Exception: Could not set video mode.
Full traceback:
  File "renpy/common/00start.rpy", line 275, in script
    python:
  File "/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00start.rpy", line 1621, in <module>
  File "/renpy/game.py", line 349, in call_in_new_context
    return renpy.execution.run_context(False)
  File "/renpy/execution.py", line 955, in run_context
    context.run()
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  File "/home/tom/ab/renpy-build-fix/tmp/install.web-wasm/lib/python3.11/site-packages/future/utils/__init__.py", line 444, in raise_
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  File "/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 1616, in _execute_python_hide
  File "/renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/renpy/display/core.py", line 3539, in interact
    self.start()
  File "/renpy/display/core.py", line 2431, in start
    self.set_mode()
  File "/renpy/display/core.py", line 2765, in set_mode
    raise Exception("Could not set video mode.")
Exception: Could not set video mode.
While running game code:
  File "renpy/common/00start.rpy", line 275, in script
    python:
  File "renpy/common/00start.rpy", line 1621, in <module>
Exception: Could not set video mode.
Full traceback:
  File "/renpy/bootstrap.py", line 275, in bootstrap
    renpy.main.main()
  File "/renpy/main.py", line 670, in main
    run(restart)
  File "/renpy/main.py", line 144, in run
    renpy.execution.run_context(True)
  File "/renpy/execution.py", line 955, in run_context
    context.run()
  File "renpy/common/00start.rpy", line 275, in script
    python:
  File "/home/tom/ab/renpy-build-fix/tmp/install.web-wasm/lib/python3.11/site-packages/future/utils/__init__.py", line 444, in raise_
  File "renpy/common/00start.rpy", line 275, in script
    python:
  File "/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/00start.rpy", line 1621, in <module>
  File "/renpy/game.py", line 349, in call_in_new_context
    return renpy.execution.run_context(False)
  File "/renpy/execution.py", line 955, in run_context
    context.run()
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  File "/home/tom/ab/renpy-build-fix/tmp/install.web-wasm/lib/python3.11/site-packages/future/utils/__init__.py", line 444, in raise_
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
    python hide:
  File "/renpy/ast.py", line 1138, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/renpy/python.py", line 1122, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
    python hide:
  File "renpy/common/_layout/screen_main_menu.rpym", line 1616, in _execute_python_hide
  File "/renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/renpy/display/core.py", line 3539, in interact
    self.start()
  File "/renpy/display/core.py", line 2431, in start
    self.set_mode()
  File "/renpy/display/core.py", line 2765, in set_mode
    raise Exception("Could not set video mode.")
Exception: Could not set video mode.
While running game code:
  File "renpy/common/00start.rpy", line 275, in script
    python:
  File "renpy/common/00start.rpy", line 275, in script
    python:
  File "renpy/common/00start.rpy", line 1621, in <module>
Exception: Could not set video mode.
(+1)

I'll look into it! No idea what's caused it though.

(+1)

Ok I believe it may be related to video/graphics so could be error on my end from resolution or perhaps related to an outdated graphics driver. I will  get around to trying to fix it and improve the game when i have a break from study hopefully :)

Thank you for the update! Outdated graphics driver could be on my end. In which case, congratulations on your first bug-report-that's-actually-the-user's-fault! It's a big milestone in game dev, I've heard.
nervous sweating

Thankyou for actually wanting to play my game, I hope to make more and improve hopefully < 3

Have a great week.