TheCherno / Hazel

Hazel Engine
Apache License 2.0
11.7k stars 1.5k forks source link

When the mouse clicks on the imgui interface, an error message appears: Exception thrown: read access violation.**window** was nullptr. #687

Open hoho965191737 opened 4 days ago

hoho965191737 commented 4 days ago

When I clicked the imgui interface with the mouse, an error occurred; it prompted me Exception thrown: read access violation.windowwas nullptr.; I checked the error stack and found that the ImGuiButtonFlags_NoNavFocus macro definition was executed and ClearActiveID was executed. looking through the call stack it happens because the ClearActiveID() function is called,which inturn calls the SetActiveID() with 0 and NULL as arguments ,i.e. SetActiveID(0, NULL),And this original error occured because in the function SetActiveID

image image

ViktorPopp commented 3 days ago

It seems like you forgot to initialize one of your pointers.

Autodidac commented 1 day ago

can someone tell me is this the Hazel Source? or is it Hazel 2D only? I'm so confused!

ViktorPopp commented 1 day ago

It seems like Hazel2D

VagueLobster commented 1 day ago

When I clicked the imgui interface with the mouse, an error occurred; it prompted me Exception thrown: read access violation.windowwas nullptr.; I checked the error stack and found that the ImGuiButtonFlags_NoNavFocus macro definition was executed and ClearActiveID was executed. looking through the call stack it happens because the ClearActiveID() function is called,which inturn calls the SetActiveID() with 0 and NULL as arguments ,i.e. SetActiveID(0, NULL),And this original error occured because in the function SetActiveID

image image

I've had a similar issue where i had to remove the window-> part of those 2 window->DC.Layouts Maybe either try that or update to a newer version of imgui?