I was able to narrow down the problem with GDB, the program crashes inside the gdk_window_new call from Gtk (gdkwindow.c:1359).
For what I could understand, either "attributes" or "attributes_mask" passed arguments is wrong, because the function tries to use "attributes->visual" pointer (which is null) based on the flag GDK_WA_VISUAL of "attributes_mask" (which is set). Either the flag should not have been set or "attributes->visual" should have a valid pointer.
I was able to narrow down the problem with GDB, the program crashes inside the gdk_window_new call from Gtk (gdkwindow.c:1359).
For what I could understand, either "attributes" or "attributes_mask" passed arguments is wrong, because the function tries to use "attributes- >visual" pointer (which is null) based on the flag GDK_WA_VISUAL of "attributes_mask" (which is set). Either the flag should not have been set or "attributes- >visual" should have a valid pointer.