Attempt to add with overflow: producer.rs line 234 #186
Replies: 5 comments 6 replies
|
Can you please provide the program to reproduce the issue? |
Here is a function that will cause it. I have an external loop that is using the mpsc channel to feed messages to the producer to send into rabbitmq. Unfortunately after a couple of seconds the threads will start crashing with the error |
|
@Gsantomaggio I have enabled Discussions for this repository. This problem is not very well understood yet, and that's exactly how we use Discussions in every other repo in this org. |
|
Here is a PR to verify the original hypothesis #187. |
|
Hi @DataFrogman i think in this case there are a lot tasks in the runtime trying to send messages in batch . I would in case try to reduce the number of talks spawned. You can try to make the Thanks |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I have run into an integer overflow error in producer.rs, it appears that the 'val' created on line 232 should be set to
usizerather than determined by the compiler.Reproduction steps
Expected behavior
Integers to be allocated of the maximum necessary size, potentially at usize maximum.
Additional context
No response
All reactions