mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #296] Fails on targets without threading support #131
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @omentic on GitHub (Jan 16, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/296
Hi, upon running a compiled binary on my university's SSH servers, I'm greeted with the following panic:
@bootandy commented on GitHub (Jan 18, 2023):
Interesting thanks.
Does running this beforehand make any difference?
export RAYON_NUM_THREADS=1How about if we use build here https://rust-lang.github.io/hashbrown/rayon_core/struct.ThreadPoolBuilder.html#method.build
in the init_rayon() method in main.rs instead of build_global - does that make any difference ?
@bootandy commented on GitHub (Jan 18, 2023):
I don't know how this would happen - you could also try wrapping the rayon build code in init_rayon and just ignoring the error - it would probably work fine if you did this.
@omentic commented on GitHub (Jan 18, 2023):
export RAYON_NUM_THREADS=1works! And is probably a better solution, given how unlikely it is to not have a threadpool.@kenden commented on GitHub (Feb 6, 2023):
Fist time dust usage:
Linux info:
5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Setting
export RAYON_NUM_THREADS=1works, but it is not the most welcoming message.
@bootandy commented on GitHub (Feb 13, 2023):
I'm not sure why this happens, but I don't see why I can't catch the exception.
I'm not sure where the global thread pool is being initialised from.
Does this branch fix the problem if you use that? @kenden / @j-james
https://github.com/bootandy/dust/pull/310
@omentic commented on GitHub (Feb 13, 2023):
Seems to fix it, yes.
@bootandy commented on GitHub (Feb 19, 2023):
Great I'll clean it up and merge it in and re-release
@bootandy commented on GitHub (Mar 14, 2023):
https://github.com/bootandy/dust/pull/310