ossia / ossia/score

onnx: crash on windows when a GenerativeImageGan object gets deleted

Open
#2,018 0 comments 0 reactions 1 assignee View on GitHub

@jcelerier is already working on this.

Since Apr 2, 2026.

crash Windows
Dominant language
C++
Stars
2.1k
Forks
129
Avg merge
19h 7m
Merged PRs (30d)
48

Description

Child-SP          RetAddr               Call Site
(Inline Function) --------`--------     onnxruntime!std::default_delete<onnxruntime::IDataTransfer>::operator()(void)+0x8 [C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\memory @ 3309]
(Inline Function) --------`--------     onnxruntime!std::unique_ptr<onnxruntime::IDataTransfer,std::default_delete<onnxruntime::IDataTransfer> >::{dtor}(void)+0x10 [C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\memory @ 3427]
(Inline Function) --------`--------     onnxruntime!std::_Default_allocator_traits<std::allocator<std::unique_ptr<onnxruntime::IDataTransfer,std::default_delete<onnxruntime::IDataTransfer> > > >::destroy(void)+0x10 [C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\xmemory @ 741]
(Inline Function) --------`--------     onnxruntime!std::_Destroy_range(class std::unique_ptr<onnxruntime::IDataTransfer,std::default_delete<onnxruntime::IDataTransfer> > * _First = 0x00000000`be9e1760 unique_ptr {...}, class std::unique_ptr<onnxruntime::IDataTransfer,std::default_delete<onnxruntime::IDataTransfer> > * _Last = 0x00000000`be9e1770 unique_ptr {...})+0x15 [C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\xmemory @ 1103]
(Inline Function) --------`--------     onnxruntime!std::vector<std::unique_ptr<onnxruntime::IDataTransfer,std::default_delete<onnxruntime::IDataTransfer> >,std::allocator<std::unique_ptr<onnxruntime::IDataTransfer,std::default_delete<onnxruntime::IDataTransfer> > > >::_Tidy(void)+0x29 [C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\vector @ 2091]
00000000`0015aa40 00007ffb`b0cf174f     onnxruntime!std::vector<std::unique_ptr<onnxruntime::IDataTransfer,std::default_delete<onnxruntime::IDataTransfer> >,std::allocator<std::unique_ptr<onnxruntime::IDataTransfer,std::default_delete<onnxruntime::IDataTransfer> > > >::~vector<std::unique_ptr<onnxruntime::IDataTransfer,std::default_delete<onnxruntime::IDataTransfer> >,std::allocator<std::unique_ptr<onnxruntime::IDataTransfer,std::default_delete<onnxruntime::IDataTransfer> > > >(void)+0x33 [C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\vector @ 830]
00000000`0015aa80 00007ffb`b0cf0934     onnxruntime!onnxruntime::InferenceSession::~InferenceSession(void)+0x1ef [E:\_work\1\s\onnxruntime\core\session\inference_session.cc @ 771]
00000000`0015ace0 00000001`42349289     onnxruntime!onnxruntime::InferenceSession::`scalar deleting destructor'(void)+0x14
(Inline Function) --------`--------     score!Ort::detail::OrtRelease(struct OrtSession * ptr = <Value unavailable error>)+0x32 [D:\dev\build-clang-cl\_deps\onnxruntime-src\include\onnxruntime_cxx_api.h @ 648]
(Inline Function) --------`--------     score!Ort::detail::Base<OrtSession>::~Base(void)+0x35 [D:\dev\build-clang-cl\_deps\onnxruntime-src\include\onnxruntime_cxx_api.h @ 707]
(Inline Function) --------`--------     score!std::default_delete<Ort::Session>::operator()(struct Ort::Session * _Ptr = 0x00000000`98b93000)+0x35 [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 3338]
(Inline Function) --------`--------     score!std::unique_ptr<Ort::Session,std::default_delete<Ort::Session> >::~unique_ptr(void)+0x3d [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 3456]
00000000`0015ad10 00000001`42346713     score!Onnx::SingleNetworkGAN::~SingleNetworkGAN(void)+0xc9 [D:\dev\score\src\addons\score-addon-onnx\Onnx\helpers\GAN.hpp @ 85]
(Inline Function) --------`--------     score!std::_Ref_count_base::_Decref(void)+0xe [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 1183]
(Inline Function) --------`--------     score!std::_Ptr_base<Onnx::SingleNetworkGAN>::_Decref(void)+0x1a [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 1408]
(Inline Function) --------`--------     score!std::shared_ptr<Onnx::SingleNetworkGAN>::~shared_ptr(void)+0x1a [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 1713]
00000000`0015ad60 00000001`415f10b0     score!OnnxModels::GenerativeImageGAN::~GenerativeImageGAN(void)+0x1f3 [D:\dev\score\src\addons\score-addon-onnx\OnnxModels\GenerativeImageGAN.cpp @ 22]
(Inline Function) --------`--------     score!std::_Ref_count_base::_Decref(void)+0xe [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 1183]
(Inline Function) --------`--------     score!std::_Ptr_base<OnnxModels::GenerativeImageGAN>::_Decref(void)+0x1a [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 1408]
(Inline Function) --------`--------     score!std::shared_ptr<OnnxModels::GenerativeImageGAN>::~shared_ptr(void)+0x1a [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 1713]
(Inline Function) --------`--------     score!oscr::GfxRenderer<OnnxModels::GenerativeImageGAN>::~GfxRenderer(void)+0xae [D:\dev\score\src\plugins\score-plugin-avnd\Crousti\GfxNode.hpp @ 22]
00000000`0015ada0 00000001`4142752b     score!oscr::GfxRenderer<OnnxModels::GenerativeImageGAN>::~GfxRenderer(int should_call_delete = 0n1)+0xc0 [D:\dev\score\src\plugins\score-plugin-avnd\Crousti\GfxNode.hpp @ 22]
00000000`0015ae00 00000001`4210c530     score!score::gfx::RenderList::~RenderList(void)+0xfb [D:\dev\score\src\plugins\score-plugin-gfx\Gfx\Graph\RenderList.cpp @ 69]
(Inline Function) --------`--------     score!std::_Ref_count_base::_Decref(void)+0xe [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 1183]
(Inline Function) --------`--------     score!std::_Ptr_base<score::gfx::RenderList>::_Decref(void)+0x17 [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 1408]
(Inline Function) --------`--------     score!std::shared_ptr<score::gfx::RenderList>::~shared_ptr(void)+0x17 [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\memory @ 1713]
(Inline Function) --------`--------     score!std::destroy_at(class std::shared_ptr<score::gfx::RenderList> * _Location = 0x00000000`1738cbc0 {...})+0x17 [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\xmemory @ 341]
(Inline Function) --------`--------     score!std::_Default_allocator_traits<std::allocator<std::shared_ptr<score::gfx::RenderList> > >::destroy(class std::shared_ptr<score::gfx::RenderList> * _Ptr = 0x00000000`1738cbc0 {...})+0x17 [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\xmemory @ 743]
(Inline Function) --------`--------     score!std::_Destroy_range(class std::shared_ptr<score::gfx::RenderList> * _First = 0x00000000`1738cbc0 {...})+0x20 [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\xmemory @ 1107]
(Inline Function) --------`--------     score!std::vector<std::shared_ptr<score::gfx::RenderList>,std::allocator<std::shared_ptr<score::gfx::RenderList> > >::clear(void)+0x2f [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\vector @ 1820]
00000000`0015ae60 00000001`4141ba0c     score!score::gfx::Graph::createAllRenderLists(score::gfx::GraphicsApi graphicsApi = Vulkan (0n2))+0x120 [D:\dev\score\src\plugins\score-plugin-gfx\Gfx\Graph\Graph.cpp @ 143]
00000000`0015af30 00000001`4141dd42     score!Gfx::GfxContext::recompute_graph(void)+0x32c [D:\dev\score\src\plugins\score-plugin-gfx\Gfx\GfxContext.cpp @ 208]
00000000`0015b120 00000001`4141e49e     score!Gfx::GfxContext::run_commands(void)+0x422 [D:\dev\score\src\plugins\score-plugin-gfx\Gfx\GfxContext.cpp @ 459]
00000000`0015b2b0 00000001`41b22b1e     score!Gfx::GfxContext::updateGraph(void)+0xe [D:\dev\score\src\plugins\score-plugin-gfx\Gfx\GfxContext.cpp @ 471]
(Inline Function) --------`--------     score!std::_Func_class<void>::operator()(void)+0x6 [C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.50.35717\include\functional @ 930]
00000000`0015b2f0 00000001`41b2336d     score!score::gfx::Window::render(void)+0x3e [D:\dev\score\src\plugins\score-plugin-gfx\Gfx\Graph\Window.cpp @ 139]
00000000`0015b380 00007ffb`e3433701     score!score::gfx::Window::event(class QEvent * e = 0x00000000`0015bac0)+0x23d [D:\dev\score\src\plugins\score-plugin-gfx\Gfx\Graph\Window.cpp @ 322]
00000000`0015b450 00007ffb`e34327fe     Qt6Widgets!QApplicationPrivate::notify_helper+0x151

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.