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? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
Here is a PR to verify the original hypothesis #187. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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
usize
rather 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
Beta Was this translation helpful? Give feedback.
All reactions