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

Application crashing after waking up from sleep mode #61

Closed
ExpressionlessCode opened this issue Dec 9, 2021 · 33 comments
Closed

Application crashing after waking up from sleep mode #61

ExpressionlessCode opened this issue Dec 9, 2021 · 33 comments

Comments

@ExpressionlessCode
Copy link

The application is open in the system tray but I notice when I go to launch a game that sometimes the application has crashed and is no longer running. I have to manually open it but I can't reproduce this consistently, it appears to just crash randomly in the background with no errors.

I have enabled the logfile and will update this once I experience the "crash" again, let me know how I can get any other useful information over to you.

@ExpressionlessCode
Copy link
Author

Attached the log file but it doesn't show any crash information. Seems to crash when I wake the computer up from sleep
AutoHDR.log
.

@RavenMacDaddy
Copy link

AutoHDR.log
AutoHDR.exe.zip
UserSettings.zip

Can also confirm that it crashes whenever I'm switching monitor, which has been discussed in another issue.

@GODzillaGSPB
Copy link

Can confirm, it does this when switching monitors. I'm currently playing RDR2 on my TV for better HDR and more immersion and use Auto HDR to switch on HDR. When I exit the game, AutoHDR switches off HDR as it should. And then I switch back to my pc monitor....and AutoHDR crashes.

Which is funny because I would've closed AutoHDR anyway. So...a feature maybe, can it read my mind? :D

@Codectory
Copy link
Owner

Fixed in 1.7.17

Codectory added a commit that referenced this issue Dec 12, 2021
[Changes]
- More monitor information

[Bug fixes}
- Application crashing? #61
- Closing applications didn't worked properly
@ExpressionlessCode
Copy link
Author

This is still happening for me on 1.7.17.

Waking my computer from sleep causes the application to crash.

@Codectory
Copy link
Owner

Please send me a log and give me the time you waked up your pc. Monitor swithc doesn't cause AutoHDR to crash anymore, but this is another issue.

@Codectory Codectory reopened this Dec 14, 2021
@Codectory Codectory changed the title Application crashing? Application crashing after waking up from sleep mode Dec 14, 2021
@ExpressionlessCode
Copy link
Author

Sure, log is attached. The computer was woken from sleep at 16:57
AutoHDR.log
.

Codectory added a commit that referenced this issue Dec 15, 2021
[Bug fixes]
- Application crashing after waking up from sleep mode #61
@Codectory
Copy link
Owner

Please test again with 1.7.19

@ExpressionlessCode
Copy link
Author

Still crashing.
AutoHDR.log

@Codectory
Copy link
Owner

Does it work afte restart?

@Codectory
Copy link
Owner

@ExpressionlessCode
Copy link
Author

If I restart or start my computer from cold. The application is open in Task Manager but there is no tray icon, yet when I open a game it toggles HDR on and the tray icon then appears.

I then closed the game, HDR stayed enabled the AutoHDR crashed.

Reopened AutoHDR, opened the game again and HDR mode didn't get enabled and AutoHDR crashed again.

I've then reopened AutoHDR and it's working as intended. Getting some really inconsistent behaviour with this latest version.

AutoHDR.log

@ExpressionlessCode
Copy link
Author

I have just done another sleep/wake test and AutoHDR has remained open without crashing.

@Codectory
Copy link
Owner

with 1.7.20?

@ExpressionlessCode
Copy link
Author

ExpressionlessCode commented Dec 15, 2021

1.7.19. Can't see .20 yet.

@Codectory
Copy link
Owner

image

@ExpressionlessCode
Copy link
Author

Ah, didn't see that message. Will test and report back.

@ExpressionlessCode
Copy link
Author

This is an example of the "restart/cold start" scenario:
image

Application is open but no tray icon, attached the log for this point.
AutoHDR.log

It seems to take about 3 minutes to initialize. Here's the log after the tray icon has appeared.
AutoHDR.log

Not a big deal that there is a delay but just worth mentioning.

Now after it's initialized and I open up a game, it toggled HDR on, but when closing the game the application crashed leaving HDR enabled. Log attached after the crash.
AutoHDR.log

@Codectory
Copy link
Owner

Did you closed AutoHDR between these to entries?
2021.12.15 13:55:56:6573967 Info: Settings loaded
2021.12.15 13:55:56:6573967 Info: Initializing...

@Codectory
Copy link
Owner

Please try this one and send me the logs;
Release_AutoHDR_1.7.21_x64.zip
Release_AutoHDR_1.7.21_x86.zip

@ExpressionlessCode
Copy link
Author

