Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.2, 6.6.0 Beta4
-
Windows 10 22H2, MSVC 2019 x64, VLC 3.0.18
-
4b51aa786 (dev), 53768801f (dev), b5b8de410 (6.6), 20fe4dc06 (6.6), 3de6d08af (tqtc/lts-6.5), 40356de19 (dev), 3cbf8c22c (6.6), ecdf1f340 (dev), 5c90b355d (6.6), 512ae4720 (tqtc/lts-6.5), d20e2479c (tqtc/lts-6.5), c291c5027 (tqtc/lts-6.5)
Description
Code
import QtQuick import QtMultimedia import QtQuick.Controls.Fusion Window { id: root width: 800 height: 600 visible: true title: `${video.source} (${video.playbackState})` Video { id: video anchors.fill: parent } Column { Button { text: "Load" onClicked: video.source = "rtsp://google.com/stream" // Invalid URL causes GUI to freeze for 5s // onClicked: video.source = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" // Valid URL causes a shorter (but still significant) freeze } Button { text: video.playbackState === MediaPlayer.StoppedState ? "Play" : "Stop" onClicked: { if (video.playbackState === MediaPlayer.StoppedState) video.play() else video.stop() } } ProgressBar { width: root.width NumberAnimation on value { loops: Animation.Infinite duration: 1000 from: 0.0 to: 1.0 } } } }
Steps to reproduce
- Run the code above
- Click "Load"
Outcomes
From the moment you click "Load" until the URL appears on the title bar (or until the connection attempt times out), the GUI is completely unresponsive: Progress bar freezes; buttons don't respond to mouse hover/click events; window cannot be resized. This freeze should not happen – connections should occur in the background.
Attachments
Issue Links
- is duplicated by
-
QTBUG-118575 FFmpeg can block GUI when stream is broken or slow
-
- Closed
-
-
QTBUG-119446 `QMediaPlayer::seekableChanged` and `QMediaPlayer::durationChanged` no longer emitted
-
- Closed
-
- relates to
-
QTBUG-116782 FFmpeg backend: RTSP stream is very choppy in Qt, compared to FFplay
-
- Closed
-
-
QTBUG-115066 App Crash when loading none existing RTSP url
-
- Closed
-
-
QTBUG-119446 `QMediaPlayer::seekableChanged` and `QMediaPlayer::durationChanged` no longer emitted
-
- Closed
-
For Gerrit Dashboard: QTBUG-116779 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
510514,9 | Keep UI responsive while loading media | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
510584,12 | Add network connect cancellation support with FFmpeg media player | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
513612,2 | Keep UI responsive while loading media | 6.6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
513620,2 | Add network connect cancellation support with FFmpeg media player | 6.6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
513862,2 | Keep UI responsive while loading media | tqtc/lts-6.5 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |
513863,3 | Add network connect cancellation support with FFmpeg media player | tqtc/lts-6.5 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |
513897,10 | Improve mediaplayer test naming and split some big tests | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
514269,2 | Improve mediaplayer test naming and split some big tests | 6.6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
514341,4 | Improve mediaplayer test naming and split some big tests | tqtc/lts-6.5 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |
514707,3 | Reorder media player tests according to tested function | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
514881,2 | Reorder media player tests according to tested function | 6.6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
514940,3 | Reorder media player tests according to tested function | tqtc/lts-6.5 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |