Crash Fix Multiple input interfaces (keyboard mouse gamepad)

onions

Member
If you have a second keyboard plugged you maybe able to fix your crashes by disconnecting it while playing (game controllers or mice may also be affected).

I analyzed an access violation mdmp with windbg and I'm pretty sure something with having a second keyboard plugged in and creating an interface eventually made a pointer point to null and ffffffffffffffff. Before I'd crash randomly and now my game has been running without a crash after stress testing it in the sandbox for an hour. I don't know if this would happen with a game controller or two mice plugged in but it might. It happened once after the update then I started digging into the mdmp. I'm not an expert at this but anecdotally before the game would crash 1 to 3 times every 30 minutes and couldn't stand a stress test in the sandbox. Now after unplugging my second keyboard I've been in the sandbox for 1.5 hours and stress tested without a crash. I just saw the invalid pointer read associated with inputsystem.dll and a thing about crashing at a new interface so I thought maybe it's the second keyboard.

windbg readout:

************* Preparing the environment for Debugger Extensions Gallery repositories **************
ExtensionRepository : Implicit
UseExperimentalFeatureForNugetShare : true
AllowNugetExeUpdate : true
NonInteractiveNuget : true
AllowNugetMSCredentialProviderInstall : true
AllowParallelInitializationOfLocalRepositories : true

EnableRedirectToV8JsProvider : false

-- Configuring repositories
----> Repository : LocalInstalled, Enabled: true
----> Repository : UserExtensions, Enabled: true

>>>>>>>>>>>>> Preparing the environment for Debugger Extensions Gallery repositories completed, duration 0.000 seconds

************* Waiting for Debugger Extensions Gallery to Initialize **************

>>>>>>>>>>>>> Waiting for Debugger Extensions Gallery to Initialize completed, duration 0.172 seconds
----> Repository : UserExtensions, Enabled: true, Packages count: 0
----> Repository : LocalInstalled, Enabled: true, Packages count: 41

Microsoft (R) Windows Debugger Version 10.0.27553.1004 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [C:\Program Files (x86)\Steam\steamapps\common\Deadlock\game\bin\win64\project8_2024_0912_203247_0_accessviolation.mdmp]
Comment: 'Crash
Uptime( 1218.708147 )
Total frames( 168000 )
Curtime( 307.621338 )
Realtime( 305.568420 )
Current Map: 'new_player_basics'
Addons:
VPK overrides:
SpawnCount: 2
Command Line: "project8.exe" -console -noassert +@panorama_min_comp_layer_cache_cost_TURNED_OFF 256 -convars_visible_by_default -novid
Launch path: C:\Program Files (x86)\Steam\steamapps\common\Deadlock\game\bin\win64\project8.exe
Build: 10171 (revision 9180180)
OS: Windows 10 Pro (Build: 22631) (UBR: 4169) (Limited User)
OS type: Windows 11 (21)
Windows Game DVR: not enabled
Windows Game Mode: not active
App UI Language: english, convar english, localization english_US
Windows user default LCID: 0x0409
Misc: rate 196608 update 128 latency 0 msec
Net: 127.0.0.1:27015
Time: Thu Sep 12 08:32:47 2024
Engine thread pool: 7 thread(s)

Render system: Vulkan
Driver Name: NVIDIA GeForce RTX 3080 Ti
Driver Version: 561.9.0.0
VendorId / DeviceId: 0x10de / 0x2208
SubSystem / Rev: 0x0 / 0x0
DXLevel: 110
Texture memory: 11,867,783,168
Vid: Exclusive Fullscreen, render at 1920 x 1080, display at 1920 x 1080, refresh rate 239.96Hz (240Hz desktop)
Version:20, cpu_level:2, mem_level:2, gpu_mem_level:3, gpu_level:3, knowndevice:0,
defaultres:1920, defaultresheight:1080, refreshrate_numerator:239964, refreshrate_denominator:1000,
fullscreen:1, coop_fullscreen:0, nowindowborder:1, mat_vsync:0, fullscreen_min_on_focus_loss:0,
high_dpi:0, cl_particle_fallback_base:0, cl_particle_fallback_multiplier:0.000000,
r_citadel_ssao_quality:0, r_citadel_distancefield_ao_quality:0, r_citadel_distancefield_reflections:false,
r_citadel_distancefield_shadows:false, r_effects_bloom:false, r_post_bloom:false,
r_env_map_uses_height_map:0, r_citadel_antialiasing:0, r_citadel_upscaling:2, r_depth_of_field:false,
r_displacement_mapping:0, r_screen_space_shadows:false, r_citadel_half_res_noisy_effects:true,
r_render_portals:0, r_arealights:false, r_texture_stream_mip_bias:2, r_dashboard_render_quality:0,
r_particle_depth_feathering:false, shaderquality:0, recommendedheight:720, csm_max_shadow_dist_override:4096.000000,
lb_csm_override_staticgeo_cascades:true, lb_csm_override_staticgeo_cascades_value:-1,
volume_fog_width:64, volume_fog_height:64, volume_fog_depth:48, r_citadel_mboit:false,
mat_viewportscale:0.500000, r_fullscreen_gamma:2.104249, useadvanced:1, aspectratiomode:0,
r_citadel_motion_blur:0, r_low_latency:1, r_light_sensitivity_mode:false,

