Skip to content

BUG: Input buffer size wasn't large enough. #1237

Description

@AMlsct

Describe the issue:

Hi,

I'm currently using the latest version of suite2p. When I try to run from the GUI, I end up with this error message. Could you help me? I really have no idea what's <<Input buffer size wasn't large enough.>> means... I'm trying to process 12 files of 1.5Gb each. I was wondering if it was not due a RAM problem, but even with only 2 files the problem remains...

Thank you!

Antoine

Reproduce the code example:

2026-04-28 15:06:28,166 [INFO] data_path: ['D:/tmp/#5937/14']
2026-04-28 15:06:28,167 [INFO] ** Found 12 files - converting to binary **
ERROR: Input buffer size wasn't large enough.
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda\envs\suite2p\Lib\site-packages\suite2p\gui\rungui_utils.py", line 134, in run
    run_s2p(db=db, settings=settings)
  File "C:\ProgramData\Anaconda\envs\suite2p\Lib\site-packages\suite2p\run_s2p.py", line 435, in run_s2p
    dbs = files_to_binary[db["input_format"]](dbs, settings, files, files_chan2)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ProgramData\Anaconda\envs\suite2p\Lib\site-packages\suite2p\io\tiff.py", line 202, in tiff_to_binary
    im = read_tiff(file, tif, Ltif, ix, batch_size, use_sktiff)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ProgramData\Anaconda\envs\suite2p\Lib\site-packages\suite2p\io\tiff.py", line 126, in read_tiff
    im = tif.data(beg=ix, end=ix + nfr)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ProgramData\Anaconda\envs\suite2p\Lib\site-packages\ScanImageTiffReader\__init__.py", line 309, in data
    raise Exception(self.__ctx.log.decode("utf-8","strict"))
Exception: Input buffer size wasn't large enough.
error

Example input dataset used to reproduce the issue:

No response

Error message:

Version information:

suite2p v1.0.0.1

Context for the issue:

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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