Hello, after a lot of testing, I have finally managed to repro a weird bug that I’ve encountered with the CEF layer when draging and selecting things.
The repro steps are effective to reproduce a CEF freeze, but there are probably other methods to trigger a freeze, I know this because many players are reporting a freeze after accidental drags that are clearly not related to changing window focus, this is just the most convienient way to induce this bug I found.
Repro steps :
- Have a resource that allow selecting things (Example repro : GitHub - Ekinoxx0/nui-hang-repro)
- This resource needs to have SetNuiFocusKeepInput enabled
- Select text, then exit focus of the window, then drag the content (Best replicated while selecting text, spamming “Windows” key and dragging at the same time)
The CEF seems to enter a frozen state, and hangs indefinitly, this will also block dragging on all other windows (like dragging files on Explorer).
This frozen state can be exited if you had nui_devtools window opened before trying the repro, and you focus back on the dev tool window.
The CEF remote debug tool (localhost:13172) will not be accessible during the frozen state.
This CEF frozen state break every resources, not only the one doing the repro.
Example video :
This has been tested on multiple configuration and by multiple players.
I also searched for this specific bug on the Cfx discord, and found a possible match for this bug dating to 02/10/2022 : Discord
Thanks for all your hard work.
Good luck fixing this
I had a hard time finding this repro (players reporting weird behavior without being specific)