System Memory:
Memory load: 60%
Total physical memory: 32508.89 MiB
Free physical memory: 12809.39 MiB
Total page file: 32508.89 MiB
Free page file: 2074.80 MiB

ConVars (non-default):

var value default
mobile_fps_limit 999 30
mobile_fps_increase_during_touch false true
fps_max 999 400
fps_max_ui 999 120
sv_unpause_on_console_close true false
snd_mute_losefocus false true
voice_device_override Microphone (Realtek USB Audio)
hostname onions
name onions unnamed
rate 196608 786432
cl_cq_min_queue 1 0
sv_cheats true false
sv_pvs_max_distance 4000 0
r_fullscreen_gamma 2.104249 2.2
hostip -1062717439 0
snd_voipvolume 1.509971 1
sound_device_override Source2SDLDefaultDevice
panorama_console_position_and_size 145.00|10.00|1531.00|300.00
think_limit 0 10
sv_parallel_checktransmit 2 0
citadel_rapid_stamina_regen true false
citadel_crate_respawn_interval -1 300
citadel_crate_early_spawn_delay 5 30
citadel_crate_spawn_initial_delay 60000 600
citadel_hero_demo_no_cooldowns true false
citadel_hero_demo_unlock_flex_slots true false
citadel_hero_demo_enable_fast_stamina true false
citadel_hero_testing_enabled true false
citadel_hero_testing_infinite_money true false
citadel_allow_purchasing_anywhere true false
citadel_ability_cooldown_max 2 0
citadel_crosshair_color_r 160 255
citadel_crosshair_color_b 0 255
citadel_crosshair_pip_gap -1 3
citadel_crosshair_pip_height 10 16
citadel_crosshair_pip_opacity 1 0.4
citadel_crosshair_dot_opacity 1 0.7
citadel_crosshair_dot_outline_opacity 1 0.9
citadel_hero_roster 7,1
citadel_hero_roster_high_priority 8
last_viewed_announce_id 26 -1
citadel_show_npe_modal false true
sensitivity 0.74 1.25
fov_desired 100 75
zoom_sensitivity_ratio 1.2 1
cl_updaterate 128 20
cl_interp_ratio 1 2
deadlock_early_development_warning_disabled true false
cl_citadel_ability_alt_cast_mode 1 2
default_fov 75 70
citadel_invert_ping_type true false
citadel_new_player_progress 14 0

Console History (reversed)

