{"action":"created","issue":{"url":"https://api.github.com/repos/PistonDevelopers/gfx_graphics/issues/135","labels_url":"https://api.github.com/repos/PistonDevelopers/gfx_graphics/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/PistonDevelopers/gfx_graphics/issues/135/comments","events_url":"https://api.github.com/repos/PistonDevelopers/gfx_graphics/issues/135/events","html_url":"https://github.com/PistonDevelopers/gfx_graphics/issues/135","id":58122404,"number":135,"title":"Error when running \"imagetest\" example","user":{"login":"bvssvni","id":1743862,"avatar_url":"https://avatars.githubusercontent.com/u/1743862?v=3","gravatar_id":"","url":"https://api.github.com/users/bvssvni","html_url":"https://github.com/bvssvni","followers_url":"https://api.github.com/users/bvssvni/followers","following_url":"https://api.github.com/users/bvssvni/following{/other_user}","gists_url":"https://api.github.com/users/bvssvni/gists{/gist_id}","starred_url":"https://api.github.com/users/bvssvni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvssvni/subscriptions","organizations_url":"https://api.github.com/users/bvssvni/orgs","repos_url":"https://api.github.com/users/bvssvni/repos","events_url":"https://api.github.com/users/bvssvni/events{/privacy}","received_events_url":"https://api.github.com/users/bvssvni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PistonDevelopers/gfx_graphics/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-18T20:20:54Z","updated_at":"2015-02-18T21:07:54Z","closed_at":null,"body":"```\r\nRUST_BACKTRACE=1 cargo run --example imagetest\r\n     Running `target/examples/imagetest`\r\nthread '<main>' panicked at 'assertion failed: data.len() * esize + offset_bytes <= buf.get_info().size', /Users/sven/.cargo/git/checkouts/gfx-rs-93bce98024942039/master/src/render/lib.rs:255\r\nstack backtrace:\r\n   1:        0x10e916a77 - sys::backtrace::write::h159c9303aa56d993QnB\r\n   2:        0x10e942a33 - failure::on_fail::h30a5d63a5824ccdbmFK\r\n   3:        0x10e87ada8 - rt::unwind::begin_unwind_inner::h83398b7af9be1f1fCmK\r\n   4:        0x10af498d7 - rt::unwind::begin_unwind::h12418617414705309073\r\n   5:        0x10af69020 - render::Renderer<D>::update_buffer_vec::h11957271402520406697\r\n   6:        0x10af68d3b - g2d::GraphicsBackEnd<'a, C>.BackEnd::tri_list::closure.7606\r\n   7:        0x10af70662 - extern $u22$rust.call$u22$$u20$fn$LP$$RF$mut$u20$for$LT$$u27$r$GT$$u20$core..ops..FnMut$LP$$RF$$u27$r$u20$$u5b$f32$u5d$$RP$$u20$$u2b$$u20$$u27$static$C$$u20$$LP$$RF$$u27$static$u20$$u5b$f32$u5d$$C$$RP$$RP$::object_shim.7755::hd0e0a155049dfd3b\r\n   8:        0x10af68bf2 - rectangle::Rectangle::draw::closure.7604\r\n   9:        0x10af66d27 - g2d::GraphicsBackEnd<'a, C>.BackEnd::tri_list::h10387419007337182272\r\n  10:        0x10af66904 - rectangle::Rectangle::draw::h11168062705347684041\r\n  11:        0x10af6006d - main::closure.7507\r\n  12:        0x10af5fc38 - g2d::G2D::draw::h12446179003519822330\r\n  13:        0x10af1d526 - main::h851c6c8299080913uaa\r\n  14:        0x10e9ba1a9 - rust_try_inner\r\n  15:        0x10e9ba196 - rust_try\r\n  16:        0x10e94347d - rt::lang_start::h06967cab2a70aa6bnzK\r\n  17:        0x10af1d65f - main\r\nAn unknown error occurred\r\n```"},"comment":{"url":"https://api.github.com/repos/PistonDevelopers/gfx_graphics/issues/comments/74948099","html_url":"https://github.com/PistonDevelopers/gfx_graphics/issues/135#issuecomment-74948099","issue_url":"https://api.github.com/repos/PistonDevelopers/gfx_graphics/issues/135","id":74948099,"user":{"login":"bvssvni","id":1743862,"avatar_url":"https://avatars.githubusercontent.com/u/1743862?v=3","gravatar_id":"","url":"https://api.github.com/users/bvssvni","html_url":"https://github.com/bvssvni","followers_url":"https://api.github.com/users/bvssvni/followers","following_url":"https://api.github.com/users/bvssvni/following{/other_user}","gists_url":"https://api.github.com/users/bvssvni/gists{/gist_id}","starred_url":"https://api.github.com/users/bvssvni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvssvni/subscriptions","organizations_url":"https://api.github.com/users/bvssvni/orgs","repos_url":"https://api.github.com/users/bvssvni/repos","events_url":"https://api.github.com/users/bvssvni/events{/privacy}","received_events_url":"https://api.github.com/users/bvssvni/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T21:07:54Z","updated_at":"2015-02-18T21:07:54Z","body":"My guess is this got something to do with the deref `*buffer_pos` when calling the function."}}