Hi,
A few of my players have been reporting a crash with a new upgrade I recently added, however it only happens on some systems and only in one specific scene.
The crash is consistent. It happens every time the player equips that upgrade and enters that specific scene.
The log file point towards a problem with Unity rather than a problem with my game:
========== OUTPUTTING STACK TRACE ==================
0x00007FFB743ECE13 (nvwgf2umx) NVENCODEAPI_Thunk
0x00007FFB743EA5E4 (nvwgf2umx) NVENCODEAPI_Thunk
0x00007FFB7444E789 (nvwgf2umx) NVENCODEAPI_Thunk
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFB742553AA)
0x00007FFB742553AA (nvwgf2umx) (function-name not available)
0x00007FFB745E5395 (nvwgf2umx) NVDEV_Thunk
0x00007FFB745E5148 (nvwgf2umx) NVDEV_Thunk
0x00007FFB7471DCEA (nvwgf2umx) NVDEV_Thunk
0x00007FFB75486C48 (nvwgf2umx) OpenAdapter12
0x00007FFC1D887034 (KERNEL32) BaseThreadInitThunk
0x00007FFC1EAC2651 (ntdll) RtlUserThreadStart
========== END OF STACKTRACE ===========
The code that executes and somehow causes the crash is very simple, and I have no reason to believe it’s the cause - all it’s doing is checking the current scene names against elements in a HashSet.
The helper functions used are used elsewhere in the game too without any problems.
OnStartWithUpgradeEquipped
is the method being called.
private static readonly HashSet<string> ProhibitedLevels = new HashSet<string>
{
ConstantGameData.TownLevelName, ConstantGameData.SubShooterLevelName, ConstantGameData.RocketLevelName
};
protected override void OnStartWithUpgradeEquipped()
{
string levelName = GameManager.Instance.GetLevelNameFromActiveScene();
if (ProhibitedLevels.Contains(levelName)) return;
if (levelName == ConstantGameData.LevelBuilderName && SessionManager.CurrentSessionType == SessionType.Editing) return;
Player.GiveFairy();
}
I have attached a zip file containing the log file, the crash dump and the error log file.
Does anyone know what might be causing this?
FYI I’m using Unity 2019.4.32f1.
7972467–1022853–crash.zip (196 KB)