1616(1217.973180): SOS PRINT STRING: print_priority_blocking: mcginnis_parry_02_hero_3d - blocked, at or below threshold.
1615(1217.953347): WARNING: Sound parameters given with a different recipient filter than previous
1614(1213.320825): Idle Time <3.00ms - 3601 frames (100.0%), Longest Run - 3601, Avg Run: 3601.0
1613(1213.320822): Frame Time >17.50ms - 571 frames (15.9%), Longest Run - 2, Avg Run: 1.0
1612(1213.320819): Performant - 0 frames (0.0%), Longest Run - 0, Avg Run: 0.0
1611(1213.320815): Avg Frame: 16.67ms, Avg Idle: 0.00ms - 3601 frames
1610(1209.821235): Certificate expires in 46h17m at 1726354200 (current time 1726187557), will renew in 44h17m
1609(1193.337091): CGameParticleManager::SetParticleControlEnt: Unable to lookup attachment "" on model "models/heroes_staging/engineer/engineer.vmdl" for entity "player"
1608(1192.987197): CGameParticleManager::SetParticleControlEnt: Unable to lookup attachment "" on model "models/heroes_staging/engineer/engineer.vmdl" for entity "player"
1607(1153.303295): Idle Time <3.00ms - 3600 frames (100.0%), Longest Run - 3600, Avg Run: 3600.0
1606(1153.303292): Frame Time >17.50ms - 690 frames (19.2%), Longest Run - 2, Avg Run: 1.0
1605(1153.303290): Performant - 0 frames (0.0%), Longest Run - 0, Avg Run: 0.0
1604(1153.303285): Avg Frame: 16.67ms, Avg Idle: 0.00ms - 3600 frames
1603(1093.303142): Idle Time <3.00ms - 3600 frames (100.0%), Longest Run - 3600, Avg Run: 3600.0
1602(1093.303139): Frame Time >17.50ms - 656 frames (18.2%), Longest Run - 2, Avg Run: 1.0
1601(1093.303137): Performant - 0 frames (0.0%), Longest Run - 0, Avg Run: 0.0
1600(1093.303132): Avg Frame: 16.67ms, Avg Idle: 0.00ms - 3600 frames
1599(1091.519841): CGameParticleManager::SetParticleControlEnt: Unable to lookup attachment "" on model "models/heroes_staging/engineer/engineer.vmdl" for entity "player"
1598(1090.969458): CGameParticleManager::SetParticleControlEnt: Unable to lookup attachment "" on model "models/heroes_staging/engineer/engineer.vmdl" for entity "player"
1597(1074.520953): Unhandled server side animation event 'AE_MELEE_ATTACK'(47) for player (155)
1596(1071.621161): Unhandled server side animation event 'AE_MELEE_ATTACK'(47) for player (155)
1595(1071.498053): Failed loading resource "sounds/gameplay/melee/impact_target_02.vsnd_c" (ERROR_FILEOPEN: File not found)
1594(1071.498045): Failed loading resource "sounds/gameplay/melee/impact_target_04.vsnd_c" (ERROR_FILEOPEN: File not found)
1593(1071.471371): CGameParticleManager::SetParticleControlEnt: Unable to lookup attachment "" on model "models/heroes_staging/engineer/engineer.vmdl" for entity "player"
1592(1071.471346): CGameParticleManager::SetParticleControlEnt: Unable to lookup attachment "" on model "models/heroes_staging/engineer/engineer.vmdl" for entity "player"
1591(1062.453391): Unhandled server side animation event 'AE_MELEE_ATTACK'(47) for player (155)
1590(1062.331185): Failed loading resource "sounds/gameplay/melee/impact_target_03.vsnd_c" (ERROR_FILEOPEN: File not found)
1589(1062.331121): Failed loading resource "sounds/gameplay/melee/impact_target_01.vsnd_c" (ERROR_FILEOPEN: File not found)
1588(1047.036270): CGameParticleManager::SetParticleControlEnt: Unable to lookup attachment "" on model "models/heroes_staging/engineer/engineer.vmdl" for entity "player"
1587(1045.886617): CGameParticleManager::SetParticleControlEnt: Unable to lookup attachment "" on model "models/heroes_staging/engineer/engineer.vmdl" for entity "player"
1586(1036.437543): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #316/item_xp
1585(1036.387957): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #316/item_xp
1584(1036.153761): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #316/item_xp
1583(1036.086910): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #316/item_xp
1582(1035.970471): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #316/item_xp
1581(1034.604554): Bullet Hit Mismatch: client hit entity#126/player, server hit #0/worldent
1580(1034.571154): Bullet Hit Mismatch: client hit entity#126/player, server hit #0/worldent
1579(1034.287135): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #315/item_xp
1578(1033.303190): Idle Time <3.00ms - 3600 frames (100.0%), Longest Run - 3600, Avg Run: 3600.0
1577(1033.303187): Frame Time >17.50ms - 809 frames (22.5%), Longest Run - 3, Avg Run: 1.0
1576(1033.303184): Performant - 0 frames (0.0%), Longest Run - 0, Avg Run: 0.0
1575(1033.303179): Avg Frame: 16.67ms, Avg Idle: 0.00ms - 3600 frames
1574(1032.503914): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #308/item_xp
1573(1028.370868): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #300/item_xp
1572(1020.487830): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #315/item_xp
1571(1018.436438): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #308/item_xp
1570(1018.387398): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #308/item_xp
1569(1018.086398): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #308/item_xp
1568(1016.236679): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #305/item_xp
1567(1014.336799): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #300/item_xp
1566(1006.371117): Bullet Hit Mismatch: client hit entity#0/worldent, server hit #315/item_xp
1565(1002.471198): CLocalize::FindSafe failed to localize: Vampiric Burst
1564(1002.470412): CLocalize::FindSafe failed to localize: Duration
1563(1002.470252): CLocalize::FindSafe failed to localize: Ammo
1562(1002.469997): CLocalize::FindSafe failed to localize: Fire Rate
1561(1002.469848): CLocalize::FindSafe failed to localize: Bullet Lifesteal
1560(1002.469478): CLocalize::FindSafe failed to localize: Bonus Health
1559(1002.469266): CLocalize::FindSafe failed to localize: Weapon Damage
1558(1002.469039): CLocalize::FindSafe failed to localize: Move Speed
1557(1002.255856): CLocalize::FindSafe failed to localize: Ricochet
1556(1002.255443): CLocalize::FindSafe failed to localize: Ricochet Range
1555(1002.255294): CLocalize::FindSafe failed to localize: Ricochet Targets
1554(1002.255115): CLocalize::FindSafe failed to localize: Ricochet Damage
1553(1002.254811): CLocalize::FindSafe failed to localize: Bonus Health
1552(1002.254611): CLocalize::FindSafe failed to localize: Fire Rate
1551(1002.254401): CLocalize::FindSafe failed to localize: Ammo
1550(1002.234109): CLocalize::FindSafe failed to localize: Ricochet
1549(1002.233677): CLocalize::FindSafe failed to localize: Ricochet Range
1548(1002.233532): CLocalize::FindSafe failed to localize: Ricochet Targets
1547(1002.233357): CLocalize::FindSafe failed to localize: Ricochet Damage
1546(1002.233049): CLocalize::FindSafe failed to localize: Bonus Health
1545(1002.232842): CLocalize::FindSafe failed to localize: Fire Rate
1544(1002.232624): CLocalize::FindSafe failed to localize: Ammo
1543(1002.195707): CLocalize::FindSafe failed to localize: Ricochet
1542(1002.195133): CLocalize::FindSafe failed to localize: Ricochet Range
1541(1002.194983): CLocalize::FindSafe failed to localize: Ricochet Targets
1540(1002.194812): CLocalize::FindSafe failed to localize: Ricochet Damage
1539(1002.194512): CLocalize::FindSafe failed to localize: Bonus Health
1538(1002.194319): CLocalize::FindSafe failed to localize: Fire Rate
1537User Mini Dump File: Only registers, stack and portions of memory are available

