Skip to content

Assertion failure while waking from sleep on MacOS #5683

@Guistac

Description

@Guistac

Version: 1.89 (Docking)
Back-ends: imgui_impl_glfw imgui_impl_opengl3
OS: MacOS 12.3.1

When waking my machine from sleep while running my app, imgui fails to assert g.PlatformIO.Monitors.Size > 0

imgui/imgui.cpp

Line 8938 in 64b88da

IM_ASSERT(g.PlatformIO.Monitors.Size > 0 && "Platform init didn't setup Monitors list?");

It doesn't do this consistently, there is about a 50% chance it will happen on each sleep wake cycle.
How does disabling this assertion affect the integrity of imgui?
I've currently commented it out and experienced no issues.
I'm curious if anyone experiences the same issue, as I'm currently unable to test it on another system.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions