u3d: Segmentation Fault with Win32API

Issue Checklist

  • [ x] I’m using the latest u3d version
  • [ x] I ran u3d --help
  • [ x] I read the README
  • [ x] I made sure that a similar issue doesn’t exit

Issue Description

Hey folks! First of all, great project. I’m astonished how easy it is to install unity and it’s modules with this application. Unfortunately I face an issue. I hope you can help me with this.

I am using u3d on windows server 2019, since I want to use u3d in a build pipeline with windows build artifacts. Installing one Unity Version works fine. After trying to install another Unity Version or list versions, I get the following log:

u3d list
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/u3d-1.2.3/lib/u3d/installation.rb:354: warning: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/win32api-0.1.0/lib/Win32API.rb:42: [BUG] Segmentation fault
ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x64-mingw32]

-- Control frame information -----------------------------------------------
c:0021 p:---- s:0132 e:000131 CFUNC  :call
c:0020 p:0025 s:0125 e:000124 METHOD C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/win32api-0.1.0/lib/Win32API.rb:42
c:0019 p:0306 s:0118 e:000117 METHOD C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/u3d-1.2.3/lib/u3d/installation.rb:382
c:0018 p:0015 s:0096 e:000095 METHOD C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/u3d-1.2.3/lib/u3d/installation.rb:350
c:0017 p:0003 s:0092 e:000091 METHOD C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/u3d-1.2.3/lib/u3d/installation.rb:330
c:0016 p:0005 s:0086 e:000085 METHOD C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/u3d-1.2.3/lib/u3d/installation.rb:393
c:0015 p:0029 s:0079 e:000077 BLOCK  C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/u3d-1.2.3/lib/u3d/commands.rb:56 [FINISH]

Here Iattached the full log: u3d-issue-fulllog.txt

It seems to be an issue with the syscall on win32api. Since other syscalls work fine, probably some particular syscalls have some errors. Unfortunately I only have shallow experience in this regard. I hope you can help me with this.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

I solved this by installing ruby 2.7.2. Every newer version of ruby causes this problem.