Sign up

gtk.Builder broken in 64bit?

i have been only working with 32bit binaries/GTK so far, but now i am
getting started with 64bit, to eventually migrate my latest project. i
got a couple of demos working alright (i.e., modulo some spurious
warnings), with both dmd and ldc frontends.

unfortunately, the '..\demos\builder\builderTest.d' compiles but crashes
upon start in 64bit (compiles&runs fine in 32bit). my own project
crashes as well, not surprising as gtk.Builder is essential to it.

i tried several GTK versions, including
http://master.dl.sourceforge.net/project/gtkd-packages/gtk3-runtime/gtk3-runtime3.20.464-bit.exe
and gtk3.22.1 via msys2, both failing just the same.

unless the builder is broken in all the latest 64bit GTK packages, the
GtkD gtk.Builder module seems to be unfit for 64bit.

hoping that this is a known issue with a known solution...

/det

Re: gtk.Builder broken in 64bit?

On 10/18/2016 04:43 AM, captaindet wrote:

i have been only working with 32bit binaries/GTK so far, but now i am
getting started with 64bit, to eventually migrate my latest project. i
got a couple of demos working alright (i.e., modulo some spurious
warnings), with both dmd and ldc frontends.

unfortunately, the '..\demos\builder\builderTest.d' compiles but crashes
upon start in 64bit (compiles&runs fine in 32bit). my own project
crashes as well, not surprising as gtk.Builder is essential to it.

i tried several GTK versions, including
http://master.dl.sourceforge.net/project/gtkd-packages/gtk3-runtime/gtk3-runtime3.20.464-bit.exe

and gtk3.22.1 via msys2, both failing just the same.

unless the builder is broken in all the latest 64bit GTK packages, the
GtkD gtk.Builder module seems to be unfit for 64bit.

hoping that this is a known issue with a known solution...

/det

It's not a known issue, but i will take a look.

Re: gtk.Builder broken in 64bit?

It's not a known issue, but i will take a look.

thanks, much appreciated

Re: gtk.Builder broken in 64bit?

On 10/18/2016 10:59 PM, captaindet wrote:

It's not a known issue, but i will take a look.

thanks, much appreciated

I found what is causing this:

gtk.Builder uses glib.Module internally, on win 64 gmoduleopen fails
to load so we are calling a null pointer. In the 64 bit copy of Gtk this
function is named gmoduleopen_utf8 for some reason.

Re: gtk.Builder broken in 64bit?

On 2016-10-19 10:58, Mike Wey wrote:

On 10/18/2016 10:59 PM, captaindet wrote:

It's not a known issue, but i will take a look.

thanks, much appreciated

I found what is causing this:

gtk.Builder uses glib.Module internally, on win 64 gmoduleopen fails
to load so we are calling a null pointer. In the 64 bit copy of Gtk this
function is named gmoduleopen_utf8 for some reason.

glad it is something simple. will you supply a fixed version soon?

or, in order to fix my version: is just one extra version block
necessary in glib.Module? (will try later)

Re: gtk.Builder broken in 64bit?

On 10/19/2016 05:39 AM, captaindet wrote:

glad it is something simple. will you supply a fixed version soon?

or, in order to fix my version: is just one extra version block
necessary in glib.Module? (will try later)

https://github.com/gtkd-developers/GtkD/commit/8c8f950f2751b66feea6cf50ed8df7f408cacb97

Re: gtk.Builder broken in 64bit?

On 2016-10-20 09:52, Mike Wey wrote:

https://github.com/gtkd-developers/GtkD/commit/8c8f950f2751b66feea6cf50ed8df7f408cacb97

thanks mike!

so was it a specific issue to the windows (msys2) version of the 64bit
GTK library? because this is what version(Win64) tests for. if the issue
applies to all 64bit GTK libraries, maybe version(DLP64) is better, or <br>version(X8664), see https://dlang.org/spec/version.html#predefined-versions

Re: gtk.Builder broken in 64bit?

On 10/20/2016 12:29 AM, captaindet wrote:

On 2016-10-20 09:52, Mike Wey wrote:

https://github.com/gtkd-developers/GtkD/commit/8c8f950f2751b66feea6cf50ed8df7f408cacb97

thanks mike!

so was it a specific issue to the windows (msys2) version of the 64bit
GTK library? because this is what version(Win64) tests for. if the issue
applies to all 64bit GTK libraries, maybe version(DLP64) is better, or<br>version(X8664), see
https://dlang.org/spec/version.html#predefined-versions

This is indeed specific to Win64.