Skip to content

Windows OS.get_unique_id() bug #106012

@hex010

Description

@hex010

Tested versions

Git commit hash: 931820d
Git commit hash short: 931820d

System information

Windows 10 - Godot Engine v4.5.dev.custom_build.931820d33 Vulkan 1.4.303 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce RTX 4080 SUPER

Issue description

Hello. I got the issue with OS.get_unique_id(). The issue persists only on Windows machine (on Mac machine it is fine). After I print() the value of OS.get_unique_id(), Godot stops displaying any further output in the console (see image 1). However, if I don't print OS.get_unique_id() then all other print() statements will be displayed in the console as expected, like print("HELLO") (see image 2). I also send the value of OS.get_unique_id() to the server and print it there (see Image 3). What I noticed, that the string has some strange character at the end. I suspect that this character might be causing the Godot console to behave incorrectly and suppress further output. Additionally, I checked the log file (see image 4) and it does contain the output of print("HELLO"), even after printing OS.get_unique_id(). However, it also includes that mysterious trailing character. Could this be a bug? Also, why is the unique Windows ID enclosed in curly brackets {}?

Image
Image
Image
Image

Steps to reproduce

Simply write the code as shown in Image 1 (uploaded in the "Issue Description") or use the provided demo project, then check the console log - print("HELLO") will not be visible. Also, check logs and you will see that Windows unique ID contains a special character at the end. Also, a unique Windows ID is enclosed in curly brackets

Minimal reproduction project (MRP)

As you can see in this demo project, "HELLO" is not being printed. Also, the length is shown as 39, but it's actually 38 (due to a hidden character at the end). Additionally, the unique Windows ID is enclosed in curly brackets.
Demo project: test-device-unique-id.zip

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Unassessed

    Status

    For team assessment

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions