gjtorikian / mathematical

Convert mathematical equations to SVGs, PNGs, or MathML. A general wrapper to Lasem and mtex2MML.
https://gjtorikian.github.io/mathematical/
MIT License
166 stars 31 forks source link

`Segmentation fault at 0x000060002054cfb0` on M1 Mac #108

Open kzhk75 opened 1 year ago

kzhk75 commented 1 year ago

Hi,

I'm trying to write a document on My M1 MacOS with mathematical formula using asciidoctor-mathematical.

After installing asciidoctor-mathematical related , I happened to meet the following:

% asciidoctor-pdf -r asciidoctor-mathematical -o test.pdf sample.adoc                         
/Users/kzhk/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/mathematical-1.6.14/lib/mathematical.rb:47: [BUG] Segmentation fault at 0x000060002054cfb0
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [arm64-darwin21]

-- 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. 

Can we avoid a such error? If a file in DiagnosticReports is in need, I'll upload it.

This works well in my Intel Mac.

-- update It seems same as in https://github.com/ffi/ffi/issues/864