On Wed, 23 Mar 2016 18:32:23 GMT, Emily wrote:

Hi guys, i'm developing a small board game with gtkD wrapper.

When i try to apply CSS in a global context i get Segmentation fault. This issue occurs only for x86 pc while on amd64 systems there is no problem.
Here's the code

auto style = new CssProvider();
style.loadFromPath(gladePath ~ "grid.css");
Screen globalScreen = Screen.getDefault();
writeln("CSS DEBUG: ", style);
StyleContext.addProviderForScreen(globalScreen, style, GTK_STYLE_PROVIDER_PRIORITY_USER);

Doing some writeln debug, the crash occurs exactly when executing the addProviderForScreen call. I have verified that the default Screen isn't null.

What OS are you using? Linux?

I can't reproduce this on 32bit windows, testing with an empty css file.