Symbol search path is: srv*
Executable search path is:
Windows 10 Version 22631 MP (32 procs) Free x64
Product: WinNt, suite: SingleUserTS
Debug session time: Thu Sep 12 20:32:48.000 2024 (UTC - 4:00)
System Uptime: not available
Process Uptime: 0 days 0:20:20.000
................................................................
................................................................
................................................................
...
Loading unloaded module list
............
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(74ec.4e5c): Access violation - code c0000005 (first/second chance not available)
For analysis of this file, run !analyze -v
ntdll!NtGetContextThread+0x14:
00007ff8`36d52044 c3 ret
0:000> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************


KEY_VALUES_STRING: 1

Key : AV.Fault
Value: Read

Key : Analysis.CPU.mSec
Value: 811

Key : Analysis.Elapsed.mSec
Value: 7433

Key : Analysis.IO.Other.Mb
Value: 36

Key : Analysis.IO.Read.Mb
Value: 1

Key : Analysis.IO.Write.Mb
Value: 62

Key : Analysis.Init.CPU.mSec
Value: 687

Key : Analysis.Init.Elapsed.mSec
Value: 1300498

Key : Analysis.Memory.CommitPeak.Mb
Value: 133

Key : Failure.Bucket
Value: INVALID_POINTER_READ_c0000005_inputsystem.dll!Unknown

Key : Failure.Hash
Value: {884cf03e-2f55-7fb9-c5aa-f1249afacf6b}

Key : Timeline.Process.Start.DeltaSec
Value: 1220


FILE_IN_CAB: project8_2024_0912_203247_0_accessviolation.mdmp

NTGLOBALFLAG: 0

CONTEXT: (.ecxr)
rax=00007fffe6b960d0 rbx=00007fffe6915ec0 rcx=00007ff8109fb7d0
rdx=00000000ffffffff rsi=00007fffe67168e8 rdi=00007ff8109fb7e0
rip=00007ff8109d2100 rsp=000000e68bc7d1b8 rbp=00007ff8109fb7e0
r8=0000000000000000 r9=0000000000989680 r10=0624dd2f1a9fbe77
r11=000000140217c36d r12=0000000000000000 r13=00000060be923bb4
r14=00007fffe6b960d0 r15=00000060be93c254
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
inputsystem!CreateInterface+0x7f0:
00007ff8`109d2100 48895c2408 mov qword ptr [rsp+8],rbx ss:000000e6`8bc7d1c0=00000060be923bb4
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007ff8109d2100 (inputsystem!CreateInterface+0x00000000000007f0)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: ffffffffffffffff
Attempt to read from address ffffffffffffffff

PROCESS_NAME: project8.exe

READ_ADDRESS: ffffffffffffffff

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 0000000000000000

EXCEPTION_PARAMETER2: ffffffffffffffff

STACK_TEXT:
000000e6`8bc7d1b8 00007ff8`109c51d0 : 00000060`be923bb4 00007fff`e67168e8 00000060`be923bb4 000000e6`8bc7d510 : inputsystem!CreateInterface+0x7f0
000000e6`8bc7d1c0 00007ff8`109c567e : 00007ff8`109fb7e0 00007fff`e67168e8 00007ff8`109fb7e0 00000000`00000000 : inputsystem+0x51d0
000000e6`8bc7d2b0 00007fff`e62b0f17 : 00000060`be923b01 000000e6`8bc7d360 00007fff`e67168e8 00007fff`8f7b0aad : inputsystem+0x567e
000000e6`8bc7d2e0 00007fff`e62ab947 : 00000060`be923ba8 000001ff`11182a00 000000e6`8bc7d610 00007fff`e691cf34 : engine2!Source2Main+0x28657
000000e6`8bc7d380 00007fff`e62a357a : 00007fff`e6637ba0 00007fff`e6637ba0 000000e6`8bc7e388 00007fff`e6915ec0 : engine2!Source2Main+0x23087
000000e6`8bc7d3e0 00007fff`e62a40de : 000000e6`8bc7d410 000001ff`11182b80 00007fff`e67168e8 00007fff`e65278e8 : engine2!Source2Main+0x1acba
000000e6`8bc7d5b0 00007fff`e628d490 : 00000000`00000001 00000000`00000000 00000000`00000780 00007fff`00000438 : engine2!Source2Main+0x1b81e
000000e6`8bc7e280 00007fff`e6284452 : 00000002`00000000 00000000`00000001 00000000`00000000 00000000`00000000 : engine2!Source2Main+0x4bd0
000000e6`8bc7e4e0 00007fff`e6285ac2 : 00007fff`00000000 00000000`00000003 000000e6`8bc7d9d0 000001fe`b6660320 : engine2+0x204452
000000e6`8bc7e600 00007fff`e6288aaa : 00007ff6`b7bf0000 00000000`00000000 00000000`0000000a 000001fe`b3039ed5 : engine2+0x205ac2
000000e6`8bc7ea50 00007ff6`b7bf4680 : 00007fff`e62888c0 000001fe`b3039ed5 00000000`00000000 00007ff6`b7bf0000 : engine2!Source2Main+0x1ea
000000e6`8bc7eae0 00007ff6`b7bfe2ce : 00000000`0000000a 00000000`00000000 00000000`00000000 000001fe`b2f40000 : project8+0x4680
000000e6`8bc7fa50 00007ff8`3614257d : 00000000`00000000 00000000`00000000 00000000`00000000 00007fff`f3a00000 : project8!BSecureAllowed+0x9bae
000000e6`8bc7fa90 00007ff8`36d0af28 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x1d
000000e6`8bc7fac0 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x28


STACK_COMMAND: ~0s; .ecxr ; kb

SYMBOL_NAME: inputsystem+7f0

MODULE_NAME: inputsystem

IMAGE_NAME: inputsystem.dll

FAILURE_BUCKET_ID: INVALID_POINTER_READ_c0000005_inputsystem.dll!Unknown

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

FAILURE_ID_HASH: {884cf03e-2f55-7fb9-c5aa-f1249afacf6b}

Followup: MachineOwner
---------

0:000> .ecxr
rax=00007fffe6b960d0 rbx=00007fffe6915ec0 rcx=00007ff8109fb7d0
rdx=00000000ffffffff rsi=00007fffe67168e8 rdi=00007ff8109fb7e0
rip=00007ff8109d2100 rsp=000000e68bc7d1b8 rbp=00007ff8109fb7e0
r8=0000000000000000 r9=0000000000989680 r10=0624dd2f1a9fbe77
r11=000000140217c36d r12=0000000000000000 r13=00000060be923bb4
r14=00007fffe6b960d0 r15=00000060be93c254
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
inputsystem!CreateInterface+0x7f0:
00007ff8`109d2100 48895c2408 mov qword ptr [rsp+8],rbx ss:000000e6`8bc7d1c0=00000060be923bb4
 

Attachments

I fixed my crashing. I did a bunch of things but I think it might be from changing ram settings in bios to very conservative and using stretched/100%. Also backdated my nvidia driver.
 
Back
Top