Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with the gtk4 gem #50

Open
SamiSieranoja opened this issue Nov 12, 2023 · 1 comment
Open

Conflict with the gtk4 gem #50

SamiSieranoja opened this issue Nov 12, 2023 · 1 comment

Comments

@SamiSieranoja
Copy link

I get a segfault when running the following code:

#!/usr/bin/env ruby
require "gtk4"
require "trie"
t = Trie.new

If I remove "require "gtk4", then it works fine. Not sure if bug is in the gtk4 gem or the trie gem.

Requirements:

gem install fast_trie
gem install gtk4

Using ruby version ruby 3.1.4p223

@kou
Copy link

kou commented Nov 13, 2023

I think that gtk4 isn't related.
I think that trie_new()

obj = Data_Wrap_Struct(klass, 0, trie_free, trie_new());
must be called with AlphaMap *:
https://github.com/tlwg/libdatrie/blob/b174e656ed365771303c8d5fb1342583f5b3c2a8/datrie/trie.h#L120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants