HearthSim / Hearthstone-Deck-Tracker

A deck tracker and deck manager for Hearthstone on Windows
https://hsreplay.net/downloads/
4.61k stars 1.11k forks source link

Battlegrounds Memory Leak leading to silent crash #4557

Open jamiemoles opened 2 weeks ago

jamiemoles commented 2 weeks ago

Expected Behavior

Program to function normally.

Actual Behavior

Program is terminating silently in the background with no error messages. Windows Event Viewer has two entries - one for the .NET runtime, event id 1026 and one for HearthstoneDeckTracker.exe event id 1000.

Steps to reproduce behavior

Problem seems to be with Battlegrounds. Run deck tracker, play battlegrounds, notice at some point no hud is present. Deck tracker icon is present in icon tray but non-responsive.

Log/Screenshots

Application: HearthstoneDeckTracker.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.OutOfMemoryException at System.Windows.Media.MediaContext.CompleteRender() at System.Windows.Media.MediaContext.LeaveInterlockedPresentation() at System.Windows.Media.MediaContext.RemoveChannels() at System.Windows.Media.MediaContext.Dispose() at System.Windows.Media.MediaContext.OnDestroyContext(System.Object, System.EventArgs) at System.EventHandler.Invoke(System.Object, System.EventArgs) at System.Windows.Threading.Dispatcher.ShutdownImplInSecurityContext(System.Object) at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) at System.Windows.Threading.Dispatcher.ShutdownImpl() at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunDispatcher(System.Object) at System.Windows.Application.RunInternal(System.Windows.Window) at System.Windows.Application.Run(System.Windows.Window) at Hearthstone_Deck_Tracker.App.Main()

================================

Faulting application name: HearthstoneDeckTracker.exe, version: 1.29.0.6757, time stamp: 0xa04b832f Faulting module name: KERNELBASE.dll, version: 10.0.19041.4412, time stamp: 0x6d8c3da8 Exception code: 0xe0434352 Fault offset: 0x00140b82 Faulting process ID: 0xcbfc Faulting application start time: 0x01dab8d9029cc0a2 Faulting application path: C:\Users\Jamie\AppData\Local\HearthstoneDeckTracker\app-1.29.0\HearthstoneDeckTracker.exe Faulting module path: C:\Windows\System32\KERNELBASE.dll Report ID: 95cfc2dd-8706-4c62-aff6-5c3b9e0ca11f Faulting package full name: Faulting package-relative application ID:

beheh commented 2 weeks ago

Hey, thanks for the report! After how many games are seeing this?

jamiemoles commented 2 weeks ago

I can't be certain, but it's not a super low number. I will monitor play today and see if I can get you a number.

beheh commented 4 days ago

@jamiemoles For further debugging, could you please upload your entire HDT config folder? You'll find it at C:\Users\<username>\AppData\Roaming\HearthstoneDeckTracker

jamiemoles commented 4 days ago

Yes. it's 300+ MB so I'll upload to Onedrive and drop you a link here.

jamiemoles commented 4 days ago

Give it 10 mins to upload, then you can access here: https://1drv.ms/u/s!AnXPiqttHvQ9hfZ59gUOxTqGYRQGxQ?e=FOq1zK

beheh commented 4 days ago

Great, thanks. You can delete the file again. We'll continue investigating.