Did you closed AutoHDR between these to entries? 2021.12.15 13:55:56:6573967 Info: Settings loaded 2021.12.15 13:55:56:6573967 Info: Initializing...

No, I did not touch AutoHDR. I left it sitting open until it fully intialized.

Please try this one and send me the logs; [Release_AutoHDR_1.7.21_x64.zip]

Will try this now.

@ExpressionlessCode
Copy link
Author

Here is the log after a "restart/cold boot". Seems to be loading up quickly now, although there is an error in the log.
AutoHDR.log

HDR was left enabled by mistake, opening a game caused AutoHDR to crash.
AutoHDR.log

@ExpressionlessCode
Copy link
Author

ExpressionlessCode commented Dec 15, 2021

Tested again with HDR off this time. Fresh restart and again it's taking a few minutes for the tray icon to appear
AutoHDR.log

Tray icon is now loaded here
AutoHDR.log

Opening a game and it switched to HDR, closing the game disabled HDR and the application did not crash. So it's working as expected there.

But it crashed after going to sleep and waking up.
AutoHDR.log

@Codectory
Copy link
Owner

@ExpressionlessCode
Copy link
Author

Seemed to load up instantly after a restart but when launching a game it crashed and didn't enable HDR.
AutoHDR.log

I reopened AutoHDR, loaded a game and again HDR wasn't enabled and the application crashed.
AutoHDR.log

@Codectory
Copy link
Owner

Do you use audio actions? I removed them for now, because they are a little bit buggy.
So the steps were:

  1. Start AutoHDR
  2. Sleep
  3. Resume
  4. Reopen AutoHDR
  5. Launch game directly
  6. AutoHDR crashed

Is that correct?

@ExpressionlessCode
Copy link
Author

ExpressionlessCode commented Dec 15, 2021

Nope, no audio actions. At this point i'm doing the following actions, I haven't tested the Sleep/Wake function yet as I can't even get .22 to work without crashing when I load a game.

Steps are:

  1. Restart computer
  2. Login
  3. Load game
  4. AutoHDR crashes and HDR is not enabled

If I test the Sleep/Wake function, the application is not crashing on .22 at present. But the app doesn't actually work (crashes when opening a game and no HDR enabled etc.)
AutoHDR.log

I just tested the main functionality of the application again and it was:

  1. Launch game
  2. HDR get's enabled
  3. AutoHDR crashes.
    AutoHDR.log

@Codectory
Copy link
Owner

Alright, so the crash is not related to sleep mode. Please send me you UserSettings.json

@ExpressionlessCode
Copy link
Author

ExpressionlessCode commented Dec 15, 2021

Sure, sleep mode doesn't seem to be triggering a crash anymore. But the application seems to crash when opening a game, sometimes HDR get's enabled before the crash, sometimes it doesn't enable HDR before crashing.
AutoHDR.log

UserSettings.txt

Had to rename it to .txt to upload here.

@Codectory
Copy link
Owner

Can you test other games?

@ExpressionlessCode
Copy link
Author

ExpressionlessCode commented Dec 15, 2021

Okay, even stranger. Other games seem to work as expected...
AutoHDR.log

I tried launching Halo Wars 2 after Halo Infinite and it crashed without enabling HDR. Weird as the application used to work fine with Halo Wars 2 before

@Codectory
Copy link
Owner

So just to make it clear. AutoHDR crashes, not Halo Wars 2 right?

@ExpressionlessCode
Copy link
Author

Yes, AutoHDR is crashing. Halo Wars 2 doesn't crash.

Codectory added a commit that referenced this issue Dec 21, 2021
[New]
- Change color depth (Nvidia users only)
- Little UI overhaul

[Changes]
- Audio actions are disabled for now, because the implementation is really buggy

[Bug fixes]
-Application crashing after waking up from sleep mode #61
res2k pushed a commit to res2k/AutoHDR that referenced this issue Apr 3, 2022
[Changes]
- More monitor information

[Bug fixes}
- Application crashing? Codectory#61
- Closing applications didn't worked properly
res2k pushed a commit to res2k/AutoHDR that referenced this issue Apr 3, 2022
[Bug fixes]
- Application crashing after waking up from sleep mode Codectory#61
res2k pushed a commit to res2k/AutoHDR that referenced this issue Apr 3, 2022
[New]
- Change color depth (Nvidia users only)
- Little UI overhaul

[Changes]
- Audio actions are disabled for now, because the implementation is really buggy

[Bug fixes]
-Application crashing after waking up from sleep mode Codectory#61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants