Skip to content

Bad Allocation Error in ONNX Runtime on Windows x86 CPU When Processing Multiple Images Sequentially #23938

Open
@tanbo1

Description

@tanbo1

Describe the issue

We encountered a “bad allocation” error when performing sequential OCR processing using ONNX Runtime on Windows x86 CPU.
• Processing a single image multiple times works fine.
• However, processing multiple images continuously in a loop eventually leads to bad allocation.
• This suggests a possible memory leak or fragmentation issue within ONNX Runtime.

To reproduce

1.	Load the image processing model using ONNX Runtime on Windows x86 CPU.
2.	Process a single image successfully.
3.	Process multiple images in a batch.
4.	Encounter a bad allocation error.

Urgency

No response

Platform

Windows

OS Version

Windows 10

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1.15.0

ONNX Runtime API

C++

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform:windowsissues related to the Windows platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions