Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random crashers few turns into a BG game #4601

Closed
gilbosco opened this issue Dec 24, 2024 · 15 comments
Closed

Random crashers few turns into a BG game #4601

gilbosco opened this issue Dec 24, 2024 · 15 comments

Comments

@gilbosco
Copy link

Expected Behavior

I would expect tracker not to freeze and crash

Actual Behavior

Within just few turns, HDT has been crashing consistently in my games of BG

Steps to reproduce behavior

No response

Log/Screenshots

hdt_log_1735031314.txt
hdt_log_1735029731.txt
hdt_log_1735027689.txt
hdt_log_1734956300.txt

@gilbosco gilbosco added the bug label Dec 24, 2024
@beheh
Copy link
Contributor

beheh commented Dec 25, 2024

Hello,

Unfortunately your logs do not contain any crash information, so presumably you don't get the crash window?

What you could try instead is this:

  1. After HDT crashes, please open the Windows start menu and search for the "Event Viewer"
  2. On the left, navigate to Windows Logs > Application
  3. In the central list near the top of the screen, check if there's a recent Error with the source ".NET Runtime". Click it.
  4. At the bottom of the screen in the General tab there should be a read-only text field. The error should start with "Application: HearthstoneDeckTracker.exe"...
  5. Copy past that entire text field and send it to us.

@gilbosco
Copy link
Author

Thank you, i tried to follow your path but unfortunately nothing appears in the Event viewer with the "error" tag or related to "HearthstoneDeckTracker..".I looked in multiple crash instances.

I noticed that there is a crash report windows that is opened but that is unaccesible since the whole application crashed. Attached is a screenshot.

20250108_120814867_iOS

@gilbosco
Copy link
Author

I am facing the same issue in this post: #4599

@gilbosco
Copy link
Author

Adding that I am using an ASUS G16 Zephyrus Laptop with an Intel Ultra 9 185H CPU and an NVIDIA RTX 4070 GPU.
I noticed that this issue with HDT is only happening when Hearthstone is running with the Intel integrated GPU. When using the discrete Nvidia GPU, HDT does not crash.

@YRSB
Copy link

YRSB commented Jan 24, 2025

Hi
I am using an Lenovo ThinkBook X Laptop with Intel Ultra 9 185H CPU and integrated GPU
HDT can work on my laptop, but it crashes every now and then, with intervals ranging from 10 to 30 minutes.
I checked the relevant logs, and they all contain the same content.
I'm not good at English; the above content was translated using Microsoft Copilot.

log:

应用程序: HearthstoneDeckTracker.exe
Framework 版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: System.OutOfMemoryException
在 System.Windows.Media.MediaContext.CompleteRender()
在 System.Windows.Media.MediaContext.LeaveInterlockedPresentation()
在 System.Windows.Media.MediaContext.RemoveChannels()
在 System.Windows.Media.MediaContext.Dispose()
在 System.Windows.Media.MediaContext.OnDestroyContext(System.Object, System.EventArgs)
在 System.EventHandler.Invoke(System.Object, System.EventArgs)
在 System.Windows.Threading.Dispatcher.ShutdownImplInSecurityContext(System.Object)
在 MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
在 MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
在 System.Windows.Threading.Dispatcher.ShutdownImpl()
在 System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
在 System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
在 System.Windows.Application.RunDispatcher(System.Object)
在 System.Windows.Application.RunInternal(System.Windows.Window)
在 System.Windows.Application.Run(System.Windows.Window)
在 Hearthstone_Deck_Tracker.App.Main()

@riQQ
Copy link
Collaborator

riQQ commented Jan 24, 2025

Related #4596

@beheh
Copy link
Contributor

beheh commented Jan 24, 2025

Could anybody affected by this try what's linked in the OP of #4596? I.e. add this Registry key:

Image

@retex12
Copy link

retex12 commented Jan 24, 2025

Hi, I encountered the same problem. Here is my error report.
Имя сбойного приложения: HearthstoneDeckTracker.exe, версия: 1.38.3.6967, метка времени: 0xfd6319b7
Имя сбойного модуля: KERNELBASE.dll, версия: 10.0.19041.5369, метка времени: 0x697f1b86
Код исключения: 0xe0434352
Смещение ошибки: 0x00141722
Идентификатор сбойного процесса: 0x22bc
Время запуска сбойного приложения: 0x01db6ea2b7f38e7c
Путь сбойного приложения: C:\Users\mikhv\AppData\Local\HearthstoneDeckTracker\app-1.38.3\HearthstoneDeckTracker.exe
Путь сбойного модуля: C:\Windows\System32\KERNELBASE.dll
Идентификатор отчета: 6aa77c67-66ce-4f99-98c0-162c88da6be2
Полное имя сбойного пакета:
Код приложения, связанного со сбойным пакетом:

