Ren'Py Ren'Py Game Crashes on Luanch

someonesomewhere2

Newbie
Game Developer
May 31, 2022
47
54
Hello all,

I've been trying to solve an issue with Ren'Py's SDK for a bit now with no success. I start a project, and I can launch it once or twice, and then it just stops launching. So I hit the "Lunch Project" option, the window opens to start the game, then the window closes. Like so:

2023-12-24 08-41-48.gif

I have not come up with a fix yet. I've done the following:

- Simple reboot
- Changing the project directory over to another drive (from the C drive to the D drive)
- Deleting the persistent file
- Forcing a recompile
- Forcing Ren'Py to use a specific renderer rather than letting it auto-choose
- Updating GPU
- Tried an older version of the SDK (I am using 8.1.3 for this project. I tried reverting to 7.6 and got the same behavior)
- Running renpy as an administrator

I should also mention that this has been happening across three different computers. All Windows 10 x64 machines. So, I'm guessing I'm not setting up something correctly. Any help would be appreciated.

This is the latest log file. I do not see any indications of errors. At least none that I can diagnose.

```text
Sun Dec 24 09:15:16 2023
Windows-10-10.0.19045
Ren'Py 8.1.3.23091805


Bootstrap to the start of init.init. took 0.03s
Early init. took 0.00s
Loader init. took 0.03s
Loading error handling. took 0.04s
Loading script. took 0.94s
Loading save slot metadata. took 0.02s
Loading persistent. took 0.00s
Set script version to: None (alternate path)
Running init code. took 0.33s
Loading analysis data. took 0.02s
Analyze and compile ATL. took 0.00s
Reloading save slot metadata. took 0.01s
Index archives took 0.00s
Dump and make backups. took 0.00s
Cleaning cache. took 0.00s
Making clean stores. took 0.00s
Initial gc. took 0.02s
DPI scale factor: 1.500000
nvdrs: Loaded, about to disable thread optimizations.
nvdrs: Disabled thread optimizations.
Creating interface object. took 0.26s
Cleaning stores took 0.00s
Init translation took 0.03s
Build styles took 0.00s
Load screen analysis took 0.03s
Analyze screens took 0.00s
Save screen analysis took 0.00s
Prepare screens took 0.07s
Save pyanalysis. took 0.00s
Save bytecode. took 0.03s
Running _start took 0.00s
Performance test:
Interface start. took 0.08s

Initializing gl2 renderer:
primary display bounds: (0, 0, 3840, 2160)
swap interval: 1 frames
Windowed mode.
Vendor: "b'NVIDIA Corporation'"
Renderer: b'NVIDIA GeForce RTX 3090/PCIe/SSE2'
Version: b'4.6.0 NVIDIA 546.33'
Display Info: None
Screen sizes: virtual=(800, 600) physical=(1200, 900) drawable=(1200, 900)
Maximum texture size: 4096x4096
controller: '030000006d0400000000000000007200' '(Razer Xbox 360 Controller)' 1
Controller found in blocklist, not using.
controller: '030000006d0400000000000000007200' '(Razer Xbox 360 Controller)' 1
Controller found in blocklist, not using.
```
 
Last edited:

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
4,989
7,310
It generates a log.txt, the issue is written there (or at least where it crashes, which may hint at the issue).
 

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
4,989
7,310
Winterfire

I think I posted the log at the same time as this came in lol. I posted the log in the original post. Nothing that I am seeing that would indicate an issue.
I can see how the controller (faulty drivers and stuff) can cause issues, quick google search has tons of these results:

Since it crashes at that point, that could be the conflict.
 

someonesomewhere2

Newbie
Game Developer
May 31, 2022
47
54
I can see how the controller (faulty drivers and stuff) can cause issues, quick google search has tons of these results:

Since it crashes at that point, that could be the conflict.
You might be on to something. I uninstalled the Xbox controller, and I was able to launch the problem project. Windows installs that by default on reload, though. So, I disabled it and have been able to launch it without an issue.
 

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
4,989
7,310
You might be on to something. I uninstalled the Xbox controller, and I was able to launch the problem project. Windows installs that by default on reload, though. So, I disabled it and have been able to launch it without an issue.
If you look on google (or even the link itself) there are some solutions that do not require the uninstallation of the gamepad. I think you either have the wrong drivers, or very outdated ones.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Respected User
Donor
Jun 10, 2017
10,263
15,073
I uninstalled the Xbox controller, [...]
Why ? Just unplug the controller and it should be enough.

Ren'Py do not interrogate the system to have a list of all the drivers. It just ask if there's a controller plugged, and react depending if the answer is yes or no.