Hello
We have a customer facing application written using Qt (5.12.9) which is running on a customised ubuntu 18.04 (.4) x64 (intel) platform. The customisation is that the UI is limited to a wayland kiosk mode with only our application then
running within that.
Part of the applications use case is to play media specified by the operator – in the .mp4 format. I should say that we are operating in portrait orientation, display resolution is therefore 1080 x 1920.
We play media either letter boxed (scaled to be 1080 x 607) or full screen (media is sourced to be 1080 x 1920).
The application can be running for weeks/months without power-cycling. However, we are seeing that we are gradually leaking memory such that the memory is exhausted in just under 24hrs. (4GB physical + 4GB swap) – the app starts at ~8%
memory utilisation. Basically, at each transition from one video to playing the next, causes a slight memory leak.
I have been able to determine that the issue is related to the gstreamer libraries – and specifically libav
(my system has the following package)
gstreamer1.0-libav:amd64 1.14.5-0ubuntu1~18.04.1
If I uninstall that package, two things
- I no longer get video playback – but I do get the audio track from the .mp4 file
- No increase over time for the memory usage for my application.
Putting the package back, video returns as does the leak.
I’ve tried building the latest gstreamer libraries using gst-build – (so version 1.19) and inserting the lib in to the LD_LIBRARY_PATH first (and set GST_PLUGIN_PATH to also point to my installed /opt/gst/lib/ install) but although I perhaps
think the leak isn’t as great – it does alas, still leak.
My question is “please help”… our application is affectively unfit for purpose due to the dependency of the application needing to play media for days without a restart.
Any information that I can provide to help, please get in touch.
Regards
Richard
--
Richard Barrass
Bassett Electronic Systems Ltd.
Solutions under one roof.
T: 01793 859974 E:
[hidden email]
Unit 23-25 Whitehill Industrial Estate, Whitehill Lane, Royal Wootton Bassett, Wiltshire, SN4 7DB