shoes3
shoes3 copied to clipboard
Visual C++ Runtime Error on startup
Unlike version 3.2, version 3.3.2 immediately crashes with the error message:
Runtime Error! Program: C:\Program Files (x86)\Shoes\Shoes.exe
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information
Running Windows 10 64-bit, and am a bit of a noob in this kinda stuff. Any help would be appreciated.
Would you mind giving us more details?
Type cmd
in the Windows 10 search box which is normally located near the left-bottom corner of your screen. Then type cshoes.exe
in the command prompt window. Copy the text resulting from running Shoes and paste it in here.
Here's the copied text:
Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved.
C:\Users\Andrew Lee>cshoes.exe -e: [BUG] Segmentation fault ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
-- Control frame information ----------------------------------------------- c:0001 p:0000 s:0002 E:000a34 TOP [FINISH]
-- C level backtrace information ------------------------------------------- C:\WINDOWS\SYSTEM32\ntdll.dll(ZwWaitForSingleObject+0xc) [0x776EE5FC] C:\WINDOWS\System32\KERNELBASE.dll(WaitForSingleObject+0x12) [0x762BAD52] C:\Program Files (x86)\Shoes\msvcrt-ruby220.dll(rb_print_backtrace+0x4b) [0x640AF005] C:\Program Files (x86)\Shoes\msvcrt-ruby220.dll(rb_vm_bugreport+0x78) [0x640AF082] C:\Program Files (x86)\Shoes\msvcrt-ruby220.dll(rb_bug_context+0x72) [0x63F7AAD6] C:\Program Files (x86)\Shoes\msvcrt-ruby220.dll(rb_get_next_signal+0xdb) [0x640356B9] C:\Program Files (x86)\Shoes\cshoes.exe(WinMain+0x496) [0x004019F6] C:\WINDOWS\System32\KERNELBASE.dll(UnhandledExceptionFilter+0x172) [0x7634D412] C:\WINDOWS\SYSTEM32\ntdll.dll(LdrSetAppCompatDllRedirectionCallback+0x1ae9d) [0x7771E0BD]
-- Other runtime information -----------------------------------------------
-
Loaded script: -e
-
Loaded features:
0 enumerator.so 1 rational.so 2 complex.so 3 C:/Program Files (x86)/Shoes/lib/ruby/2.2.0/i386-mingw32/enc/encdb.so 4 C:/Program Files (x86)/Shoes/lib/ruby/2.2.0/i386-mingw32/enc/trans/transdb.so 5 C:/Program Files (x86)/Shoes/lib/ruby/2.2.0/i386-mingw32/enc/iso_8859_1.so 6 C:/Program Files (x86)/Shoes/lib/ruby/2.2.0/unicode_normalize.rb 7 C:/Program Files (x86)/Shoes/lib/ruby/2.2.0/i386-mingw32/rbconfig.rb 8 thread.rb 9 C:/Program Files (x86)/Shoes/lib/ruby/2.2.0/i386-mingw32/thread.so 10 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/compatibility.rb 11 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/defaults.rb 12 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/deprecate.rb 13 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/errors.rb 14 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/version.rb 15 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/requirement.rb 16 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/platform.rb 17 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/basic_specification.rb 18 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/stub_specification.rb 19 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/util/list.rb 20 C:/Program Files (x86)/Shoes/lib/ruby/2.2.0/i386-mingw32/stringio.so 21 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb 22 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/exceptions.rb 23 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb 24 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb 25 C:/Program Files (x86)/Shoes/lib/ruby/2.2.0/monitor.rb 26 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb 27 C:/Program Files (x86)/Shoes/lib/ruby/site_ruby/2.2.0/rubygems.rb
[NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
C:\Users\Andrew Lee>
That is odd!. It didn't very far into the initialization. That code that hasn't changed in many years. You mentioned that you had Shoes 3.2 before. Did you uninstall it before installing 3.3.2? It might be that there is environment variable leftover from 3.2 days.
I'm also getting this error with a clean install.
OS: Win10 x86_64
Hardware: Surface Book
I don't know if shoes uses an internal interpreter so I'll include my ruby version:
ruby 2.2.6p396 (2016-11-15 revision 56800) [i386-mingw32]
The file size on the windows download looks a little too small compared to previous versions and smaller that my copy of 3.3.2 . Re-uploading produces the same smaller file. That makes no sense since I'm using sftp.
Workaround: you can download a 3.3.3 beta - not much changed in that beta since 3.3.2. Would someone uninstall their bad copy try the beta and let me know if that works.
Thanks for reporting this @AndrewLeee , and @Capital-EX - sorry for the bumpy experience with Shoes.
I've got a good upload for 3.3.2 now - 13 minutes ago was operator error. Should be good to go.
@Capital-EX, Shoes has an embedded Ruby interpreter and shouldn't know or care about your existing ruby. Also, that means Shoes doesn't share gems with and existing Ruby.
@ccoupe I'm still getting this mysterious error on both 3.3.3 and 3.3.2.
Are there any external dependencies needed for shoes?
@Capital-EX I just uninstalled 3.3.2 and installed 3.3.3, and also still encounter the same error. Running cshoes.exe in cmd gives the same error as previously listed, I'm not in any rush to be using this version since 3.2 has been working for me flawlessly so far. cshoes_error.txt
Perhaps take a look into %LOCALAPPDATA%
directory? After uninstalling Shoes, open Windows Explorer, type %LOCALAPPDATA%
and search for Shoes directory somewhere. Delete everything. Reinstall Shoes.
I tried Shoes 3.3.2 on my quasi-legal Win 10 virtual machine. Doesn't fail for me. But, but, but this VM (Win 10 preview) doesn't get MSFT updates and most certainly there are many since then. Since both @AndrewLeee and @Capital-EX are using Win 10 it is possible that Shoes 3.3.2 has run into some newer MSFT security roadblock. Since Shoes and Ruby will dynamically load dll's and we know Win 10 tracks that behaviour (I think it does) it could be flagged as don't allow. Visit your security settings and see if Shoes is listed as a bad actor. Which settings? I have no clue.
Just for the note I use shoes 3.3.2 on a corporate windows 10 (which is highly secured). No issues so far. With the same success I am building and installing custom packages (#302).
I would suggest once again uninstalling all shoes installations and cleaning up their repsective folders for any leftovers. reboot the pc and install shoes again.
As far as my quick search go I found this article where similar problem happens for ruby with no apparent reason. If you look through the net there are more of those for different ruby versions.
I uninstalled Shoes, deleted the folder found in my AppData, and rebooted my computer. Then, I reinstalled and ran Shoes, which lead to the same error.
I'm sure that there's a solution somewhere, maybe regarding what @ccoupe mentioned with security settings, but until then it's back to using Shoes 3.2 on my project.
Thanks for the help everyone!
@AndrewLeee what kind of antivirus are you running? Some of them are very aggressive in their strategy and will either prevent or sandbox what they consider suspicious. You may add Shoes path to the exceptions in your antivirus software.
Having the same issue with Windows 7 64-bit
I tested all the available installs including the above beta, 2 out of 6 fail after install.
shoes-3.2.24-gtk2-32- Successful shoes-3.2.25-gtk2-32- Successful shoes-3.3.0-gtk3-32- Successful shoes-3.3.1-gtk3-32- Failure shoes-3.3.2-gtk3-32- Failure Shoes-3.3.3-gtk3-w32- Successful
In both faulting versions (3.3.1 and 3.3.2) the error is the same with the exception of the cshoes.exe checksum (0x004019F6 and 0x00401986 respectively):
C:\tools\ruby\shoes-3.3.2-gtk3-32>cshoes.exe
-e: [BUG] Segmentation fault
ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
-- Control frame information -----------------------------------------------
c:0001 p:0000 s:0002 E:000b74 TOP [FINISH]
-- C level backtrace information -------------------------------------------
C:\Windows\SysWOW64\ntdll.dll(ZwWaitForSingleObject+0x15) [0x77BDF8D1]
C:\Windows\syswow64\kernel32.dll(WaitForSingleObjectEx+0x43) [0x75651194]
C:\Windows\syswow64\kernel32.dll(WaitForSingleObject+0x12) [0x75651148]
C:\tools\ruby\shoes-3.3.2-gtk3-32\msvcrt-ruby220.dll(rb_print_backtrace+0x4b) [0x640AF005]
C:\tools\ruby\shoes-3.3.2-gtk3-32\msvcrt-ruby220.dll(rb_vm_bugreport+0x78) [0x640AF082]
C:\tools\ruby\shoes-3.3.2-gtk3-32\msvcrt-ruby220.dll(rb_bug_context+0x72) [0x63F7AAD6]
C:\tools\ruby\shoes-3.3.2-gtk3-32\msvcrt-ruby220.dll(rb_get_next_signal+0xdb) [0x640356B9]
C:\tools\ruby\shoes-3.3.2-gtk3-32\cshoes.exe(WinMain+0x496) [0x004019F6]
C:\Windows\syswow64\kernel32.dll(GetProfileStringW+0x12d67) [0x75690303]
C:\Windows\SysWOW64\ntdll.dll(RtlKnownExceptionFilter+0xb7) [0x77C374FF]
-- Other runtime information -----------------------------------------------
* Loaded script: -e
* Loaded features:
0 enumerator.so
1 rational.so
2 complex.so
3 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/2.2.0/i386-mingw32/enc/encdb.so
4 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/2.2.0/i386-mingw32/enc/trans/transdb.so
5 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/2.2.0/i386-mingw32/enc/iso_8859_1.so
6 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/2.2.0/unicode_normalize.rb
7 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/2.2.0/i386-mingw32/rbconfig.rb
8 thread.rb
9 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/2.2.0/i386-mingw32/thread.so
10 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/compatibility.rb
11 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/defaults.rb
12 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/deprecate.rb
13 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/errors.rb
14 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/version.rb
15 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/requirement.rb
16 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/platform.rb
17 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/basic_specification.rb
18 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/stub_specification.rb
19 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/util/list.rb
20 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/2.2.0/i386-mingw32/stringio.so
21 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb
22 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/exceptions.rb
23 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb
24 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb
25 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/2.2.0/monitor.rb
26 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb
27 C:/tools/ruby/shoes-3.3.2-gtk3-32/lib/ruby/site_ruby/2.2.0/rubygems.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
I am running ESet anti-virus which has both C:\tools and C:\tools\ruby\shoes set as exceptions. I am running Comodo Firewall, all of its sandboxing features have been disabled.
I also installed 3.3.2 onto a fresh VM running Win 7 and the error did not occur.
I also installed 3.3.2 onto a fresh VM running Win 7 and the error did not occur.
That's an important data point, @Aedda That's what I use to test because I don't have a real Windows machine, much less one that has all kinds of software on it, i.e, real world. Caution - did you un-install each of the previous shoes before installing the next one. Earlier Shoes versions could not co-exist and sometimes left a garbled FONTCONFIG_FILE env variable set in the system but your stack trace suggests you are dieing just getting Shoe's ruby fired up, perhaps while initializing the gem handling, well before you'd get font problems.
You might want to review your env vars including PATH to make sure you don't have multiple entries for Shoes . delete the FONTCONFIG_FILE if you see it, and stick with 3.3.2 or 3.3.3 for your testing because the older ones just create noise and trouble for you. If you have other env vars setup for other ruby projects, that could be an isuue (GEM_HOME for sure could cause problems)