You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When inferencing with too many samples in Python, I get this error on Ubuntu: [E:onnxruntime:Default, allocator.cc:36 operator()] /onnxruntime_src/onnxruntime/core/common/safeint.h:17 static void SafeIntExceptionHandler<onnxruntime::OnnxRuntimeException>::SafeIntOnOverflow() Integer overflow
When running the same script on an M1 Mac, it appears as a SIGABRT with libc++abi terminating message.
I'm able to mitigate this by inferencing in batches and concatenating the results.
To reproduce
Inference with a large number of samples (low millions?). Maybe > 32767 is sufficient, since that's the max for int16, but I haven't verified that.
Urgency
No response
Platform
Linux
OS Version
Ubuntu
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.16.3
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered:
…y return a nullptr. This is inconsistent as an actual memory allocation failure throws. An overflow would typically be due to bad input so an exception makes more sense given that.
Change to throw so code using MakeUniquePtr* and AllocArray* doesn't need to check for nullptr.
Add some extra info to the log message to help debugging.
Should help with #18905 by avoiding the invalid attempted usage of a nullptr from the allocation. Extra info _might_ help with figuring out where the overflow is coming from which is the real issue.
…#18941)
### Description
<!-- Describe your changes. -->
If we fail to calculate the buffer size (due to overflow) we currently
return a nullptr. This is inconsistent as an actual memory allocation
failure throws. An overflow would typically be due to bad input so an
exception makes more sense given that.
Change to throw so code using MakeUniquePtr* and AllocArray* doesn't
need to check for nullptr.
Add some extra info to the log message to help debugging.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Should help with #18905 by avoiding the invalid attempted usage of a
nullptr from the allocation. Extra info _might_ help with figuring out
where the overflow is coming from which is the real issue.
Describe the issue
When inferencing with too many samples in Python, I get this error on Ubuntu:
[E:onnxruntime:Default, allocator.cc:36 operator()] /onnxruntime_src/onnxruntime/core/common/safeint.h:17 static void SafeIntExceptionHandler<onnxruntime::OnnxRuntimeException>::SafeIntOnOverflow() Integer overflow
When running the same script on an M1 Mac, it appears as a
SIGABRT
withlibc++abi terminating
message.I'm able to mitigate this by inferencing in batches and concatenating the results.
To reproduce
Inference with a large number of samples (low millions?). Maybe > 32767 is sufficient, since that's the max for int16, but I haven't verified that.
Urgency
No response
Platform
Linux
OS Version
Ubuntu
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.16.3
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: