{"action":"created","issue":{"url":"https://api.github.com/repos/sunjay/turtle/issues/63","repository_url":"https://api.github.com/repos/sunjay/turtle","labels_url":"https://api.github.com/repos/sunjay/turtle/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/sunjay/turtle/issues/63/comments","events_url":"https://api.github.com/repos/sunjay/turtle/issues/63/events","html_url":"https://github.com/sunjay/turtle/issues/63","id":294167773,"number":63,"title":"\"Couldn\\'t find any pixel format that matches the criterias.\" ?","user":{"login":"biluohc","id":18420361,"avatar_url":"https://avatars2.githubusercontent.com/u/18420361?v=4","gravatar_id":"","url":"https://api.github.com/users/biluohc","html_url":"https://github.com/biluohc","followers_url":"https://api.github.com/users/biluohc/followers","following_url":"https://api.github.com/users/biluohc/following{/other_user}","gists_url":"https://api.github.com/users/biluohc/gists{/gist_id}","starred_url":"https://api.github.com/users/biluohc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biluohc/subscriptions","organizations_url":"https://api.github.com/users/biluohc/orgs","repos_url":"https://api.github.com/users/biluohc/repos","events_url":"https://api.github.com/users/biluohc/events{/privacy}","received_events_url":"https://api.github.com/users/biluohc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-04T03:59:57Z","updated_at":"2018-02-04T06:42:56Z","closed_at":null,"author_association":"NONE","body":"```sh\r\n D/c/apx ╍ cargo r                                                                                                                           (%1) \r\n    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs\r\n     Running `target/debug/apx`\r\nthread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: \"Couldn\\'t find any pixel format that matches the criterias.\"', libcore/result.rs:916:5\r\nstack backtrace:\r\n   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace\r\n             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49\r\n   1: std::sys_common::backtrace::print\r\n             at libstd/sys_common/backtrace.rs:68\r\n             at libstd/sys_common/backtrace.rs:57\r\n   2: std::panicking::default_hook::{{closure}}\r\n             at libstd/panicking.rs:380\r\n   3: std::panicking::default_hook\r\n             at libstd/panicking.rs:396\r\n   4: std::panicking::rust_panic_with_hook\r\n             at libstd/panicking.rs:576\r\n   5: std::panicking::begin_panic\r\n             at libstd/panicking.rs:537\r\n   6: std::panicking::begin_panic_fmt\r\n             at libstd/panicking.rs:521\r\n   7: rust_begin_unwind\r\n             at libstd/panicking.rs:497\r\n   8: core::panicking::panic_fmt\r\n             at libcore/panicking.rs:71\r\n   9: core::result::unwrap_failed\r\n             at /checkout/src/libcore/macros.rs:23\r\n  10: <core::result::Result<T, E>>::unwrap\r\n             at /checkout/src/libcore/result.rs:782\r\n  11: turtle::renderer::Renderer::run\r\n             at /home/mxo/.cargo/registry/src/github.com-1ecc6299db9ec823/turtle-1.0.0-alpha.8/src/renderer.rs:82\r\n  12: turtle::server::main\r\n             at /home/mxo/.cargo/registry/src/github.com-1ecc6299db9ec823/turtle-1.0.0-alpha.8/src/server.rs:87\r\n  13: turtle::server::start\r\n             at /home/mxo/.cargo/registry/src/github.com-1ecc6299db9ec823/turtle-1.0.0-alpha.8/src/server.rs:63\r\n  14: turtle::turtle_window::TurtleWindow::new\r\n             at /home/mxo/.cargo/registry/src/github.com-1ecc6299db9ec823/turtle-1.0.0-alpha.8/src/turtle_window.rs:25\r\n  15: turtle::turtle::Turtle::new\r\n             at /home/mxo/.cargo/registry/src/github.com-1ecc6299db9ec823/turtle-1.0.0-alpha.8/src/turtle.rs:102\r\n  16: apx::main\r\n             at src/main.rs:5\r\n  17: std::rt::lang_start::{{closure}}\r\n             at /checkout/src/libstd/rt.rs:74\r\n  18: std::panicking::try::do_call\r\n             at libstd/rt.rs:59\r\n             at libstd/panicking.rs:479\r\n  19: __rust_maybe_catch_panic\r\n             at libpanic_unwind/lib.rs:102\r\n  20: std::rt::lang_start_internal\r\n             at libstd/panicking.rs:458\r\n             at libstd/panic.rs:358\r\n             at libstd/rt.rs:58\r\n  21: std::rt::lang_start\r\n             at /checkout/src/libstd/rt.rs:74\r\n  22: main\r\n  23: __libc_start_main\r\n  24: _start\r\n             at ../sysdeps/x86_64/start.S:120\r\n D/c/apx ╍ cat src/main.rs                                                                                                       (%1) (1) (458ms) \r\nextern crate turtle;\r\n\r\nuse turtle::Turtle;\r\nfn main() {\r\n    let mut turtle = Turtle::new();\r\n\r\n    for _ in 0..360 {\r\n        // Move forward three steps\r\n        turtle.forward(3.0);\r\n        // Rotate to the right (clockwise) by 1 degree\r\n        turtle.right(1.0);\r\n    }\r\n}\r\n D/c/apx ╍ rustc -V                                                                                                                          (%1) \r\nrustc 1.25.0-nightly (15a1e2844 2018-01-20)\r\n D/c/apx ╍ screenfetch                                                                                                                       (%1) \r\n             .;ldkO0000Okdl;.                mxo@Tum\r\n         .;d00xl:^''''''^:ok00d;.            OS: openSUSE 20180116\r\n       .d00l'                'o00d.          Kernel: x86_64 Linux 4.14.13-1-default\r\n     .d0Kd'  Okxol:;,.          :O0d.        Uptime: 47m\r\n    .OKKKK0kOKKKKKKKKKKOxo:,      lKO.       Packages: 2453\r\n   ,0KKKKKKKKKKKKKKKK0P^,,,^dx:    ;00,      Shell: fish 2.7.0\r\n  .OKKKKKKKKKKKKKKKKk'.oOPPb.'0k.   cKO.     Resolution: 1920x1080\r\n  :KKKKKKKKKKKKKKKKK: kKx..dd lKd   'OK:     DE: GNOME 3.26.1\r\n  dKKKKKKKKKKKOx0KKKd ^0KKKO' kKKc   dKd     WM: GNOME Shell\r\n  dKKKKKKKKKKKK;.;oOKx,..^..;kKKK0.  dKd     WM Theme: Adwaita\r\n  :KKKKKKKKKKKK0o;...^cdxxOK0O/^^'  .0K:     GTK Theme: Paper [GTK2/3]\r\n   kKKKKKKKKKKKKKKK0x;,,......,;od  lKk      Icon Theme: Numix-Circle-Light\r\n   '0KKKKKKKKKKKKKKKKKKKKK00KKOo^  c00'      Font: Cantarell 15\r\n    'kKKKOxddxkOO00000Okxoc;''   .dKk'       CPU: Intel Core i7-4710MQ @ 8x 3.5GHz [0°C]\r\n      l0Ko.                    .c00l'        GPU: intel\r\n       'l0Kk:.              .;xK0l'          RAM: 2761MiB / 7889MiB\r\n          'lkK0xl:;,,,,;:ldO0kl'            \r\n              '^:ldxkkkkxdl:^'              \r\n D/c/apx ╍                                                                                                                        (%1) (2s 511ms)                                                                                                                         (%1) \r\n```"},"comment":{"url":"https://api.github.com/repos/sunjay/turtle/issues/comments/362885003","html_url":"https://github.com/sunjay/turtle/issues/63#issuecomment-362885003","issue_url":"https://api.github.com/repos/sunjay/turtle/issues/63","id":362885003,"user":{"login":"sunjay","id":530939,"avatar_url":"https://avatars2.githubusercontent.com/u/530939?v=4","gravatar_id":"","url":"https://api.github.com/users/sunjay","html_url":"https://github.com/sunjay","followers_url":"https://api.github.com/users/sunjay/followers","following_url":"https://api.github.com/users/sunjay/following{/other_user}","gists_url":"https://api.github.com/users/sunjay/gists{/gist_id}","starred_url":"https://api.github.com/users/sunjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunjay/subscriptions","organizations_url":"https://api.github.com/users/sunjay/orgs","repos_url":"https://api.github.com/users/sunjay/repos","events_url":"https://api.github.com/users/sunjay/events{/privacy}","received_events_url":"https://api.github.com/users/sunjay/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T06:42:56Z","updated_at":"2018-02-04T06:42:56Z","author_association":"OWNER","body":"Hi @biluohc! Thank you for your very detailed bug report. :smile: \r\n\r\nThis issue has to do with your graphics card (GPU). We use the piston_window crate to draw the turtle's drawings. That crate requires an sRGB color scale which intel graphics apparently does not support. I personally get annoyed with this often because my computer is dual graphics so I have to switch to my nvidia card in order to use turtle.\r\n\r\nYou can see that you have intel graphics running because of the `GPU: intel` line in your screenfetch output.\r\n\r\nHere are some GitHub issues that are related to this that may help you find a solution:\r\n1. [PistonDevelopers/piston#1202 - Couldn't find any pixel format that matched the criterias.](https://github.com/PistonDevelopers/piston/issues/1202)\r\n2. [PistonDevelopers/gfx_graphics#293 - Old graphics cards does not support sRGB conversion](https://github.com/PistonDevelopers/gfx_graphics/issues/293)\r\n\r\n**If you have another more powerful graphics card/GPU, switching to that is the easiest way to fix this.** Otherwise, you may need to wait for either piston_window to fix the issue or for us to switch to something else (#49). That is probably at least another couple of months away. If you have the chance, it would be great if you could go report this issue in the [comments of the piston_window issue](https://github.com/PistonDevelopers/piston/issues/1202) that I linked earlier. All of the information you provided me would be valuable to them as well.\r\n\r\nSorry about that! If you still need help solving the issue, please let me know and I will do my best to help you. It would be great if you could comment here and let us know what you did in case you're able to fix it on your own."}}
{"actor":{"display_login":"sunjay"}}