Skip to content

Commit

Permalink
Highlight vc_dispmanx_snapshot() failure and link to bug trackers to …
Browse files Browse the repository at this point in the history
…how to recover. raspberrypi/userland#461 #28
  • Loading branch information
juj committed Oct 1, 2018
1 parent df4d5db commit 6481f92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ bool SnapshotFramebuffer(uint16_t *destination)
int failed = vc_dispmanx_snapshot(display, screen_resource, (DISPMANX_TRANSFORM_T)0);
if (failed)
{
printf("vc_dispmanx_snapshot() failed with return code %d!\n", failed);
// We cannot do much better here (or do not know what to do), it looks like if vc_dispmanx_snapshot() fails once, it will crash if attempted to be called again, and it will not recover. We can only terminate here. Sad :/
printf("vc_dispmanx_snapshot() failed with return code %d! If this appears related to a change in HDMI/display resolution, see https://github.com/juj/fbcp-ili9341/issues/28 and https://github.com/raspberrypi/userland/issues/461 (try setting fbcp-ili9341 up as an infinitely restarting system service to recover)\n", failed);
MarkProgramQuitting();
return false;
}
Expand Down

0 comments on commit 6481f92

Please sign in to comment.