Skip to content

ORT Debug Build Fails to Infer for Every Model #24535

@jatinwadhwa921

Description

@jatinwadhwa921

Describe the issue

When building ONNX Runtime in Debug configuration, inference consistently fails for all models tested (e.g., SqueezeNet, AlexNet). The same models run successfully with a Release build. This issue appears to be isolated to the Debug build configuration and is reproducible across different models.

The inference attempt in Debug mode results in the following error (attached below), indicating a possible issue in debug-specific assertions, memory checks, or internal state validations.
Image

To reproduce

  1. git clone --recursive https://github.com/microsoft/onnxruntime
  2. cd onnxruntime
  3. build.bat --config Debug --build_shared_lib --parallel
  4. cd build/Windows/Debug/Debug
  5. onnxruntime_perf_test.exe -v -m times -r 1 -I "C:\Users\Administrator\Downloads\squeezenet1.1-7.onnx"

Urgency

No response

Platform

Windows

OS Version

Windows

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

main

ONNX Runtime API

C++

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

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