{"action":"created","issue":{"url":"https://api.github.com/repos/Emily82/Manager/issues/3","repository_url":"https://api.github.com/repos/Emily82/Manager","labels_url":"https://api.github.com/repos/Emily82/Manager/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Emily82/Manager/issues/3/comments","events_url":"https://api.github.com/repos/Emily82/Manager/issues/3/events","html_url":"https://github.com/Emily82/Manager/issues/3","id":142849751,"number":3,"title":"Segmentation fault when trying to apply global context css on i386 platform","user":{"login":"Emily82","id":15801706,"avatar_url":"https://avatars.githubusercontent.com/u/15801706?v=3","gravatar_id":"","url":"https://api.github.com/users/Emily82","html_url":"https://github.com/Emily82","followers_url":"https://api.github.com/users/Emily82/followers","following_url":"https://api.github.com/users/Emily82/following{/other_user}","gists_url":"https://api.github.com/users/Emily82/gists{/gist_id}","starred_url":"https://api.github.com/users/Emily82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Emily82/subscriptions","organizations_url":"https://api.github.com/users/Emily82/orgs","repos_url":"https://api.github.com/users/Emily82/repos","events_url":"https://api.github.com/users/Emily82/events{/privacy}","received_events_url":"https://api.github.com/users/Emily82/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-23T03:39:03Z","updated_at":"2016-03-26T18:04:32Z","closed_at":null,"body":"When i try to apply CSS global context i get segmentation fault. This issue occurs only for x86 pc while on amd64 systems there is no problem.\r\nHere's the code\r\n\r\n> \tauto style = new CssProvider();\r\n> \tstyle.loadFromPath(gladePath ~ \"grid.css\");\r\n> \tScreen globalScreen = Screen.getDefault();\r\n> \twriteln(\"CSS DEBUG: \", style);\r\n> \tStyleContext.addProviderForScreen(globalScreen, style, GTK_STYLE_PROVIDER_PRIORITY_USER);\r\n\r\nDoing some writeln debug, the crash occurs exactly when executing the addProviderForScreen call. I have verified with some writeln resolution that the default Screen isn't null."},"comment":{"url":"https://api.github.com/repos/Emily82/Manager/issues/comments/201907522","html_url":"https://github.com/Emily82/Manager/issues/3#issuecomment-201907522","issue_url":"https://api.github.com/repos/Emily82/Manager/issues/3","id":201907522,"user":{"login":"Emily82","id":15801706,"avatar_url":"https://avatars.githubusercontent.com/u/15801706?v=3","gravatar_id":"","url":"https://api.github.com/users/Emily82","html_url":"https://github.com/Emily82","followers_url":"https://api.github.com/users/Emily82/followers","following_url":"https://api.github.com/users/Emily82/following{/other_user}","gists_url":"https://api.github.com/users/Emily82/gists{/gist_id}","starred_url":"https://api.github.com/users/Emily82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Emily82/subscriptions","organizations_url":"https://api.github.com/users/Emily82/orgs","repos_url":"https://api.github.com/users/Emily82/repos","events_url":"https://api.github.com/users/Emily82/events{/privacy}","received_events_url":"https://api.github.com/users/Emily82/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T18:04:32Z","updated_at":"2016-03-26T18:04:32Z","body":"Bug fixed! Thanks to GtkD support by Mike Wey!\r\nHere is the fix http://forum.gtkd.org/groups/GtkD/thread/391/\r\n\r\nIt seems that addProviderForScreen wrapper function used directly, causes SegFault on some 32bit platform. \r\nCalling directly the C function is a good workaround."}}