Skip to content

[Bug] Crash when displays wake up #2671

@reszy

Description

@reszy

Operating System

Windows

What's the issue you encountered?

Crash when displays wake up after beeing away from computer. Displays are connected via DisplayPort
Crash log:

[13:42:01] [ERROR] [main | Main]                GLFW Error [0x10008] : Win32: Failed to query display settings
[13:42:01] [ERROR] [main | Main]                GLFW Error [0x10008] : Win32: Failed to query monitor DPI
[13:42:01] [ERROR] [libimhex | Main]            Assertion failed: g.PlatformIO.Monitors.Size > 0 && "Platform init didn't setup Monitors list?" at D:/a/ImHex/ImHex/lib/third_party/imgui/imgui/source/imgui.cpp:11501 => ErrorCheckNewFrameSanityChecks
[13:42:03] [FATAL] [libimhex | Main]            Printing stacktrace using implementation 'StackWalk'
[13:42:03] [FATAL] [libimhex | Main]              (D:\a\ImHex\ImHex\lib\trace\source\stacktrace.cpp:118) | getStackTrace
[13:42:03] [FATAL] [libimhex | Main]              (D:\a\ImHex\ImHex\lib\libimhex\source\helpers\debugging.cpp:30) | assertionHandler
[13:42:03] [FATAL] [libimhex | Main]              (D:\a\ImHex\ImHex\lib\third_party\imgui\imgui\include\imgui.h:4130) | NewFrame
[13:42:03] [FATAL] [libimhex | Main]              (D:\a\ImHex\ImHex\main\gui\source\window\window.cpp:412) | frameBegin
[13:42:03] [FATAL] [libimhex | Main]              (D:\a\ImHex\ImHex\main\gui\source\window\window.cpp:202) | fullFrame
[13:42:03] [FATAL] [libimhex | Main]              (D:\a\ImHex\ImHex\main\gui\source\window\window.cpp:302) | loop
[13:42:03] [FATAL] [libimhex | Main]              (D:\a\ImHex\ImHex\main\gui\source\init\run\desktop.cpp:55) | runImHex
[13:42:03] [FATAL] [libimhex | Main]              (D:\W\B\src\mingw-w64\mingw-w64-crt\crt\crtexe.c:237) | __tmainCRTStartup
[13:42:03] [FATAL] [libimhex | Main]              (D:\W\B\src\mingw-w64\mingw-w64-crt\crt\crtexe.c:93) | WinMainCRTStartup
[13:42:03] [FATAL] [libimhex | Main]              (??) | BaseThreadInitThunk
[13:42:03] [FATAL] [libimhex | Main]              (??) | RtlUserThreadStart

How can the issue be reproduced?

  1. Turn off all displays
  2. Turn on display
  3. Crash

ImHex Version

imhex-1.38.1-Windows-Portable-x86_64

ImHex Build Type

  • Nightly or built from sources

Installation type

Portable

Additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions