larskanis / fxruby

FXRuby is an extension module for Ruby that provides an interface to the FOX GUI toolkit.

Home Page:http://rubydoc.info/gems/fxruby/frames

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation fault Fox::FXMatrix on Catalina

bryn0097 opened this issue · comments

The following code snippet crashes on Catalina
but works fine on High Sierra, various linux distros,
and win10. Tried with ruby 2.4.0 and 2.6.4. Using
fxruby-1.6.42

#!/usr/bin/env ruby
require 'fox16'
include Fox
application = FXApp.new("FXMatrix", "BugTest")
main = FXMainWindow.new(application, "Test", nil, nil, DECOR_ALL)
test_matrix = FXMatrix.new(main, 8,
MATRIX_BY_COLUMNS|LAYOUT_FILL_Y)
application.create()
main.show(PLACEMENT_SCREEN)
application.run()

Sorry I can't reproduce this segfault - probably because I don't have MacOS Catalina.

Did it change with Big Sur?

I'm on Catalina, latest fxruby version, and this snippet of code does not crash...