OpenGL stops working when omxplayer is started

Open
#995 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
raspberry-pi

Research direction

Reproduce the failure from /opt/vc/src/hello_pi/hello_triangle using the listed tvservice, hello_triangle.bin, and omxplayer commands, comparing current firmware with the 1.20170405 boot files. Investigate the display reconfiguration and GPU firmware behavior; done means the OpenGL cube remains visible after omxplayer starts and stops.

Written by the indexing model from the issue text.

Description

With the current firmware it sometimes happens, that an OpenGL application stops displaying
when omxplayer is started. This happens after the display is reconfigured, while
an OpenGL application runs.

To reproduce this, install Raspbian (tested with 2018-04-18-raspbian-stretch-lite.img).
Enable ssh and increase the gpu memory in /boot/config.txt. Install omxplayer.

Run the following commands over ssh:

cd /opt/vc/src/hello_pi/hello_triangle
make

./hello_triangle.bin &
sleep 1
tvservice -p
sleep 1
killall hello_triangle.bin
sleep 1
./hello_triangle.bin &
sleep 1
omxplayer --layer 1 --win "0,0,860,540" /opt/vc/src/hello_pi/hello_video/test.h264 

Normally you would now see the video on top of the cube from hello_triangle, but only the video is visible. Even after the video stops, the cube is still not visible, but the process for hello_triangle still runs.

If you replace the files bootcode.bin, fixup.dat and start.elf on the boot partition with the versions from tag 1.20170405, it works as expected.

This may be related to #903.

Dominant language
No language data
Stars
5.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/firmware

All issues in raspberrypi/firmware

Similar issues

More Computer Graphics issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.