oneclick / rubyinstaller2

MSYS2 based RubyInstaller for Windows
https://rubyinstaller.org
BSD 3-Clause "New" or "Revised" License
645 stars 248 forks source link

fatal error - add_item #282

Open jsh562 opened 2 years ago

jsh562 commented 2 years ago

What problems are you experiencing?

Installing puma 5.6.4 with native extensions 0 [main] locale (9392) D:\Ruby26-x64\msys64\usr\bin\locale.exe: *** fatal error - add_item ("\??\D:\Ruby26-x64\msys64", "/", ...) failed, errno 1 Stack trace: Frame Function Args 000FFFFCD30 001800627DE (0018029394A, 0018026EE41, 00800000000, 000FFFF8B30) 000FFFFCD30 0018004846A (00000000000, 000FFFFCD30, 00180020010, 000FFFFABF0) 000FFFFCD30 001800484A2 (000FFFF9BC0, 00000000001, 00800000000, 00000000001) 000FFFFCD30 001800E7167 (00000000000, 00040000024, 00000000000, 00000000000) 000FFFFCD30 0018012C705 (001800D63F4, 00000000000, 00000000000, 00000000000) 000FFFFCD30 00180048AB8 (00000000000, 00000000000, 00000000000, 00000000000) 000FFFFFFF0 00180047716 (00000000000, 00000000000, 00000000000, 00000000000) 000FFFFFFF0 001800477C4 (00000000000, 00000000000, 00000000000, 00000000000) End of stack trace 0 [main] make (9020) D:\Ruby26-x64\msys64\usr\bin\make.exe: *** fatal error - add_item ("\??\D:\Ruby26-x64\msys64", "/", ...) failed, errno 1 0 [main] make (4616) D:\Ruby26-x64\msys64\usr\bin\make.exe: *** fatal error - add_item ("\??\D:\Ruby26-x64\msys64", "/", ...) failed, errno 1 0 [main] make (10056) D:\Ruby26-x64\msys64\usr\bin\make.exe: *** fatal error - add_item ("\??\D:\Ruby26-x64\msys64", "/", ...) failed, errno 1

occurs on about 20% of gems I try to install (not just puma as shown). tried on either 2.6 and 2.7 with dev kit installed.

Steps to reproduce

install ruby 2.6 or 2.7 with msys2 install gems

What's the output from ridk version?

0 [main] locale (8312) D:\Ruby26-x64\msys64\usr\bin\locale.exe: *** fatal error - add_item ("\??\D:\Ruby26-x64\msys64", "/", ...) failed, errno 1 Stack trace: Frame Function Args 000FFFFCD30 001800627DE (0018029394A, 0018026EE41, 00800000000, 000FFFF8B30) 000FFFFCD30 0018004846A (00000000000, 000FFFFCD30, 00180020010, 000FFFFABF0) 000FFFFCD30 001800484A2 (000FFFF9BC0, 00000000001, 00800000000, 00000000001) 000FFFFCD30 001800E7167 (00000000000, 00040000024, 00000000000, 00000000000) 000FFFFCD30 0018012C705 (001800D63F4, 00000000000, 00000000000, 00000000000) 000FFFFCD30 00180048AB8 (00000000000, 00000000000, 00000000000, 00000000000) 000FFFFFFF0 00180047716 (00000000000, 00000000000, 00000000000, 00000000000) 000FFFFFFF0 001800477C4 (00000000000, 00000000000, 00000000000, 00000000000) End of stack trace 0 [main] sh (7272) D:\Ruby26-x64\msys64\usr\bin\sh.exe: *** fatal error - add_item ("\??\D:\Ruby26-x64\msys64", "/", ...) failed, errno 1 Stack trace: Frame Function Args 000FFFFCD30 001800627DE (0018029394A, 0018026EE41, 00800000000, 000FFFF8B30) 000FFFFCD30 0018004846A (00000000000, 000FFFFCD30, 00180020010, 000FFFFABF0) 000FFFFCD30 001800484A2 (000FFFF9BC0, 00000000001, 00800000000, 00000000001) 000FFFFCD30 001800E7167 (00000000000, 00040000024, 00000000000, 00000000000) 000FFFFCD30 0018012C705 (001800D63F4, 00000000000, 00000000000, 00000000000) 000FFFFCD30 00180048AB8 (00000000000, 00000000000, 00000000000, 00000000000) 000FFFFFFF0 00180047716 (00000000000, 00000000000, 00000000000, 00000000000) 000FFFFFFF0 001800477C4 (00000000000, 00000000000, 00000000000, 00000000000) End of stack trace D:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/ridk.rb:139:insanitize_hash_encoding': undefined method map' for nil:NilClass (NoMethodError) from D:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/ridk.rb:139:inblock in sanitize_hash_encoding' from D:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/ridk.rb:139:in each' from D:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/ridk.rb:139:inmap' from D:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/ridk.rb:139:in sanitize_hash_encoding' from D:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/ridk.rb:182:inprint_version' from D:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/ruby_installer/runtime/ridk.rb:24:in run!' from D:/Ruby26-x64/bin/ridk.cmd:39:in

'`

mohits commented 2 years ago

Hmm.. Ruby26-x64 used to be my main stay version and I did not face anything like this at all.

[1] Could you share your PATH?

[2] The one difference I am seeing is that I have Ruby on my C drive rather than D drive as you seem to have... but I don't feel that it should make a difference.

[3] I'm assuming you have tried to reinstall Ruby?

[4] Which package did you install?

Thanks!

jsh562 commented 2 years ago
  1. bin of ruby. e.g. D:\Ruby26-x64\bin

  2. yes

  3. the latest stable of each.

possibly related https://stackoverflow.com/questions/66276259/gpg-exe-part-of-git-bash-crashes-with-fatal-error-add-item-windows https://github.com/bazelbuild/continuous-integration/issues/649

jsh562 commented 2 years ago

Did some more testing. 2.6.7 does not give me these issues while 2.6.10 does. I might test 2.7.[some previous version] as well

jsh562 commented 2 years ago

2.6.8+ 2.7.4+ 3.0.1+ any ruby installer with the new icon gives these error

any older maintenance version work fine.