On 03/24/2016 12:54 AM, Emily wrote:
On Wed, 23 Mar 2016 22:03:29 GMT, Mike Wey wrote:
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 codeauto 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.
Thanks for response, i'm using Linux Kubuntu 14.04 32bit on a pc and 64bit on another.
can you post a more complete example?
The snippet doesn't cause any issues for me on 32 bit KUbuntu 14.04.