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

OMX Player crashes driver [I think] #96

Closed
SlowCatalyst opened this issue Jul 25, 2019 · 3 comments
Closed

OMX Player crashes driver [I think] #96

SlowCatalyst opened this issue Jul 25, 2019 · 3 comments

Comments

@SlowCatalyst
Copy link

Hi there- was just seeing if perhaps the specifics could be found as to why OMX might be crashing the driver.

I am using the FreePlay CM3, and when using this driver, it seems that any instance that OMX is called up- be it video splash, game list videos in RetroPie [using OMX], or video screensaver [using OMX]- it causes a black screen, and hangs until I SSH and restart the driver, but will crash again anytime OMX for videos is called up once more.

Any idea what I could be doing wrong?

This is what my settings are when building the driver:
-DARMV8A=ON -DFREEPLAYTECH_WAVESHARE32B=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON -DUSE_DMA_TRANSFERS=ON -DDMA_TX_CHANNEL=1 -DDMA_RX_CHANNEL=5 -DSTATISTICS=0 ..

@juj
Copy link
Owner

juj commented Jul 26, 2019

I think the root cause is the same as #28 - a bug in DispmanX causes it to stop functioning when screen is resized. The only known workaround has been to implement a reload daemon script on the Pi to spin fbcp-ili9341 back up when it crashes.

@Mootikins
Copy link

This may not be directly related to the DispmanX resize bug since it happens when you are using OMXPlayer to play scraped video in EmulationStation, while our old driver (rpi-fbcp) also uses DispmanX and has none of these issues.

@SlowCatalyst
Copy link
Author

Found the conflict!

Thanks for the input, fellas.
I found that simply changing my cmake options from the above example I provided, to:

-DARMV8A=ON -DFREEPLAYTECH_WAVESHARE32B=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON -DUSE_DMA_TRANSFERS=ON -DDMA_TX_CHANNEL=7 -DDMA_RX_CHANNEL=5 -DSTATISTICS=0 ..

So, "DDMA_TX_CHANNEL=7"

Videos with OMX are now playing! Video splash, video screensaver, and gamelist videos, all!
Man, with this driver, it's all so crisp now!

Thanks for all of your work, juj and Mootikins!

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