Open bayornet opened 1 month ago
OS: macOS Sonoma Rails: 6.1 Ruby: 3.2
brew info apache-arrow
==> apache-arrow: stable 17.0.0 (bottled), HEAD
Columnar in-memory analytics layer designed to accelerate big data
https://arrow.apache.org/
Installed
/usr/local/Cellar/apache-arrow/17.0.0_2 (588 files, 122.5MB) *...
brew info apache-arrow-glib
==> apache-arrow-glib: stable 17.0.0 (bottled), HEAD
GLib bindings for Apache Arrow
https://arrow.apache.org/
Installed
/usr/local/Cellar/apache-arrow-glib/17.0.0 (202 files, 6.5MB) *...
bundle info red-arrow
* red-arrow (17.0.0)
Summary: Red Arrow is the Ruby bindings of Apache Arrow
Homepage: https://arrow.apache.org/
Path: /ProjectFolder/.bundle/ruby/3.2.0/gems/red-arrow-17.0.0
Reverse Dependencies:
red-parquet (17.0.0) depends on red-arrow (= 17.0.0)
bundle info red-parquet
* red-parquet (17.0.0)
Summary: Red Parquet is the Ruby bindings of Apache Parquet
Homepage: https://arrow.apache.org/
Path: /ProjectFolder/.bundle/ruby/3.2.0/gems/red-parquet-17.0.0
Reverse Dependencies:
parqueteur (1.11.0) depends on red-parquet (> 10.0)
Could you also show brew info gobject-introspection
?
Could you also try require 'parquet'
? (I think that it's also crashed.)
brew info gobject-introspection
==> gobject-introspection: stable 1.80.1 (bottled)
Generate introspection data for GObject libraries
https://gi.readthedocs.io/en/latest/
Installed
/usr/local/Cellar/gobject-introspection/1.78.0 (194 files, 13.4MB)
Poured from bottle on 2024-05-24 at 06:51:49
/usr/local/Cellar/gobject-introspection/1.80.1 (542 files, 5.8MB) *
Poured from bottle using the formulae.brew.sh API on 2024-08-13 at 10:48:52
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/g/gobject-introspection.rb
License: GPL-2.0-or-later and LGPL-2.0-or-later and MIT
==> Dependencies
Build: bison ✘, cmake ✘, meson ✔, ninja ✔
Required: cairo ✔, glib ✔, pkg-config ✔, python@3.12 ✘
==> Analytics
install: 19,055 (30 days), 70,157 (90 days), 405,020 (365 days)
install-on-request: 11,163 (30 days), 43,286 (90 days), 267,796 (365 days)
build-error: 63 (30 days)
Yes, require 'parquet'
causes a crash.
Thanks.
But sorry. I wanted to write require 'gio2'
not require 'parquet'
... Could you try require 'gio2'
too?
Could you also try require 'glib2'
and require 'gobject-introspection'
?
pry(main)> require 'gio2'
=> true
pry(main)> require 'glib2'
=> true
pry(main)> require 'gobject-introspection'
=> true
require 'parquet'
still causes a crash. Thanks for your quick responses.
Oh, interesting.
Could you try ruby -v -e "require 'arrow'"
?
Same outcome, crash:
ruby -v -e "require 'arrow'"
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin22]
objc[20582]: Class GNotificationCenterDelegate is implemented in both /opt/local/lib/libgio-2.0.0.dylib (0x10c5f3690) and /usr/local/Cellar/glib/2.80.4/lib/libgio-2.0.0.dylib (0x10d2866b0). One of the two will be used. Which one is undefined.
GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type '__ruby_g2r_func__'
from /Users/ProjectFolder/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/gobject-introspection-4.2.2/lib/gobject-introspection/loader.rb:252:in `load_object_info...
is that a clue in there?
Do you have GLib (GIO) both in /opt/local/lib/
and /usr/local/
?
(Do you have multiple Homebrews in /opt/local/
and /usr/local/
?)
/opt/local/lib
ls *gio*
libgio-2.0.0.dylib libgio-2.0.a libgio-2.0.dylib
ls *glib*
libglib-2.0.0.dylib libglib-2.0.a libglib-2.0.dylib
glib-2.0:
include
/usr/local/lib
ls *gio*
libaws-cpp-sdk-waf-regional.dylib
gio:
modules
ls *glib*
libarrow-dataset-glib.1700.dylib libarrow-flight-sql-glib.1700.dylib libgandiva-glib.1700.dylib libpoppler-glib.8.26.0.dylib
libarrow-dataset-glib.dylib libarrow-flight-sql-glib.dylib libgandiva-glib.dylib libpoppler-glib.8.dylib
libarrow-flight-glib.1700.dylib libarrow-glib.1700.dylib libparquet-glib.1700.dylib libpoppler-glib.a
libarrow-flight-glib.dylib libarrow-glib.dylib libparquet-glib.dylib libpoppler-glib.dylib
Is it an expected situation?
If it's not expected, could you remove old Homebrew (/usr/local/
Homebrew?)?
Describe the bug, including details regarding any error messages, version, and platform.
Hi
When trying to
require 'parquet'
in a rails console, it causes a segmentation fault./ProjectFolder/.bundle/ruby/3.2.0/gems/gobject-introspection-4.2.2/lib/gobject-introspection/loader.rb:187: [BUG] Segmentation fault at 0x0000000000000010 ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin22]
This seems to be an issue with
go-introspection
.Here is some of the stacktrace:
Component(s)
Ruby