Forums » Bugs

Assigning dofile causes delayed CTD

Jun 05, 2023 helix397 link
Summary: if you assign to the `dofile` global variable, it will cause a CTD.

Steps to replicate:
- Remove all plugins. Create one blank plugin, and put "dofile = dofile" in its main.lua file.
- Start the game.
- Game will successfully load all plugins, then crash to desktop before reaching the login screen.
Replicated on latest version (1.8.647/1).

Device: Dell laptop running Windows 10 Home with NVidia GeForce GTX 1050 Ti graphics card.

errors.log:

Windows 10.00.19045 (platform 2)
Is 64bit OS? Yes
Mon Jun 05 17:18:46 2023
There is 26 percent of memory in use.
There are 33279888 total KB of physical memory.
There are 24578460 free KB of physical memory.
There are 38260624 total KB of paging file.
There are 27369412 free KB of paging file.
There are 2097024 total KB of virtual memory.
There are 2018892 free KB of virtual memory.
There are 0 free KB of extended memory.
loaded ./media.rlb
loaded ./media6.rlb
loaded ./media7.rlb
loaded ./demos.rlb
archive returned 0
build date Apr 20 2023 21:06:39
Initializing job system with 5 threads and 32768 jobs per thread.
ovr_Initialize: -3001
[06/05/23 17:18:46] Found driver: "Windows Sound (WAV) driver". Type 1, Version 10.1. Load @0x10000000
[06/05/23 17:18:46] Instantiate address: 10002540
[06/05/23 17:18:46] Found driver: "DirectX11 GKGL driver". Type 5, Version 150.0. Load @0x048a0000
[06/05/23 17:18:46] Instantiate address: 048A3640
[06/05/23 17:18:46] Found driver: "DirectX8.1 GKGL driver". Type 5, Version 142.1. Load @0x04910000
[06/05/23 17:18:46] Instantiate address: 04933890
[06/05/23 17:18:46] Found driver: "DirectX9 GKGL driver". Type 5, Version 150.0. Load @0x04910000
[06/05/23 17:18:46] Instantiate address: 0495A560
[06/05/23 17:18:46] Found driver: "Vulkan GKGL driver". Type 5, Version 150.0. Load @0x04b30000
[06/05/23 17:18:46] Instantiate address: 04B39500
[06/05/23 17:18:46] Found driver: "OpenGL Reference GKGL driver". Type 5, Version 150.0. Load @0x04c00000
[06/05/23 17:18:46] Instantiate address: 04C13900
[06/05/23 17:18:46] Found driver: "Vista Sound driver". Type 1, Version 10.0. Load @0x05080000
[06/05/23 17:18:46] Instantiate address: 0508235E
[06/05/23 17:18:46] Found driver: "XAudio2 Sound driver". Type 1, Version 10.0. Load @0x050e0000
[06/05/23 17:18:46] Instantiate address: 050E18CE
Using multithreaded rendering.
Using 6 physics worker threads. and g_do_mp = 1
using other arch.
DoGameMPJobs.
starting job system.
Starting game job.
[06/05/23 17:18:50] Creating 2048x2048 shadowmap.
Created 2 refraction targets
Loaded sensitivity envelope for touch regions.
Loaded sensitivity envelope for quest controllers.
Input driver initialized.
HAS_LEAP - calling initLeapMouse
VO_API_VERSION = 19
Loaded plugin 'scratch1'
[06/05/23 17:18:57] Flight-Assist mode disabled.
[06/05/23 17:18:57] Auto-Aim enabled.
[06/05/23 17:18:57] Auto-Fire enabled.

Assertion failed!
itable.c:328
Expression: it && key

(My computer has DPI issues with the error reporter, sorry I couldn't get it to work on my display (too small)).

When I remove the plugin or comment out "dofile = dofile" I do not experience the CTD. The issue does not occur if I use "loadfile = loadfile" instead.
Jun 05, 2023 incarnate link
Thanks for the report, we'll take a look.