QMediaPlayer/QGraphicsVideoItem memory leak and crash
-
Hi there…
I’m creating my own app to play different videos in parallel in the same widget.
I’ve started using Qt example “videographicsitem” and so my code looks like this:
@
videoItem = new QGraphicsVideoItem;QGraphicsScene *scene = new QGraphicsScene(this); QGraphicsView *graphicsView = new QGraphicsView(scene); graphicsView->setViewport(new QGLWidget()); scene->addItem(videoItem); QBoxLayout *layout = new QVBoxLayout; layout->addWidget(graphicsView); setLayout(layout); mediaPlayer.setVideoOutput(videoItem);
@
My videos runs in loop using QMediaPlaylist and depending on video's weight, I receive different error and moreover I always see a growing memory that results in a complete stuck and crash:
handleSessionEvent: serious error = -2147024882
session close time out!
....
createDIB: CreateDIBSection failed.
DXGI WARNING: Process is terminating. Using simple reporting. Please call ReportLiveObjects() at runtime for standard reporting. [ STATE_CREATION WARNING #0: ]
DXGI WARNING: Live Producer at 0x048F6920, Refcount: 2. [ STATE_CREATION WARNING #0: ]
DXGI WARNING: Live Object at 0x00AD9360, Refcount: 2. [ STATE_CREATION WARNING #0: ]
DXGI WARNING: Live Object : 1 [ STATE_CREATION WARNING #0: ]Some times problem during compressing buffer
thanks in advance
Gianni