Skip to content

HdrHistogram.encode() crashes #52

@saifjarboui

Description

@saifjarboui

os : windows
python 3.11

  File "C:\Users\saifeddine.jarboui\AppData\Roaming\JetBrains\PyCharmCE2024.2\scratches\scratch_4.py", line 7, in __getstate__
    state = self.encode()
            ^^^^^^^^^^^^^
  File "C:\Workspace\antlyzer\venv311\Lib\site-packages\hdrh\histogram.py", line 425, in encode
    return self.encoder.encode()
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Workspace\antlyzer\venv311\Lib\site-packages\hdrh\codec.py", line 303, in encode
    cpayload = self.payload.compress(relevant_length)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Workspace\antlyzer\venv311\Lib\site-packages\hdrh\codec.py", line 227, in compress
    varint_len = encode(addressof(self.counts), counts_limit,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OverflowError: Python int too large to convert to C long

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions