cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying camera stream with qmlglsink crashes in gcoTEXTURE_GetMipMap() from gcnano stack

OL'He.1
Associate III

We want to display a camera stream in a QML application on our STM32MP157C-based board. When we use the default QML widgets, the framerate is too low, under 10 fps.

We try to solve the problem by using GStreamer's qmlglsink with GstGLVideoItem: it works on PC, but on the STM32MP157C it crashes with a segmentation fault in the "gcoTEXTURE_GetMipMap()" function, provided by the GCnano firmware. The GCnano source code is not available.

How could we solve the crash?

Note: more complete description on https://community.st.com/s/question/0D53W00000Mh8kqSAB/hellowe-have-an-issue-with-qml-multimedia-to-display-camera-stream-the-result-is-not-smooth-while-with-qt-widgets-it-works-fine-gstreamer-pipeline-from-command-line-works-as-well

4 REPLIES 4
Olivier GALLIEN
ST Employee

Hi @OL'He.1​ ,

Sorry for late reply on this topic.

Some improvement have been done around QT integration in our latest delivery V2.1 and we have publish this wiki page :

https://wiki.st.com/stm32mpu/wiki/How_to_build_and_use_an_SDK_for_QT

Could you please have a look and make a try ?

Let us know then the status to resume investigation if needed.

Hope it help,

OIivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
OL'He.1
Associate III

Thanks Olivier.

We'll try OpenSTLinux-2.1, if you think it is likely to solve the problem.

Regards,

Olivier

Hi @OL'He.1​ ,

Not 100% sure to be honest .. but anyway an improved environment worth to switch on prior to investigate further.

Thanks for your understanding.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

So we've done a test, with Wayland and EGLFS environment (just to be sure). And we don't notice any improvements in this area.

Even with "-no-feature-raster-64bit" option as suggested, the fps number is around 8-10 fps according to "qmlvideofx" demo app from Qt. Camera with QML app is a lot slower than with Qt widgets app.

The new gcnano firmware does not fix our crash with "qmlglsink".