Приложение: HearthstoneDeckTracker.exe
Версия платформы: v4.0.30319
Описание. Процесс был завершен из-за необработанного исключения.
Сведения об исключении: System.OutOfMemoryException
в System.Windows.Media.MediaContext.CompleteRender()
в System.Windows.Media.MediaContext.LeaveInterlockedPresentation()
в System.Windows.Media.MediaContext.RemoveChannels()
в System.Windows.Media.MediaContext.Dispose()
в System.Windows.Media.MediaContext.OnDestroyContext(System.Object, System.EventArgs)
в System.EventHandler.Invoke(System.Object, System.EventArgs)
в System.Windows.Threading.Dispatcher.ShutdownImplInSecurityContext(System.Object)
в MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
в System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
в System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
в System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
в MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
в System.Windows.Threading.Dispatcher.ShutdownImpl()
в System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
в System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
в System.Windows.Application.RunDispatcher(System.Object)
в System.Windows.Application.RunInternal(System.Windows.Window)
в System.Windows.Application.Run(System.Windows.Window)
в Hearthstone_Deck_Tracker.App.Main()

Sry for russian language

@YRSB
Copy link

YRSB commented Jan 25, 2025

Could anybody affected by this try what's linked in the OP of #4596? I.e. add this Registry key:

Image

I tried it, and it works fine.

Edit:
It seems like the problem hasn't been completely resolved. After modifying the registry, I played Hearthstone for over an hour, and HDT didn't crash. I thought I wouldn't encounter any more crashes with HDT. However, just now, it crashed again, and it appears to be at the end of a match, with the same error: System.OutOfMemoryException.

@beheh
Copy link
Contributor

beheh commented Jan 28, 2025

Okay, thanks for testing. We've identified a few potential issues that could cause this and will release an update this week that should address them. I strongly suspect that release will address this issue, but will be happy to hear back afterwards.

@beheh
Copy link
Contributor

beheh commented Jan 28, 2025

Hello,

I have a test build with one fix that might address this issue. There's more fixes and performance improvements on the way, but I'd like to get an early lead on whether this addresses the issue:

https://drive.google.com/file/d/1QJPOH6WTlq9bWuF5VKmKJGTwtXv0gdZM/view?usp=sharing

How to use:

  1. Download the Zip and unpack it anywhere (do not copy it over any existing install).
  2. Run HearthstoneDeckTracker.exe. You may need to explicitly tell Windows to allow this version, as it is not an official release yet.
  3. Play as usual. You hopefully don't get a crash anymore.

If you use the build, I'd be happy to hear how it goes (crash or no crash).

@YRSB
Copy link

YRSB commented Jan 28, 2025

Thank you!

I tried using the HDT beta version provided above to play Hearthstone for nearly two hours, and the good news is that HDT did not crash during this period. The testing time wasn't very long, so I'm not sure if the issue is completely resolved, but if the program crashes again in the future, I will provide feedback to you :)

@gilbosco
Copy link
Author

Hello,

I have a test build with one fix that might address this issue. There's more fixes and performance improvements on the way, but I'd like to get an early lead on whether this addresses the issue:

https://drive.google.com/file/d/1QJPOH6WTlq9bWuF5VKmKJGTwtXv0gdZM/view?usp=sharing

How to use:

1. Download the Zip and unpack it anywhere (do not copy it over any existing install).

2. Run HearthstoneDeckTracker.exe. You may need to explicitly tell Windows to allow this version, as it is not an official release yet.

3. Play as usual. You hopefully don't get a crash anymore.

If you use the build, I'd be happy to hear how it goes (crash or no crash).

Dear beheh, thank you for the support! I tried using the version you published but still got the error/crash first game in, after just few turns.

Below the log from Windows event viewer (it's in Italian, sorry)

Applicazione: HearthstoneDeckTracker.exe
Versione framework: v4.0.30319
Descrizione: il processo è stato terminato a causa di un'eccezione non gestita.
Informazioni sull'eccezione: System.OutOfMemoryException
in System.Windows.Media.MediaContext.CompleteRender()
in System.Windows.Media.MediaContext.LeaveInterlockedPresentation()
in System.Windows.Media.MediaContext.RemoveChannels()
in System.Windows.Media.MediaContext.Dispose()
in System.Windows.Media.MediaContext.OnDestroyContext(System.Object, System.EventArgs)
in System.EventHandler.Invoke(System.Object, System.EventArgs)
in System.Windows.Threading.Dispatcher.ShutdownImplInSecurityContext(System.Object)
in MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
in System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
in System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
in System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
in MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
in System.Windows.Threading.Dispatcher.ShutdownImpl()
in System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
in System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
in System.Windows.Application.RunDispatcher(System.Object)
in System.Windows.Application.RunInternal(System.Windows.Window)
in System.Windows.Application.Run(System.Windows.Window)
in Hearthstone_Deck_Tracker.App.Main()

@beheh beheh marked this as a duplicate of #4605 Jan 29, 2025
@beheh
Copy link
Contributor

beheh commented Jan 29, 2025

I think there's two issues going on here, which made this a little confusing:

  • there's a crash that happens fast whenever you join a game. At this point I suspect this only happening on Intel iGPUs. I'm tracking that over at System.OutOfMemoryException on Intel GPUs #4596.
  • there's a crash that happens after a few hours of playing. I'm about to release a fix for that in v1.38.4.

As such, I will close this issue. If you see a crash every time you start a match of Battlegrounds, especially if you're not on an Intel integrated GPU, please report that over in #4596.

Thanks for all your reports!

@beheh beheh closed this as completed Jan 29, 2025
@gilbosco
Copy link
Author

THank you, I'll look into the 4596 post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants