🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Christian Grothoff Wed, 18 Nov 2026 13:40
Bug#1092898: onnxruntime: Schema error when creating session — still in 1.21.0+dfsg-1 (trixie), via the C API
#4939
Author: Christian Grothoff
Date: Wed, 18 Nov 2026 13:40
24 lines
2673 bytes
The issue is still reproducible on Debian 13 amd64 with 
libonnxruntime1.21 1.21.0+dfsg-1 and libonnx1t64 1.17.0-3+b1, through 
the C API as well (not only Python).

Here is a minimal reproducer: a Python ctypes script using only the C 
API: dlopen("libonnxruntime.so.1.21"),
OrtGetApiBase()->GetApi(21), CreateEnv(level, "probe", &env),
CreateSessionOptions, CreateSession(env, "<any .onnx>", opts, &s).

Nothing is printed after dlopen or CreateEnv. At the first 
CreateSession, stderr gets 567 messages like:

     Schema error: Trying to register schema with name Abs (domain: 
version: 1) from file ./onnx/defs/math/old.cc line 2729, but it is 
already registered from file ./onnx/defs/math/old.cc line 2729

each followed by an empty line (1134 lines). Later sessions in the same
process print nothing.

libonnx registers the ONNX schemas statically and onnxruntime registers 
them **again**.

Building onnxruntime against an onnx with 
ONNX_DISABLE_STATIC_REGISTRATION=ON should fix it.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads