Closed 0xWDG closed 3 years ago
Crash report: https://wesleydegroot.nl/ruby.crash
This is a crash in the Ruby runtime, in the C part of the JSON gem. There's a lot of words out there on problems using the system Ruby on Apple Silicon systems -- I don't have one so can't offer any certain advice. Quickly browsing the threads it sounds like some people had luck installing a freshly built Ruby, which is kind of what you did by reinstalling ffi
1.15.3.
I've got the same issue. After the "sudo gem install ffi --platform=ruby" command, I tried "jazzy -h" and the output was correct. Then I tried "jazzy -v" and the program crashed again.
jazzy -v
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi/library.rb:275: [BUG] Bus Error at 0x0000000104ab8000
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0024 p:---- s:0136 e:000135 CFUNC :attach
c:0023 p:0258 s:0130 e:000129 METHOD /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi/library.rb:275
c:0022 p:0023 s:0110 e:000109 METHOD /Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native.rb:40
c:0021 p:0012 s:0105 e:000104 CLASS /Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native/native_context_api.rb:5
c:0020 p:0007 s:0102 e:000101 CLASS /Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native/native_context_api.rb:4
c:0019 p:0007 s:0099 e:000098 TOP /Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native/native_context_api.rb:3 [FINISH]
c:0018 p:---- s:0096 e:000095 CFUNC :require_relative
c:0017 p:0247 s:0091 e:000090 CLASS /Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native.rb:60
c:0016 p:0007 s:0087 e:000086 CLASS /Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native.rb:6
c:0015 p:0014 s:0084 e:000083 TOP /Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native.rb:5 [FINISH]
c:0014 p:---- s:0081 e:000080 CFUNC :require_relative
c:0013 p:0021 s:0076 e:000075 TOP /Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc.rb:31 [FINISH]
c:0012 p:---- s:0073 e:000072 CFUNC :require
c:0011 p:0110 s:0068 e:000067 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0010 p:0027 s:0056 e:000055 TOP /Library/Ruby/Gems/2.6.0/gems/jazzy-0.13.7/lib/jazzy/doc_builder.rb:4 [FINISH]
c:0009 p:---- s:0053 e:000052 CFUNC :require
c:0008 p:0110 s:0048 e:000047 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0007 p:0013 s:0036 e:000035 TOP /Library/Ruby/Gems/2.6.0/gems/jazzy-0.13.7/lib/jazzy.rb:2 [FINISH]
c:0006 p:---- s:0033 e:000032 CFUNC :require
c:0005 p:0110 s:0028 e:000027 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0004 p:0120 s:0016 e:000015 TOP /Library/Ruby/Gems/2.6.0/gems/jazzy-0.13.7/bin/jazzy:13 [FINISH]
c:0003 p:---- s:0013 e:000012 CFUNC :load
c:0002 p:0109 s:0008 E:000890 EVAL /usr/local/bin/jazzy:23 [FINISH]
c:0001 p:0000 s:0003 E:000920 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
/usr/local/bin/jazzy:23:in `<main>'
/usr/local/bin/jazzy:23:in `load'
/Library/Ruby/Gems/2.6.0/gems/jazzy-0.13.7/bin/jazzy:13:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/jazzy-0.13.7/lib/jazzy.rb:2:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/jazzy-0.13.7/lib/jazzy/doc_builder.rb:4:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc.rb:31:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc.rb:31:in `require_relative'
/Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native.rb:5:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native.rb:6:in `<module:SassC>'
/Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native.rb:60:in `<module:Native>'
/Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native.rb:60:in `require_relative'
/Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native/native_context_api.rb:3:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native/native_context_api.rb:4:in `<module:SassC>'
/Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native/native_context_api.rb:5:in `<module:Native>'
/Library/Ruby/Gems/2.6.0/gems/sassc-2.4.0/lib/sassc/native.rb:40:in `attach_function'
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi/library.rb:275:in `attach_function'
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi/library.rb:275:in `attach'
See ffi/ffi#864 - there’s nothing we can do from the jazzy side.
@johnfairh Thanks. I followed the instructions from your link and now I can use jazzy!
Closing, answered.
Hello,
I'm using Jazzy version
0.13.7
Firstly I got the error (from the
ffi
library)which was fixed using
After that it seems all working, but when jazzy started to generate the HTML output this error message showed up: