You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've thoroughly read the documentations on this issue but still have no clue.
I've searched the current list of Github issues but didn't find any duplicate issues that have been solved.
I've searched the internet with this issue, but haven't found anything helpful.
What happened?
When creating worker pool with latest v2.11.1, regardless using multi pool or single pool.
The option WithPreAlloc(true) will cause panic runtime error: index out of range [0] with length 0 when call ReleaseWithTimeout() first, then call Reboot to reboot released pool.
Actions I've taken before I'm here
What happened?
When creating worker pool with latest v2.11.1, regardless using multi pool or single pool.
The option
WithPreAlloc(true)
will cause panicruntime error: index out of range [0] with length 0
when call ReleaseWithTimeout() first, then callReboot
to reboot released pool.E.g.,
It happens on worker_loop_queue.go:70,
loopQueue.insert
method.Major version of ants
v2
Specific version of ants
v2.11.1
Operating system
Linux
OS version
Debian
Go version
go1.23.2
Relevant log output
Reproducer
How to Reproduce
Steps to reproduce the behavior:
Does this issue reproduce with the latest release?
It can reproduce with the latest release
The text was updated successfully, but these errors were encountered: