rubyinstaller2 icon indicating copy to clipboard operation
rubyinstaller2 copied to clipboard

fatal error - add_item

Open jsh562 opened this issue 3 years ago • 8 comments

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:in block 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:in map' 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:in print_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

'`

jsh562 avatar May 06 '22 19:05 jsh562

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!

mohits avatar May 07 '22 00:05 mohits

  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 avatar May 09 '22 19:05 jsh562

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 avatar May 24 '22 23:05 jsh562

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.

jsh562 avatar May 31 '22 21:05 jsh562