Skip to content

System.ExecutionEngineException creating Microsoft.ML.OnnxRuntime.SessionOptions #23263

@DennyOne

Description

@DennyOne

Describe the issue

This issue is reported by https://developercommunity.visualstudio.com/user/25004 and moved from https://developercommunity.visualstudio.com/t/SystemExecutionEngineException-creating/10794175 to onnx/onnx#6555

@justinchuby closed onnx/onnx#6555 and suggested creating the issue here.


Hi devs!

I have a C#.NET project that uses the Microsoft.ML.OnnxRuntime and Microsoft.ML.OnnxRuntime.Managed packages.

System.ExecutionEngineException error began while creating Microsoft.ML.OnnxRuntime.SessionOptions when the Microsoft.ML.OnnxRuntime and Microsoft.ML.OnnxRuntime.Managed Version=1.19.2 packages were updated to Version=1.20.0.

Do the 1.20.0 (or higher) packages include all required dependencies? Do I need to add any other NuGet packages? Previous version packages (1.19.2 or lower) work without issue.

The project uses the following ONNX packages:
Microsoft.ML.OnnxRuntime Version=1.19.2
Microsoft.ML.OnnxRuntime.Managed Version=1.19.2
TorchSharp Version=0.105.0
TorchSharp-cpu Version=0.105.0

Much Thanks!
-Denny

To reproduce

Unfortunately, I do not have a small sample that can reproduce the issue. If it might be helpful, a Visual Studio debug video was posted in the original issue (https://developercommunity.visualstudio.com/t/SystemExecutionEngineException-creating/10794175)

Urgency

Our project cannot use updated Microsoft.ML.OnnxRuntime versions higher than 1.19.2

Platform

Windows

OS Version

10 & 11

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.20.0

ONNX Runtime API

C#

Architecture

X64

Execution Provider

Other / Unknown

Execution Provider Library Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeapi:CSharpissues related to the C# APIstaleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions