Description of the issue
Looking at some SWAPI logs, I saw the following:
/usr/local/lib/python3.12/site-packages/imap_processing/utils.py:474: RuntimeWarning: overflow encountered in scalar subtract
(src_seq_ctr[idx + 1] - src_seq_ctr[idx] - 1) % counter_max
2026-08-09 12:36:06 - WARNING:imap_processing.utils:Found [2] gap(s) in source sequence counter for APID 1188 at [(10221, 4933), (4974, 4999)] (11119 total missing packets)
Steps to reproduce the issue
No response
Expected vs Actual behavior
No response
Code Snippet (If applicable)
Additional notes, affected areas, and suggested fixes
Suggested fix is to cast the src_seq_ctr to a 32 bit integer before doing the subtraction.
Description of the issue
Looking at some SWAPI logs, I saw the following:
Steps to reproduce the issue
No response
Expected vs Actual behavior
No response
Code Snippet (If applicable)
CodeAdditional notes, affected areas, and suggested fixes
Suggested fix is to cast the src_seq_ctr to a 32 bit integer before doing the subtraction.