Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tanbo1 opened this issue Mar 7, 2025 · 2 comments
Labels
platform:windows issues related to the Windows platform

Comments

@tanbo1
Copy link

tanbo1 commented Mar 7, 2025

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

@github-actions github-actions bot added the platform:windows issues related to the Windows platform label Mar 7, 2025
@snnn
Copy link
Member

snnn commented Mar 7, 2025

X64 or 32-bit x86?

@tanbo1
Copy link
Author

tanbo1 commented Mar 10, 2025

X64 or 32-bit x86?

32-bit x86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:windows issues related to the Windows platform
Projects
None yet
Development

No branches or pull requests

2 participants