lucas-emery / rocket-league-gym

A Gym-like environment for Reinforcement Learning in Rocket League
Apache License 2.0
204 stars 48 forks source link

Rocket League Crash on Start? #62

Closed davechurchill closed 1 year ago

davechurchill commented 1 year ago

I am running rlgym for the first time, I have:

I run the following example code given in the rlgym tutorial:

import rlgym
env = rlgym.make()

The rocket league windows appears for a split second, then disappears. Here are the contents of the rocket league log file after running. Any help would be appreciated. I am hard stuck without knowing what could be the cause of this.

Log: Log file open, 26/07/2023 13:08:12
Log: GPsyonixBuildID 230620.44144.425548
Log: Command line: -pipe \\.\pipe\22156 -nomovie -EpicPortal
Init: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
Log:  ... running in INSTALLED mode
Init: Language extension: INT
Init: Language extension: INT
DevConfig: GConfig::LoadFile associated file:  ..\..\TAGame\Config\TAUI.ini
Init: Version: 230620.44144.425548
Init: Compiled (64-bit): Jun 20 2023 14:05:44
Init: Command line: -pipe \\.\pipe\22156 -nomovie -EpicPortal
Init: Base directory: C:\Games\rocketleague\Binaries\Win64\
[0001.01] Log: Purging 30-day cache '..\..\TAGame\Cache\WebCache\*.*'...
[0001.01] Log: Purging 7-day cache '..\..\TAGame\Logs\*.dmp'...
[0001.01] Log: Purging 3-day cache '..\..\TAGame\Logs\*.log'...
[0001.01] Init: Computer: DESKTOP-J42R4E2
[0001.02] Init: User: Dave
[0001.02] Init: CPU Page size=4096, Processors=24
[0001.02] Init: High frequency timer resolution =10.000000 MHz
[0001.02] Init: Memory total: Physical=63.7GB (64GB approx) Pagefile=73.2GB Virtual=131072.0GB
[0001.02] Init: Presizing for 138000 objects not considered by GC, pre-allocating 0 bytes.
[0001.02] Init: Object subsystem initialized
[0001.05] Log: Using feature set PrimeUpdate43
[0001.05] Log: FOnlineSubsystemEOS: EOS version = 1.13.0-24551320
[0001.05] DevOnline: EOS Platform CacheDirectory=C:\Users\Dave\AppData\Local\Rocket League\
[0001.26] Log: Found D3D11 adapter 0: NVIDIA GeForce RTX 4070
[0001.26] Log: Adapter has 12026MB of dedicated video memory, 0MB of dedicated system memory, and 32638MB of shared system memory
[0001.27] Log: Found D3D11 adapter 1: Microsoft Basic Render Driver
[0001.27] Log: Adapter has 0MB of dedicated video memory, 0MB of dedicated system memory, and 32638MB of shared system memory
[0001.27] Log: Shader platform (RHI): PC-D3D-SM5
[0001.30] Breadcrumbs: Startup_PreInit: 1.297
[0001.31] Breadcrumbs: Startup_LoadGlobalShaders: 0.010
[0003.71] Log: ProductDatabase_TA::InitProductLabels  0.00 sec total.
[0003.74] Log: ProductDatabase_TA::UpdateAvailableProducts  0.03 sec total.
[0003.75] Breadcrumbs: Startup_LoadScriptPackages: 2.438
[0004.23] Breadcrumbs: Startup_LoadNonNativePackages: 0.485
[0004.24] Log: 140989 objects as part of root set at end of initial load.
[0004.24] Log: 0 out of 0 bytes used by permanent object pool.
[0004.24] Log: ShaderCache load stats: AccumLoadSeconds=(1.780) ShadersLoaded=(345780) Duplicates=(21250)
[0004.24] Log: Initializing Engine...
[0004.24] Log: BuildID: -1014409113 from GPsyonixBuildID
[0004.28] SystemSettings: Loading PC Settings
[0004.29] Breadcrumbs: Startup_BuildGuidCache: 0.056
[0004.31] Log: Running hardware survey...
[0004.31] Log: Wwise(R) SDK Version 2019.1.1 Build 6977. Copyright (c) 2006-2012 Audiokinetic Inc. / All Rights Reserved.
[0004.35] Breadcrumbs: Startup_ClientInit: 0.059
[0004.78] Log: OS: Microsoft Windows 10 Pro  (19045)
[0004.78] Log: WinSAT: 9.5 [9.5 CPU, 9.9 2D, 9.9 3D, 9.5 Mem, 9.6 Disk]
[0004.78] Log: Processor: 13th Gen Intel(R) Core(TM) i7-13700K (Intel64 Family 6 Model 183 Stepping 1) 16 Cores, 24 Threads
[0004.78] Log: Memory: 32.00GB
[0004.78] Log: Memory: 32.00GB
[0004.78] Log: VideoController: NVIDIA GeForce RTX 4070 (31.0.15.3598)
[0004.78] Log: Network Adapter: Intel(R) Ethernet Controller I226-V
[0004.78] Log: Disk C: 1551.32GB free of 1862.38GB
[0004.78] Log: Disk D: 787.36GB free of 931.50GB
[0004.78] Log: Disk E: 669.22GB free of 931.50GB
[0004.78] Log: Disk F: 825.39GB free of 931.50GB
[0004.78] Log: Disk G: 1473.75GB free of 1862.38GB
[0004.78] Log: Detected 1 GPUs for rendering
[0004.80] Log: Sound Device: Realtek High Definition Audio
[0004.80] Log: Sound Device: USB Audio Device
[0004.80] Log: Sound Device: SSL 2+ USB Audio Device
[0004.80] Log: Sound Device: NVIDIA High Definition Audio
[0004.80] Log: Sound Device: NVIDIA Virtual Audio Device (Wave Extensible) (WDM)
[0004.80] Log: Hardware survey complete in 0.50 seconds.
[0004.80] Breadcrumbs: Startup_CreateViewport: 0.454
[0004.80] DevOnline: Created named interface (RecentPlayersList) of type (Engine.OnlineRecentPlayersList)
[0004.86] ScriptLog: PsyNet using environment DBE_Production Prod
[0004.86] PsyNet: PsyNetConnection_X_0 disabled OSCS_ServiceUnavailable
[0004.86] PsyNetStaticData: HandleCacheExpired
[0004.86] PsyNetStaticData: HandleGetURL URL=(https://config.psynet.gg/v2/Config/BattleCars/-1014409113/Prod/Epic/INT/)
[0004.86] PsyNetStaticData: Blocking sync start
[0004.86] DevOnline: WebRequest_X_0 SEND: https://config.psynet.gg/v2/Config/BattleCars/-1014409113/Prod/Epic/INT/
[0005.10] DevOnline: WebRequest_X_0 RECV: 304 
[0005.10] PsyNetStaticData: Blocking sync complete. Elapsed=0.2395
[0005.10] PsyNetStaticData: HandleDataChanged
[0005.10] ScriptWarning: ScriptWarning, Sound cue could not be found for playlist Esports at index 2
    MusicThemeConfig_TA Transient.Untitled_0.MusicThemeConfig
    Function TAGame.MusicThemeConfig_TA:Apply:0244
Script call stack:
    Function ProjectX.OnlineConfigDispatcher_X:ApplyConfigObject
    Function TAGame.MusicThemeConfig_TA:Apply

[0005.13] Log: ProductDatabase_TA::UpdateAvailableProducts  0.03 sec total.
[0005.46] Log: ProductDatabase_TA::InitProductLabels  0.00 sec total.
[0005.46] PsyNet: PsyNetConnection_X_0 enabled
[0005.47] PsyNetStaticData: UpdateCacheTimerEnabled CacheTimer.bEnabled=(True)
[0005.48] AuthPsyNetVerbose: New auth error. Error 'OSCS_NotConnected'
[0005.48] AuthPsyNetVerbose: OnlinePlayerAuthentication_TA_0 None Unknown|0|0 Logout
[0005.48] PsyNet: PsyNetConnection_X_1 disabled OSCS_NotConnected
[0005.48] AuthPsyNetVerbose: PsyNet connection status changed. Error 'OSCS_NotConnected'
[0005.48] AuthPsyNetVerbose: New auth error. Error 'OSCS_NotConnected'
[0005.48] AuthPsyNetVerbose: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 Logout
[0005.48] ScriptLog: HandleBlockListStatusCreated Status=(PlatformBlockListStatus_0) ControllerId=(0)
[0005.73] Log: === Critical error: ===
Fatal error!

Address = 0x2f67aa33 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2f66ec50 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2f652b4d (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0900 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc64c9 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc6426 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5ac0 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0c8a (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5ac0 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0c8a (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5ac0 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0c8a (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc64c9 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc6426 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5ac0 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0c8a (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc64c9 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc6426 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5ac0 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0c8a (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5ac0 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0c8a (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc64c9 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc6426 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5ac0 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0c8a (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5aea (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0c8a (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc843d (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc202b (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5ac0 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0c8a (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5aea (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece0c8a (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ecc202b (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece5ac0 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ece58c1 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2f0576a5 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2f044833 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2f6c9bce (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2f6c933d (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2f6c93ba (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2f6cfc21 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x2ff52ef6 (filename not found) [in C:\Games\rocketleague\Binaries\Win64\RocketLeague.exe]
Address = 0x9d807614 (filename not found) [in C:\Windows\System32\KERNEL32.DLL]
Address = 0x9dd226b1 (filename not found) [in C:\Windows\SYSTEM32\ntdll.dll]
Address = 0x9dd226b1 (filename not found) [in C:\Windows\SYSTEM32\ntdll.dll]
davechurchill commented 1 year ago

Here is the python console output. It stays like this even after the Rocket League window closes, and hangs until I kill the python.exe process from Task Manager.

(rlgym-3_9) C:\dev\code\ai-proto\src\rlgym>python gymtest.py
Version 1.2.0

    - Deprecated self_play flag, playing against Psyonix agents is no longer supported
    - Added has_jump to PlayerData, which is useful to detect when a flip won't run out
    - Added pre_step() function to ObsBuilder and RewardFunction, useful for pre-calculating stuff each step
    - Added support for changing gamemode without restarting RLGym, see StateSetter.build_wrapper()
    - Added gravity and boost_consumption configuration to rlgym.make()
    - Added update_settings() method to gym, for updating some parts of the config without restarting
    - Added get_obs_space() to ObsBuilder, enables overriding RLGym's automatic obs size detection
    - Added raise_on_crash option to rlgym.make()
    - Added auto_minimize option to rlgym.make()
    - Added boost pickups to event reward - yadaraf
    - Fixed custom bin support in DiscreteAction - Kaiyotech
    - Fixed bug in VelocityBallToGoalReward and VelocityPlayerToBallReward
    - Fixed PlayerData string representation - Carrot

Launching Rocket League, make sure bakkesmod is running.
Launched Epic version
davechurchill commented 1 year ago

edit: solved

python 3.9.17 was installing rlgym 1.2.0

fixed by switching to python 3.8.17 which installed rlgym 1.2.1