Skip to content

Commit

Permalink
Debug hang
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Sep 11, 2024
1 parent 739c549 commit 5dad404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,8 @@ jobs:
fail-fast: false
matrix:
include:
# sometimes hangs with Ruby 3.3 on CI
# - ruby: 3.3
# os: ubuntu-22.04
- ruby: 3.2
os: ubuntu-20.04
- ruby: 3.1
os: macos-latest
- ruby: "3.0"
os: windows-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
Expand Down
2 changes: 2 additions & 0 deletions lib/onnxruntime/inference_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,14 @@ def env
# use mutex for thread-safety
Utils.mutex.synchronize do
@@env ||= begin
puts "begin"
env = ::FFI::MemoryPointer.new(:pointer)
check_status api[:CreateEnv].call(3, "Default", env)
at_exit { release :Env, env }
# disable telemetry
# https://github.com/microsoft/onnxruntime/blob/master/docs/Privacy.md
check_status api[:DisableTelemetryEvents].call(env)
puts "end"
env
end
end
Expand Down

0 comments on commit 5dad404

Please sign in to comment.