Remotery: Access violation calling Thread32Next when lots of threads present
Remotery version: https://github.com/Celtoys/Remotery/commit/bf7cffb72122dc1a34ea8070c278b0af72ea232c Platform: Windows 10.0.19041 Hardware: Intel® Core™ i9-7980XE (18 Cores 36 Threads) Example project: https://github.com/dougbinks/enkiTSExamples/tree/remotery_issue
Reproduction steps:
- Clone the remotery_issue branch of https://github.com/dougbinks/enkiTSExamples
- Build as per https://github.com/dougbinks/enkiTSExamples/blob/master/README.md#building
- Run enkiTSRemoteryExample.
- On my PC an exception occurs after a few runs of the main loop, on what appears to be the second run of the
GatherThreads
function.
The example has 32 enkiTS task threads created, I found anything >=21 threads caused an issue on my PC.
I note that you don’t call CloseHandle( handle );
, however although I believe this is required as per the documented example it does not fix the issue for me.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 40 (16 by maintainers)
Excellent. That helps a lot.
I have some sequential consistency bugs on 64-bit builds, I think. EnkiTS will help me track them down.
I’ll try and dig more into it when I get time later on since you can’t replicate.
Oh, I see what you mean: https://github.com/Celtoys/Remotery/commit/a640844be94934166835682da981358417fea059