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

Mouse cursor disappears when hovered over any editor text fields. #93748

Open
PIZZA-ALERT opened this issue Jun 29, 2024 · 16 comments
Open

Mouse cursor disappears when hovered over any editor text fields. #93748

PIZZA-ALERT opened this issue Jun 29, 2024 · 16 comments

Comments

@PIZZA-ALERT
Copy link

Tested versions

  • Reproducible in Godot 4.2.2.stable.
  • Unknown for other versions.

System information

Windows 11 23H2

Issue description

I remember this happening a while ago and stopping, but now it’s started again and I can’t figure out how to fix it.

Basically, my mouse cursor works as normal most of the time, but if I am working in the Godot editor and hover it over any typing field like a search bar in the editor or, most notably, the script terminal, it just disappears. This makes it extremely difficult to code. It randomly started last week while I was working, I have no idea what caused it. There appears to be no mouse or cursor Editor Settings so there doesn’t seem to be a way to easily fix it. I do not have the Windows setting turned on to hide the cursor when typing (I’ve never used that, I hate it), but even if I did, this would not be the exact issue I’m having as it hides the very second it passes into the text field, not the second I type. This only happens in Godot and does not occur in any other program.

I have closed and opened Godot many times since this started, as well as restarted and updated my computer multiple times. I’m running Windows 11 23H2.

This is also posted in the Godot forums. One user has asked me to provide my editor caret settings, I provided them and have not heard back from that user.

Steps to reproduce

I have no idea how to reproduce this as I have no idea what started it. I have no lines in any of my code that controls the mouse or the mouse cursor, in game or in editor.

Minimal reproduction project (MRP)

My project is too large to upload here and I don't know what I can and can't include in the zip in order to reproduce it.

@RadiantUwU
Copy link
Contributor

Hello!
This occurs in the editor right?
We require atleast steps to reproduce or a minimal reproduction project to be able to properly understand what's the issue!
As pointed in the forum post, are you sure you just can't see it (Caret color) and it's not Godot actually hiding the cursor?

@RadiantUwU
Copy link
Contributor

Wait no, i remember having that issue too. I have no idea what happened since it hasn't happened to me in a long time.

@PIZZA-ALERT
Copy link
Author

I have never changed the caret options from default so I do not think it could be that. There is a picture of what my settings look like on the forum reply if you're curious though. I can see the cursor in editor all the time except for when it is covered over a text input area such as the script terminal. It is being hidden by the engine for some unknown reason. That's interesting that you've seen it before...it sure is strange behavior. I'm hopeful that someone who knows how it's reproduced finds this page and sheds light on it eventually, so that it may be solved in a future release.

@vmenezio
Copy link

vmenezio commented Jul 8, 2024

Hey, I have just run into this bug, also on Windows 11, but in Godot 3.5.3, so I'm unsure if the cause is the same.

I tested a bunch of things, and found that the bug seems to only happen when I have a scene open where there is a Viewport whose render_target_update_mode property is set to either UPDATE_WHEN_VISIBLE or UPDATE_ALWAYS. Could you confirm whether that's the case for you too?

Also, here are some other things I have tested:

  • The cursor disappears only on my external monitor, set to: main display, 3840x2160px, 125% scale;
  • The cursor does NOT disappear on my notebook's built-in monitor: NOT main display, 3240x2160px, 200% scale;
  • The cursor disappears no matter what I use as "Display Scale" or "Custom Display Scale" in my Editor Settings;
  • The cursor stops disappearing if I go into the Godot's executable high DPI settings and override the DPI scaling to either "System" or "System (Enhanced)" (both make the editor look awful though);
  • Bafflingly, when I tried recording the bug with ShareX, the cursor disappeared while I recorded, but DID show up in the resulting video file.
  • Only the "text-field pointer" cursor seems to disappear (see below*). Hovering over a function name while holding CTRL, for instance, displays the "hand pointer" cursor normally.

*This is the cursor that does not display for me:
alt text

@Muphet
Copy link

Muphet commented Jul 10, 2024

having similar issue i guess it could be related to this bug:

for me randomly the cursor disappears (blinking indicator) and not the actual mouse cursor. only project reload/engine restart fixes it.

windows 11 23H2, 4.3-beta2

@Ryan-000
Copy link
Contributor

Ryan-000 commented Jul 10, 2024

Okay, this is pretty weird, but for me this only happens when I have HDR enabled in my windows settings, and the Little Camera Preview plugin enabled.

If I disable either one of them, the issue is fixed.

Edit: I can reproduce this in multiple different ways, the only reliable method to get around this is by disabling HDR in windows settings.

Windows 11 23H2, v4.2.2.stable.mono.official

@PIZZA-ALERT
Copy link
Author

PIZZA-ALERT commented Jul 11, 2024

I can reproduce this in multiple different ways, the only reliable method to get around this is by disabling HDR in windows settings.

This is the solution, wow. Wonder what's going on here. Could any devs look into this? I'd like to be able to have HDR on if possible.

@AThousandShips, you've helped me before. Thoughts?

@AThousandShips
Copy link
Member

Not my area, and it's been tagged so someone will try looking into it

@42069RATIOXD
Copy link

This randomly happened for me too, I restarted engine multiple times I still couldn't edit code then I closed engine, closed obs, relaunched engine and now I see my cursor when I drag it to the code field

@Calinou
Copy link
Member

Calinou commented Jul 20, 2024

I can't reproduce this on 4.3.beta3 on any rendering method, regardless of whether I have HDR enabled (and regardless of whether I have RTX HDR enabled).

PC specifications
  • CPU: Intel Core i9-13900K
  • GPU: NVIDIA GeForce RTX 4090
  • RAM: 64 GB (2×32 GB DDR5-5800 C30)
  • SSD: Solidigm P44 Pro 2 TB
  • OS: Windows 11 23H2

What graphics card model do you have? Do you have Auto HDR enabled in the Windows settings? I've used it a while ago and it didn't cause issues on my end either.

Also, did you change any of your Windows mouse cursor appearance settings (such as using a different style or color)?

@kitbdev
Copy link
Contributor

kitbdev commented Jul 24, 2024

@gilbert72
Copy link

I could prevent this from happening by stopping/commenting out functions in shaders that ran TIME functionality.
So introducing TIME into a shader started the 'disappearing' of the cursor in text fields/editors. Removing it stopped it for me...

@Saurus00
Copy link

Saurus00 commented Sep 13, 2024

I had this problem in godot version 4.2 , fixed it by turning off automatically manage color for apps setting in windows advanced display setting. I'm on windows 11 23h2

@imac8t
Copy link

imac8t commented Sep 29, 2024

There is also this problem in the game Turing Complete
It seems that it is also developed with Godot, right?

@imac8t
Copy link

imac8t commented Sep 29, 2024

I had this problem in godot version 4.2 , fixed it by turning off automatically manage color for apps setting in windows advanced display setting. I'm on windows 11 23h2我在 godot 版本 4.2 中遇到了这个问题,通过在 Windows 高级显示设置中关闭自动管理应用程序颜色设置来修复它。我使用的是 Windows 11 23h2

it work !thx!

@GJKiseki
Copy link

I also encountered this issue. The mouse cursor representing input does not appear in the script editor, and after running the game once in the engine, none of the cursors are displayed in the script editor.

I am using Windows 11 version 23H2 and Godot 4.3 stable. As Saurus00 mentioned, turning off the "automatically manage color for apps" setting in the display settings can fix this issue. I hope this bug gets resolved soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests