BallAerospace / COSMOS

Ball Aerospace COSMOS
https://ballaerospace.github.io/cosmos-website/
Other
360 stars 127 forks source link

Test Runner crashes #973

Closed BrunoBMoura closed 5 years ago

BrunoBMoura commented 5 years ago

Hi, I just installed the newer COSMOS version using your own installation tool and I just got a problem. I'm running it on WINDOWS 10 x64.

Describe the bug Always that I open the launcher and try to run Test Runner, it crashes.

To Reproduce Steps to reproduce the behavior:

  1. Open COSMOS launcher
  2. Click on Script Runner Icon

Expected behavior Test Runner to open.

Screenshots image

Environment (please complete the following information):

ghost commented 5 years ago

@BrunoBMoura Please copy the actual stack trace into this ticket. There should be a \_exception.txt or \_unexpected.txt file in your output/logs directory.

BrunoBMoura commented 5 years ago

Sure, there it is:

Unexpected Output:

C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5-x64-mingw32/lib/Qt/qtruby4.rb:2900: [BUG] Segmentation fault ruby 2.4.4p296 (2018-03-28 revision 63013) [x64-mingw32]

-- Control frame information ----------------------------------------------- c:0022 p:---- s:0098 e:000097 CFUNC :getIsa c:0021 p:0010 s:0093 e:000092 METHOD C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5-x64-mingw32/lib/Qt/qtruby4.rb:2900 c:0020 p:0141 s:0087 e:000086 METHOD C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5-x64-mingw32/lib/Qt/qtruby4.rb:3262 c:0019 p:0021 s:0077 e:000076 METHOD C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5-x64-mingw32/lib/Qt/qtruby4.rb:3228 c:0018 p:0010 s:0072 e:000071 BLOCK C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports/source_index.rb:45 [FINISH] c:0017 p:---- s:0068 e:000067 CFUNC :each c:0016 p:0018 s:0064 e:000063 CLASS C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports/source_index.rb:44 c:0015 p:0127 s:0061 e:000060 CLASS C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports/source_index.rb:41 c:0014 p:0023 s:0058 e:000057 TOP C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports/source_index.rb:21 [FINISH] c:0013 p:---- s:0055 e:000054 CFUNC :require c:0012 p:0099 s:0050 e:000049 TOP C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports.rb:6 [FINISH] c:0011 p:---- s:0047 e:000046 CFUNC :require c:0010 p:0115 s:0042 e:000041 TOP C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard.rb:64 [FINISH] c:0009 p:---- s:0039 e:000038 CFUNC :require c:0008 p:0091 s:0034 e:000033 BLOCK C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/cosmos-4.3.0/lib/cosmos/tools/test_runner/test_runner.rb:22 c:0007 p:0008 s:0031 e:000030 METHOD C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/cosmos-4.3.0/lib/cosmos/top_level.rb:545 c:0006 p:0022 s:0026 e:000025 TOP C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/cosmos-4.3.0/lib/cosmos/tools/test_runner/test_runner.rb:12 [FINISH] c:0005 p:---- s:0023 e:000022 CFUNC :require c:0004 p:0010 s:0018 e:000017 BLOCK tools/TestRunner:14 c:0003 p:0026 s:0015 e:000014 METHOD C:/COSMOS/VisionaRTS/tools/tool_launch.rb:16 c:0002 p:0016 s:0006 e:000005 EVAL tools/TestRunner:13 [FINISH] c:0001 p:0000 s:0003 E:001b40 (none) [FINISH]

-- Ruby level backtrace information ---------------------------------------- tools/TestRunner:13:in <main>' C:/COSMOS/VisionaRTS/tools/tool_launch.rb:16:intool_launch' tools/TestRunner:14:in block in <main>' tools/TestRunner:14:inrequire' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/cosmos-4.3.0/lib/cosmos/tools/test_runner/test_runner.rb:12:in <top (required)>' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/cosmos-4.3.0/lib/cosmos/top_level.rb:545:incatch_fatal_exception' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/cosmos-4.3.0/lib/cosmos/tools/test_runner/test_runner.rb:22:in block in <top (required)>' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/cosmos-4.3.0/lib/cosmos/tools/test_runner/test_runner.rb:22:inrequire' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard.rb:64:in <top (required)>' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard.rb:64:inrequire' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports.rb:6:in <top (required)>' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports.rb:6:inrequire' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports/source_index.rb:21:in <top (required)>' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports/source_index.rb:41:in' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports/source_index.rb:44:in singleton class' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports/source_index.rb:44:ineach' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/yard-0.9.19/lib/yard/rubygems/backports/source_index.rb:45:in block in singleton class' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5-x64-mingw32/lib/Qt/qtruby4.rb:3228:ininstance_methods' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5-x64-mingw32/lib/Qt/qtruby4.rb:3262:in qt_methods' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5-x64-mingw32/lib/Qt/qtruby4.rb:2900:ingetAllParents' C:/COSMOS/Vendor/Ruby/lib/ruby/gems/2.4.0/gems/qtbindings-4.8.6.5-x64-mingw32/lib/Qt/qtruby4.rb:2900:in `getIsa'

-- C level backtrace information ------------------------------------------- C:\Windows\SYSTEM32\ntdll.dll(ZwWaitForSingleObject+0x14) [0x00007ffd8e39f714] C:\Windows\System32\KERNELBASE.dll(WaitForSingleObjectEx+0x93) [0x00007ffd8aef83d3] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_print_backtrace+0x36) [0x0000000067b03686] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_bugreport+0x6d) [0x0000000067b036fd] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_bug_context+0x69) [0x00000000679dd109] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_check_safe_obj+0x6ac) [0x0000000067a98f9c] [0x0000000000402387] C:\Windows\System32\msvcrt.dll(_C_specific_handler+0x98) [0x00007ffd8c928068] C:\Windows\SYSTEM32\ntdll.dll(_chkstk+0x11f) [0x00007ffd8e3a46af] C:\Windows\SYSTEM32\ntdll.dll(RtlWalkFrameChain+0x14bf) [0x00007ffd8e304bef] C:\Windows\SYSTEM32\ntdll.dll(KiUserExceptionDispatcher+0x2e) [0x00007ffd8e3a341e] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_num2long+0x28) [0x0000000067a2fda8] [0x0000000070ec143b] [0x0000000070ecc360] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_error_arity+0x10c) [0x0000000067ae99fc] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_invoke_proc+0xa58) [0x0000000067af7d58] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x4b1) [0x0000000067aef1f1] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x66c3) [0x0000000067af5403] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_yield+0x36c) [0x0000000067afeb1c] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_ary_each+0x3d) [0x0000000067983a2d] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_error_arity+0x10c) [0x0000000067ae99fc] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_invoke_proc+0xa58) [0x0000000067af7d58] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x63b) [0x0000000067aef37b] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x66c3) [0x0000000067af5403] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_iseqw_local_variables+0xba5) [0x0000000067a18885] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_require_internal+0x7b2) [0x0000000067a1a312] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_require_safe+0xd) [0x0000000067a1a3cd] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_error_arity+0x10c) [0x0000000067ae99fc] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_invoke_proc+0xa58) [0x0000000067af7d58] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x4b1) [0x0000000067aef1f1] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x66c3) [0x0000000067af5403] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_iseqw_local_variables+0xba5) [0x0000000067a18885] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_require_internal+0x7b2) [0x0000000067a1a312] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_require_safe+0xd) [0x0000000067a1a3cd] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_error_arity+0x10c) [0x0000000067ae99fc] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_invoke_proc+0xa58) [0x0000000067af7d58] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x4b1) [0x0000000067aef1f1] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x66c3) [0x0000000067af5403] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_iseqw_local_variables+0xba5) [0x0000000067a18885] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_require_internal+0x7b2) [0x0000000067a1a312] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_require_safe+0xd) [0x0000000067a1a3cd] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_error_arity+0x10c) [0x0000000067ae99fc] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_invoke_proc+0xa58) [0x0000000067af7d58] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x4b1) [0x0000000067aef1f1] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x66c3) [0x0000000067af5403] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_iseqw_local_variables+0xba5) [0x0000000067a18885] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_require_internal+0x7b2) [0x0000000067a1a312] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_require_safe+0xd) [0x0000000067a1a3cd] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_error_arity+0x10c) [0x0000000067ae99fc] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_invoke_proc+0xa58) [0x0000000067af7d58] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x4b1) [0x0000000067aef1f1] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_vm_localjump_error+0x66c3) [0x0000000067af5403] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(rb_call_end_proc+0x17e) [0x00000000679e004e] C:\COSMOS\Vendor\Ruby\bin\x64-msvcrt-ruby240.dll(ruby_run_node+0x59) [0x00000000679e2cc9] [0x0000000000402ca7] [0x00000000004013c7] [0x00000000004014fb] C:\Windows\System32\KERNEL32.DLL(BaseThreadInitThunk+0x14) [0x00007ffd8c9b7974]

-- Other runtime information -----------------------------------------------

[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

ghost commented 5 years ago

It looks like it may have crashed in the yard gem. You can try updating to an older version of the yard gem and see if that helps. Or I see you're running Ruby 2.4.0 which isn't the latest in our installer. Try reinstalling and you should get Ruby 2.5.3.

BrunoBMoura commented 5 years ago

By reinstalling you mean reinstalling the whole cosmos or is there a way that i can only update cosmos ruby version by itself?

ghost commented 5 years ago

You could but I think it would be tricky to do so. At that point you'd be in developer mode. It easiest to re-run the installer and go from there.

BrunoBMoura commented 5 years ago

Just checking, completely reinstalling cosmos by it's installation script solved the problem now that it's ruby version is updated to 2.5.3, thanks a lot.

But now I can't find a way to incorporate a custom test scripe into the COSMOS script runner. How can i do such thing?

ghost commented 5 years ago

I'm not sure I understand what you mean by incorporate into Script Runner. Script Runner simply opens COSMOS Ruby scripts and executes them. Please open another issue with more details if you're still having problems.

BrunoBMoura commented 5 years ago

Actually, that was totally my bad, i have already solved the problem and it was quite simple to do it only by altering the test runner file.

Thanks for all the support on this issue!