I have built a small application with Piston to show a slideshow of photos from my Flickr photostream:
The goal is to have it run on a SBC like a Raspberry Pi. It runs fine on desktop Linux machines but when running on an actual Raspberry Pi 3 it panics somewhere in gfx_graphics::back_end::Gfx2d<R>>::new
. The error is not especially helpful as even a debug build lacks a line number for where the error occurs and there’s a number of unwrap
s in Gfx2d::new
.
I was wondering if the error made more sense to anyone else or if anyone had any experience or tips running Piston projects on a Raspberry Pi.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: DescriptorInit(PixelExport("Target0", None))', libcore/result.rs:945:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::panicking::default_hook::{{closure}}
at libstd/sys_common/backtrace.rs:71
2: std::panicking::rust_panic_with_hook
at libstd/panicking.rs:227
at libstd/panicking.rs:511
3: std::panicking::continue_panic_fmt
at libstd/panicking.rs:426
4: rust_begin_unwind
at libstd/panicking.rs:337
5: core::panicking::panic_fmt
at libcore/panicking.rs:92
6: core::result::unwrap_failed
7: <gfx_graphics::back_end::Gfx2d<R>>::new
8: wallflower::main
9: std::rt::lang_start::{{closure}}
10: main
11: __libc_start_main