Sign up

Pages: 1 2 3

Re: Segmentation fault when trying to apply global css using addProviderForScreen

On 03/24/2016 11:38 PM, Emily wrote:

One question, how did you find my github project? Simply curiosity :D

Searching for your email address on github.

Re: Segmentation fault when trying to apply global css using addProviderForScreen

I worked on my project following your advices.

Now all Gtkd calls are made only by guiThread thread and even the class View constructor is made by the same thread.

However the CSS global issues still exists and only on 32bit pc.

If you want, you can see my last commit, to reproduce the problem just uncomment line 447 in Viewer.d file.

Thanks in advance for your patience :)

Re: Segmentation fault when trying to apply global css using addProviderForScreen

On 03/25/2016 04:33 PM, Emily wrote:

I worked on my project following your advices.

Now all Gtkd calls are made only by guiThread thread and even the class View constructor is made by the same thread.

However the CSS global issues still exists and only on 32bit pc.

If you want, you can see my last commit, to reproduce the problem just uncomment line 447 in Viewer.d file.

Thanks in advance for your patience :)

It might be a GTK issue. On Kubuntu 14.04 with GTK 3.10 i can reproduce
the segfault.
While using a 32bit version of Archlinux with GTK 3.18 the segfault
doesn't occur.

Re: Segmentation fault when trying to apply global css using addProviderForScreen

On Sat, 26 Mar 2016 13:59:24 +0100, Mike Wey wrote:

On 03/25/2016 04:33 PM, Emily wrote:

I worked on my project following your advices.

Now all Gtkd calls are made only by guiThread thread and even the class View constructor is made by the same thread.

However the CSS global issues still exists and only on 32bit pc.

If you want, you can see my last commit, to reproduce the problem just uncomment line 447 in Viewer.d file.

Thanks in advance for your patience :)

It might be a GTK issue. On Kubuntu 14.04 with GTK 3.10 i can reproduce
the segfault.
While using a 32bit version of Archlinux with GTK 3.18 the segfault
doesn't occur.

Interesting, i hope the issue will be fixed soon, thank you for the support!

Re: Segmentation fault when trying to apply global css using addProviderForScreen

On 03/26/2016 04:01 PM, Emily wrote:

On Sat, 26 Mar 2016 13:59:24 +0100, Mike Wey wrote:

On 03/25/2016 04:33 PM, Emily wrote:

I worked on my project following your advices.

Now all Gtkd calls are made only by guiThread thread and even the class View constructor is made by the same thread.

However the CSS global issues still exists and only on 32bit pc.

If you want, you can see my last commit, to reproduce the problem just uncomment line 447 in Viewer.d file.

Thanks in advance for your patience :)

It might be a GTK issue. On Kubuntu 14.04 with GTK 3.10 i can reproduce
the segfault.
While using a 32bit version of Archlinux with GTK 3.18 the segfault
doesn't occur.

Interesting, i hope the issue will be fixed soon, thank you for the support!

Interestingly calling the c function directly:

import gtkc.gtk;
gtk_style_context_add_provider_for_screen(globalScreen.getScreenStruct(), style.getStyleProviderStruct(), 
GTK_STYLE_PROVIDER_PRIORITY_USER);

Doesn't cause a segfault.

Re: Segmentation fault when trying to apply global css using addProviderForScreen

On Sat, 26 Mar 2016 18:12:53 +0100, Mike Wey wrote:

On 03/26/2016 04:01 PM, Emily wrote:

On Sat, 26 Mar 2016 13:59:24 +0100, Mike Wey wrote:

On 03/25/2016 04:33 PM, Emily wrote:

I worked on my project following your advices.

Now all Gtkd calls are made only by guiThread thread and even the class View constructor is made by the same thread.

However the CSS global issues still exists and only on 32bit pc.

If you want, you can see my last commit, to reproduce the problem just uncomment line 447 in Viewer.d file.

Thanks in advance for your patience :)

It might be a GTK issue. On Kubuntu 14.04 with GTK 3.10 i can reproduce
the segfault.
While using a 32bit version of Archlinux with GTK 3.18 the segfault
doesn't occur.

Interesting, i hope the issue will be fixed soon, thank you for the support!

Interestingly calling the c function directly:

import gtkc.gtk;
gtk_style_context_add_provider_for_screen(globalScreen.getScreenStruct(), style.getStyleProviderStruct(), 
GTK_STYLE_PROVIDER_PRIORITY_USER);

Doesn't cause a segfault.

Wow i try it now thank you!

Re: Segmentation fault when trying to apply global css using addProviderForScreen

I confirm!!! It works!!! Thank you very much!

Then it could be a bug in GtkD wrapper than Gtk?

Re: Segmentation fault when trying to apply global css using addProviderForScreen

On 03/26/2016 06:28 PM, Emily wrote:

I confirm!!! It works!!! Thank you very much!

Then it could be a bug in GtkD wrapper than Gtk?

Got a little further with this.

The segfault only happens when the shared library version of GtkD is
used and the application is build with -inline.

Re: Segmentation fault when trying to apply global css using addProviderForScreen

On Sun, 27 Mar 2016 23:29:44 +0200, Mike Wey wrote:

On 03/26/2016 06:28 PM, Emily wrote:

I confirm!!! It works!!! Thank you very much!

Then it could be a bug in GtkD wrapper than Gtk?

Got a little further with this.

The segfault only happens when the shared library version of GtkD is
used and the application is build with -inline.

In my makefile i don't use -inline option, however i use the shared library.

Re: Segmentation fault when trying to apply global css using addProviderForScreen

On 03/28/2016 04:04 PM, Emily wrote:

On Sun, 27 Mar 2016 23:29:44 +0200, Mike Wey wrote:

Got a little further with this.

The segfault only happens when the shared library version of GtkD is
used and the application is build with -inline.

In my makefile i don't use -inline option, however i use the shared library.

Line 16 of the Make file ;) :

release: DFLAGS += -gc -release -inline -noboundscheck

Removing "-inline", i no longer get a segfault.

Pages: 1 2 3