Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"vc_dispmanx_snapshot() failed with return code -1!" when kodi launches #28

Closed
DSchndr opened this issue Aug 18, 2018 · 5 comments
Closed

Comments

@DSchndr
Copy link

DSchndr commented Aug 18, 2018

When fbcp-ili9341 (also happens on fbcp-rpi) is running and kodi gets launched fbcp-ili9341 exits with "vc_dispmanx_snapshot() failed with return code -1!" on pi zero.
But when running fbcp-ili9341 after kodi was started everything works like it should.

Maybe retrying couple of times to make an dispmanx snapshot with some delay could fix this issue?

@juj
Copy link
Owner

juj commented Aug 19, 2018

I believe this is the "Screen resize freezes DispmanX" issue mentioned in the readme. See raspberrypi/userland#461 for more information.

(Although I do not have Kodi to verify)

@juj
Copy link
Owner

juj commented Oct 1, 2018

I'll close this since there is no good course of action that I know that fbcp-ili9341 could take here. Updated the call site of where the print occurs to point back to bug trackers. It seems that what people are doing is they set up fbcp or fbcp-ili9341 as a system service that reboots itself when this occurs. That is the best way to recover here that I currently know.

@juj juj closed this as completed Oct 1, 2018
@xjamxx
Copy link

xjamxx commented Oct 19, 2018

I'll close this since there is no good course of action that I know that fbcp-ili9341 could take here. Updated the call site of where the print occurs to point back to bug trackers. It seems that what people are doing is they set up fbcp or fbcp-ili9341 as a system service that reboots itself when this occurs. That is the best way to recover here that I currently know.

I tried with systemd service unit, restart on-failure, but the screen freeze anyway, so not sure how to implement that?

@juj
Copy link
Owner

juj commented Oct 22, 2018

I have not tried system services myself. In this thread #20 @Trekintosh has a solution for that. It may be possible that it is some other issue.

You mentioned in first comment that But when running fbcp-ili9341 after kodi was started everything works like it should. , that makes me wonder: If you first have fbcp-ili9341 running, then launch Kodi to get the crash in fbcp-ili9341, and then manually restart fbcp-ili9341, does that work and enable fbcp-ili9341 to properly re-launch? Or does it still keep failing, and unable to recover even when manually restarted? (I wonder if the problem is in system service setup, or already in that if dispmanx crashes on fbcp-ili9341 that the dispmanx driver is then in bad state system wide)

@DSchndr
Copy link
Author

DSchndr commented Oct 28, 2018

Normally fbcp can be launched again (automatically and manually) after crash after you wait some time. I think i've set it to restart in 5 secs when it has crashed and this worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants