wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
10.24k stars 691 forks source link

GetLogicalProcessorInformationEx fails #871

Closed martty closed 2 months ago

martty commented 3 months ago

Hi,

Commit 8f3b312 introduced some CPU topology code that fails on my machine, more specifically _GetLogicalProcessorInformationEx with RelationProcessorDie gives an error of 31 (ERROR_GEN_FAILURE).

https://github.com/wolfpld/tracy/blob/8f3b312b7caf2e974e2879fd063e48f6bf06b6ac/public/client/TracyProfiler.cpp#L3750

Unsure what this means, but the assert triggers afterwards.

My system is OS Name Microsoft Windows 10 Home Version 10.0.19045 Build 19045 Processor AMD Ryzen 9 3900X 12-Core Processor, 3793 Mhz, 12 Core(s), 24 Logical Processor(s)

wolfpld commented 3 months ago

What's the value of res when assert hits?

martty commented 3 months ago

0

wolfpld commented 3 months ago

Can you check what GetLastError() returns after the failed call?

martty commented 3 months ago

That was 31, what I referred to in the first message.

cod3monk3y commented 2 months ago

Just started using Tracy today, and ran into this problem.

Windows 10 Enterprise Version: 22H2 OS build 19045.4780

Tracy commit e26c3434

CMake, installed using FetchContent as recommended in the docs.

FetchContent_Declare (
    tracy
    GIT_REPOSITORY https://github.com/wolfpld/tracy.git
    GIT_TAG master
    GIT_SHALLOW TRUE
    GIT_PROGRESS TRUE 
)
FetchContent_MakeAvailable (tracy)
cod3monk3y commented 2 months ago

Reverting to GIT_TAG "v0.11.1" fixes the issue. As OP mentioned, looks like 8f3b312b Get CPU die information on windows. commit caused the problem for me too.

wolfpld commented 2 months ago

Should be fixed with 8e3d2506.

martty commented 2 months ago

Confirm, fixed for me. Thank you!