Skip to content

Segmentation fault when creating Session with 32-bit DirectML #24081

Closed
@Godnoken

Description

@Godnoken

Describe the issue

Hello,

I am using the Rust ort crate. Opened up an issue there about getting a segfault when creating a session, but according to the maintainer this is an issue with either Onnxruntime or DirectML directly.

Everything works just fine when I compile to 64-bit. No problems with loading models or running inference. But with 32-bit, it immediately segfaults on Session creation.

Only error message I've been able to get;

error: process didn't exit successfully: target\i686-pc-windows-msvc\debug\rapidocr_rs.exe (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

To reproduce

Onnxruntime 1.20.0 (Microsoft.ML.OnnxRuntime.DirectML.1.20.0.nupkg)
DirectML 1.15.2 (Microsoft.AI.DirectML.1.15.2)
Model used: en_PP-OCRv3_det_infer.onnx

I have tried other Onnxruntimes & DirectML but haven't found any that works.

Urgency

No response

Platform

Windows

OS Version

10

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.20.0

ONNX Runtime API

C

Architecture

X86

Execution Provider

DirectML

Execution Provider Library Version

1.15.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeep:DMLissues related to the DirectML execution provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions