ahoeben
Posts: 7
Joined: Mon Jan 21, 2013 10:41 am

Segfault on OMX_Deinit() in hello_video

Fri Feb 01, 2013 9:45 am

When playing video with hello_video, I get a "Segmentation fault" when the video is done playing.

By placing a couple of printf() statements in the code I have figured out that the segfault happens in the OMX_Deinit() call. I noticed that if I have a lot (say 5) of printf() statements in the teardown/cleanup/deinit code, hello_video.bin will sometimes exit normally. So this might be a timing-related issue. Or it might be something entirely different.

This is on a fairly recently rpi-updated 256mb model B rev 1.

ahoeben
Posts: 7
Joined: Mon Jan 21, 2013 10:41 am

Re: Segfault on OMX_Deinit() in hello_video

Wed Feb 06, 2013 11:33 pm

After starting over on a new sdcard, this issue has gone away.

fantastico
Posts: 5
Joined: Thu May 24, 2012 4:02 am

Re: Segfault on OMX_Deinit() in hello_video

Sun Feb 10, 2013 11:51 am

Hi,
The problem is still persist. It is reproducible in the following steps:
1. Using the clean official Raspbian image (2012-12-16-wheezy-raspbian.zip)
2. Upgrading all packages (sudo apt-get update && sudo apt-get dist-upgrade)
3. Updating the firmware (using rpi-update) script
4. reboot
5. compile hello_pi demos
6. run hello_video demo, although it display video, it exits with segmentation fault error

As it seems the OMX_Deinit() function cause this. I'm stuck with my raspberry because of this. I'm doing my term project with RPi, and I'm intended to do some coding with the OMX api.

I'll be thankful for your participation to resolve this issue.

fantastico
Posts: 5
Joined: Thu May 24, 2012 4:02 am

Re: Segfault on OMX_Deinit() in hello_video

Fri Feb 15, 2013 4:30 pm

This issue has been confirmed by the firmware developer, and it's planned to be fixed. For more information you can refer to the issue page on raspberry pi firmware repository on github.
https://github.com/raspberrypi/firmware/issues/146

ahoeben
Posts: 7
Joined: Mon Jan 21, 2013 10:41 am

Re: Segfault on OMX_Deinit() in hello_video

Mon Feb 18, 2013 8:53 pm

So it wasn't just me afterall. Thanks for diving into this.

Return to “Graphics programming”

Who is online

Users browsing this forum: No registered users and 4 guests