Detanup01 / gbe_fork

Fork of https://gitlab.com/Mr_Goldberg/goldberg_emulator
https://gitlab.com/Mr_Goldberg/goldberg_emulator
GNU Lesser General Public License v3.0
135 stars 39 forks source link

imgui.h assertion failed #51

Open v1ckxy opened 3 days ago

v1ckxy commented 3 days ago

// First of all: Thank you for your work.

So I had just found that using the experimental version with the overlay, in a complete random way, throws this error from time to time when moving around the overlay. If you click on ignore it will keep working, but I'm unable to figure out why the lib throws the error in first place. šŸ˜‘

Assertion failed!

Program: [...]\steam_api64.dll

File: gbe_fork\build\deps\win\vs2022\...\imgui.h
Line: 2078

Expression: i>=0 && i < Size

image

I was checking imgui.h and it looks like the library had a LOT of commits in the last regarding that file in the last weeks: https://github.com/ocornut/imgui/commits/cb16568fca5297512ff6a8f3b877f461c4323fbe/imgui.h

Including:

I would try it if it weren't for the fact that I'm going to be a few days without access to VS or a compiler :S

Detanup01 commented 3 days ago

Yup I having the same problem in some times. Try not using any Overlay things (ie: Rivatuner, GeForce Experience) and maybe will work. Some games works, some not, its a mistery.

In GitHub if you enable Actions you can build it without need of VS, complier.

v1ckxy commented 3 days ago

I think is related with activity inside the overlay; Moving inside in-out the app window and hovering around elements/buttons ends up triggering it, I saw that the cursor tends to be placed in a fixed place -where the game cursor is- when moving out of the window, but I don't know how it can trigger the issue.

Regarding actions, thanks, I saw it a few hours afterwards opening the issue; I've compiled a new library (size differs so I'll think has new dependencies inside it -as I don't fully understand how the workflow is done, if gets the latest build of the deps or not, never used this thing inside github before), but I was testing it and looks like has the same assertion problem.

As I don't have the debugger installed here, I'm SOL right now :D

Regards!

// There are no overlays running in this env, right now I'm testing on a mobile device so everything's installed to a minimum.

otavepto commented 3 days ago

what appid caused this?

v1ckxy commented 2 days ago

1702330

BTW... I think is related with the mouse cursor. When the error triggers, app cursor becomes dettached from the overlay

image

After error, mouse cursor becomes two: System (blue one) and overlay. You need to close overlay, open it again and mouse will be ok again.