Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMediaPlayer/QGraphicsVideoItem memory leak and crash
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer/QGraphicsVideoItem memory leak and crash

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AlterX
    wrote on last edited by
    #1

    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

    Qt Ambassador
    Real-time cooperative teams: http://www.softairrealfight.net
    Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

    https://codereview.qt-project.org/...

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved