{"action":"created","issue":{"url":"https://api.github.com/repos/tomaka/glutin/issues/534","labels_url":"https://api.github.com/repos/tomaka/glutin/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/tomaka/glutin/issues/534/comments","events_url":"https://api.github.com/repos/tomaka/glutin/issues/534/events","html_url":"https://github.com/tomaka/glutin/issues/534","id":96480450,"number":534,"title":"Crash when building window","user":{"login":"csherratt","id":62622,"avatar_url":"https://avatars.githubusercontent.com/u/62622?v=3","gravatar_id":"","url":"https://api.github.com/users/csherratt","html_url":"https://github.com/csherratt","followers_url":"https://api.github.com/users/csherratt/followers","following_url":"https://api.github.com/users/csherratt/following{/other_user}","gists_url":"https://api.github.com/users/csherratt/gists{/gist_id}","starred_url":"https://api.github.com/users/csherratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csherratt/subscriptions","organizations_url":"https://api.github.com/users/csherratt/orgs","repos_url":"https://api.github.com/users/csherratt/repos","events_url":"https://api.github.com/users/csherratt/events{/privacy}","received_events_url":"https://api.github.com/users/csherratt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tomaka/glutin/labels/A-x11","name":"A-x11","color":"fbca04"},{"url":"https://api.github.com/repos/tomaka/glutin/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-22T05:41:27Z","updated_at":"2015-07-22T05:58:31Z","closed_at":null,"body":"All the examples seem to be crash for me right now.\r\n\r\nI bisected the regression down to [this change](https://github.com/tomaka/glutin/pull/530).\r\n\r\nbacktrace of crash:\r\n```\r\n#0  0x00007ffff4f8e154 in glXGetFBConfigAttrib () from /usr/lib/nvidia-346/libGL.so.1\r\n#1  0x000055555559b19b in glutin::api::x11::ffi::glx::Glx::GetFBConfigAttrib (self=0x7fffffff75d8, dpy=0x555555998910, \r\n    config=0x7ffff7dd3c58 <main_arena+88>, attribute=32, value=0x7fffffff6cbc)\r\n    at target/debug/build/glutin-96902c15579b5552/out/glx_bindings.rs:650\r\n#2  0x000055555559b0ef in fnfn (attrib=32, fb_config=0x7ffff7dd3c58 <main_arena+88>) at src/api/glx/mod.rs:354\r\n#3  0x000055555559b94d in fnfn (config=0x7ffff7dd3c58 <main_arena+88>) at src/api/glx/mod.rs:360\r\n#4  0x000055555559b809 in glutin::iter::FilterMap<I, F>.Iterator::next (self=0x7fffffff7020) at ../src/libcore/iter.rs:1806\r\n#5  0x000055555559b345 in glutin::vec::Vec<T>.FromIterator<T>::from_iter<core::iter::FilterMap<collections::vec::IntoIter<*const libc::types::common::c95::c_void>, closure>> (iterable=...) at ../src/libcollections/vec.rs:1481\r\n#6  0x000055555559b241 in glutin::iter::Iterator::collect<core::iter::FilterMap<collections::vec::IntoIter<*const libc::types::common::c95::c_void>, closure>,collections::vec::Vec<(*const libc::types::common::c95::c_void, glutin::PixelFormat)>> (self=...)\r\n    at ../src/libcore/iter.rs:563\r\n#7  0x0000555555594c74 in glutin::api::glx::enumerate_configs (glx=0x7fffffff75d8, xlib=0x7ffff682f010, display=0x555555998910)\r\n    at src/api/glx/mod.rs:359\r\n#8  0x000055555559437b in glutin::api::glx::Context::new (glx=..., xlib=0x7ffff682f010, builder=0x7fffffffad80, display=0x555555998910)\r\n    at src/api/glx/mod.rs:43\r\n#9  0x00005555555ce9a7 in glutin::api::x11::window::Window::new (display=0x7ffff6823008, builder=...) at src/api/x11/window.rs:338\r\n#10 0x00005555555d98ff in glutin::platform::platform::api_dispatch::Window::new (builder=...) at src/platform/linux/api_dispatch.rs:155\r\n#11 0x00005555555e0340 in glutin::window::WindowBuilder<'a>::build (self=...) at src/window.rs:182\r\n#12 0x00005555555740fa in window::main () at examples/window.rs:22\r\n#13 0x00005555556a4dc9 in rust_try_inner ()\r\n#14 0x00005555556a4db6 in rust_try ()\r\n#15 0x00005555556a1a69 in rt::lang_start::h5cc45221c651f24bi3w ()\r\n#16 0x000055555557bc4c in main ()\r\n```\r\n\r\nTested running Ubuntu 15.04 with Nvidia 346 drivers."},"comment":{"url":"https://api.github.com/repos/tomaka/glutin/issues/comments/123571935","html_url":"https://github.com/tomaka/glutin/issues/534#issuecomment-123571935","issue_url":"https://api.github.com/repos/tomaka/glutin/issues/534","id":123571935,"user":{"login":"tomaka","id":1412254,"avatar_url":"https://avatars.githubusercontent.com/u/1412254?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaka","html_url":"https://github.com/tomaka","followers_url":"https://api.github.com/users/tomaka/followers","following_url":"https://api.github.com/users/tomaka/following{/other_user}","gists_url":"https://api.github.com/users/tomaka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaka/subscriptions","organizations_url":"https://api.github.com/users/tomaka/orgs","repos_url":"https://api.github.com/users/tomaka/repos","events_url":"https://api.github.com/users/tomaka/events{/privacy}","received_events_url":"https://api.github.com/users/tomaka/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T05:58:31Z","updated_at":"2015-07-22T05:58:31Z","body":"Oh.\r\n\r\nIt may be coming from the fact that we're potentially passing an invalid enum.\r\nI was relying on the fact that the function returns an error in this situation.\r\n"}}