{"action":"closed","issue":{"url":"https://api.github.com/repos/retep998/winapi-rs/issues/269","repository_url":"https://api.github.com/repos/retep998/winapi-rs","labels_url":"https://api.github.com/repos/retep998/winapi-rs/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/retep998/winapi-rs/issues/269/comments","events_url":"https://api.github.com/repos/retep998/winapi-rs/issues/269/events","html_url":"https://github.com/retep998/winapi-rs/issues/269","id":141426568,"number":269,"title":"Error with cpal and winapi 0.2.6","user":{"login":"Bobo1239","id":2302947,"avatar_url":"https://avatars.githubusercontent.com/u/2302947?v=3","gravatar_id":"","url":"https://api.github.com/users/Bobo1239","html_url":"https://github.com/Bobo1239","followers_url":"https://api.github.com/users/Bobo1239/followers","following_url":"https://api.github.com/users/Bobo1239/following{/other_user}","gists_url":"https://api.github.com/users/Bobo1239/gists{/gist_id}","starred_url":"https://api.github.com/users/Bobo1239/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bobo1239/subscriptions","organizations_url":"https://api.github.com/users/Bobo1239/orgs","repos_url":"https://api.github.com/users/Bobo1239/repos","events_url":"https://api.github.com/users/Bobo1239/events{/privacy}","received_events_url":"https://api.github.com/users/Bobo1239/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-16T22:59:16Z","updated_at":"2016-04-29T15:00:50Z","closed_at":"2016-04-29T15:00:50Z","body":"There seems to have been some kind of regression. Running the [enumerate example](https://github.com/tomaka/cpal/blob/master/examples/enumerate.rs) works flawlessly with 0.2.5 but after updating to 0.2.6, an error happens:\r\n\r\n    Bobo1239@WORKSTATION-W10 MINGW64 /e/development/Rust/asd\r\n    $ cargo run\r\n         Running `target\\debug\\asd.exe`\r\n    Endpoints:\r\n    1. Endpoint \"{0.0.0.00000000}.{be9148a0-3456-47b9-a0a0-2bf1df9b3448}\" Audio formats:\r\n    1.1. Format { channels: [FrontLeft, FrontRight], samples_rate: SamplesRate(44100), data_type: F32 }\r\n    2. Endpoint \"{0.0.0.00000000}.{bfbba739-0c5c-4130-9bb1-54386d837a50}\" Audio formats:\r\n    2.1. Format { channels: [FrontLeft, FrontRight], samples_rate: SamplesRate(44100), data_type: F32 }\r\n    3. Endpoint \"{0.0.0.00000000}.{e9227c7f-b25f-43c8-ac7a-39c9391b424e}\" Audio formats:\r\n    3.1. Format { channels: [FrontLeft, FrontRight], samples_rate: SamplesRate(48000), data_type: F32 }\r\n\r\n    Bobo1239@WORKSTATION-W10 MINGW64 /e/development/Rust/asd\r\n    $ cargo update\r\n        Updating registry `https://github.com/rust-lang/crates.io-index`\r\n        Updating winapi v0.2.5 -> v0.2.6\r\n\r\n    Bobo1239@WORKSTATION-W10 MINGW64 /e/development/Rust/asd\r\n    $ cargo run\r\n       Compiling ole32-sys v0.1.0\r\n       Compiling cpal v0.2.9\r\n    C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs:39:9: 39:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok\r\n    C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs:39 #[allow(raw_pointer_derive)]\r\n                                                                                                                    ^~~~~~~~~~~~~~~~~~\r\n    C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs:39:9: 39:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok\r\n    C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs:39 #[allow(raw_pointer_derive)]\r\n                                                                                                                    ^~~~~~~~~~~~~~~~~~\r\n    C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs:38:16: 38:21 note: in this expansion of #[derive_Clone] (defined in C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs)\r\n    C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs:39:9: 39:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok\r\n    C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs:39 #[allow(raw_pointer_derive)]\r\n                                                                                                                    ^~~~~~~~~~~~~~~~~~\r\n    C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs:38:10: 38:14 note: in this expansion of #[derive_Copy] (defined in C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs)\r\n       Compiling asd v0.1.0 (file:///E:/development/Rust/asd)\r\n    src\\main.rs:3:5: 3:13 warning: unused import, #[warn(unused_imports)] on by default\r\n    src\\main.rs:3 use cpal::*;\r\n                      ^~~~~~~~\r\n         Running `target\\debug\\asd.exe`\r\n    Endpoints:\r\n    1. Endpoint \"{0.0.0.00000000}.{be9148a0-3456-47b9-a0a0-2bf1df9b3448}\" Audio formats:\r\n    thread '<main>' panicked at 'Unknown SubFormat GUID returned by GetMixFormat: GUID { Data1: 1048576, Data2: 128, Data3: 43520, Data4: [0, 56, 155, 113, 10, 49, 105, 57] }', C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs:191\r\n    thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: \"PoisonError { inner: .. }\"', ../src/libcore\\result.rs:688\r\n    stack backtrace:\r\n       0:           0x7561aa - sys::backtrace::write::he59f738983b73261zlu\r\n       1:           0x75e687 - panicking::default_handler::h5387b6771edf5f5a0Xy\r\n       2:           0x71f988 - sys_common::unwind::begin_unwind_inner::hce5c1d8577eb6671U8s\r\n       3:           0x72025b - sys_common::unwind::begin_unwind_fmt::h563db00c15edff8207s\r\n       4:           0x7528a2 - rust_begin_unwind\r\n       5:           0x771098 - panicking::panic_fmt::h3dc40a8b303af4f9zYL\r\n       6:           0x402b38 - result::Result<T, E>::unwrap::h5258964690686995623\r\n                            at ../src/libcore/macros.rs:29\r\n       7:           0x40273f - cpal_impl::Endpoint.Drop::drop::hb1bd58f9c598cd4fj4a\r\n                            at C:\\msys64\\home\\Bobo1239\\.cargo\\registry\\src\\github.com-88ac128001ac3a9a\\cpal-0.2.9\\src\\wasapi/mod.rs:240\r\n       8:           0x40269e - cpal..cpal_impl..Endpoint::drop.14272::hbb1a2b62c3a7db62\r\n       9:           0x402658 - cpal..Endpoint::drop.14269::h373182430cffd7f6\r\n      10:           0x401914 - main::h5153aed50d95138bgaa\r\n                            at src/main.rs:9\r\n      11:           0x75dd88 - sys_common::unwind::try::try_fn::h15965401945723051019\r\n      12:           0x7491df - sys_common::unwind::try::inner_try::hb2e82d814f76fd0ds5s\r\n      13:           0x75dc89 - rt::lang_start::h39f4c98014ab81eaeQy\r\n      14:           0x4055aa - main\r\n      15:           0x4013b4 - _tmainCRTStartup\r\n      16:           0x4014e7 - mainCRTStartup\r\n      17:     0x7fff67f68101 - je_arena_alloc_junk_small.part.25\r\n    thread panicked while panicking. aborting.\r\n           error Process didn't exit successfully: `target\\debug\\asd.exe` (exit code: 3221225501)\r\n    Illegal instruction"}}