Skip to content

Disable rayon threading on Windows#315

Merged
mmerklinger merged 1 commit intomainfrom
cleanup-rayon-threads
Apr 21, 2026
Merged

Disable rayon threading on Windows#315
mmerklinger merged 1 commit intomainfrom
cleanup-rayon-threads

Conversation

@mmerklinger
Copy link
Copy Markdown
Member

@mmerklinger mmerklinger commented Apr 16, 2026

It has been found that in the current implementation the rayon thread pool doesn't terminate its spawned threads in time. This causes in some case a crash of the library on Windows (access violation exception) when the threads later wake up and try to access freed memory.

This PR disables the parallel operation with rayon on Windows, until a solution is found.

@mmerklinger mmerklinger force-pushed the cleanup-rayon-threads branch from 19ed47d to dbfaeff Compare April 16, 2026 12:21
@mmerklinger mmerklinger force-pushed the cleanup-rayon-threads branch from 6ab9698 to a63318f Compare April 20, 2026 08:18
@mmerklinger mmerklinger changed the title Cleanup rayon threads with scope Disable rayon threading on Windows Apr 20, 2026
@mmerklinger mmerklinger force-pushed the cleanup-rayon-threads branch 2 times, most recently from 80dbc5a to 58c7d25 Compare April 20, 2026 08:35
@mmerklinger mmerklinger marked this pull request as ready for review April 20, 2026 08:38
@mmerklinger mmerklinger force-pushed the cleanup-rayon-threads branch from 58c7d25 to ab6836b Compare April 20, 2026 13:02
@mmerklinger mmerklinger merged commit 29c1d69 into main Apr 21, 2026
14 checks passed
@mmerklinger mmerklinger deleted the cleanup-rayon-threads branch April 21, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants