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

Stackoverflow when disabling fullscreen with focus_animations: 1 #381

Open
fda0 opened this issue Dec 23, 2024 · 0 comments
Open

Stackoverflow when disabling fullscreen with focus_animations: 1 #381

fda0 opened this issue Dec 23, 2024 · 0 comments
Labels
Bug A report of unintended or broken behavior. Debugger Pertains to the debugger.

Comments

@fda0
Copy link

fda0 commented Dec 23, 2024

Problem appears when default.raddbg_user file (example raddbg_config.zip) gets into a state where it has focus_animations: 1.
Then after launching the program and toggling fullscreen off (try pressing ctrl + enter once or twice) the program crashes with stackoverflow.

Screenshot of a callstack:
callstack

This is happening because function os_window_set_fullscreen(OS_Handle handle, B32 fullscreen) calls SetWindowPlacement(window->hwnd, &window->last_window_placement); which triggers os_w32_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) with WM_PAINT message. This triggers a call to update() -> frame() -> rd_frame() -> os_window_set_fullscreen. Calling update() on WM_PAINT causes the endless loop.

Thanks for the cool debugger,
Mateusz

@ryanfleury ryanfleury added Debugger Pertains to the debugger. Bug A report of unintended or broken behavior. labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A report of unintended or broken behavior. Debugger Pertains to the debugger.
Projects
None yet
Development

No branches or pull requests

2 participants