ahgilak / deno_gi

Deno port of Gnome libraries (such as Gtk).
https://deno.land/x/deno_gi
33 stars 2 forks source link

Getting some structs causes a segmentation fault #5

Closed vixalien closed 11 months ago

vixalien commented 12 months ago

Minimal reproducer:

// mod.ts
import * as gi from "https://github.com/ahgilak/deno_gi/raw/main/mod.ts"
const GObject = gi.require("GObject", "2.0");
GObject.TypeInfo
deno run --unstable --allow-ffi mod.ts

Segmentation fault (core dumped)

This error seems to stem from when gi_registered_type_info_get_gtype() returns none (4n)