Bug 485468

Summary: digikam crash with no attention when preview webm
Product: [Applications] digikam Reporter: Abel <abelyou032>
Component: Preview-VideoAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: abelyou032, caulier.gilles, metzpinguin
Priority: NOR Keywords: needs_verification
Version: 8.5.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 8.6.0
Sentry Crash Report:
Attachments: to reproduce
webm file
"About digiKam" pages
"Force Software OpenGL" Disabled(log from DebugView)
"Force Software OpenGL" enabled(log from DebugView)
when play a webm vedio(VP8) with digiKam8.4.0_qt6_win,video has attached(168442)

Description Abel 2024-04-13 02:40:42 UTC
Created attachment 168441 [details]
to reproduce

SUMMARY
digikam crash with no attention when preview webm

STEPS TO REPRODUCE
1. import a webm img
2. preview it

OBSERVED RESULT
digikam crashed with no attention

EXPECTED RESULT
img be showd

SOFTWARE/OS VERSIONS
Windows: 11


ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2024-04-13 04:37:09 UTC
Please share a problematic WebM media file using cloud web service.

Not WebM is a video and must not be confused with WebP which is a photo. WebP will be loaded with loaded with a QImage loader, WebM with ffmepg.
Comment 2 Abel 2024-04-13 04:40:07 UTC
Created attachment 168442 [details]
webm file
Comment 3 Abel 2024-04-13 05:03:20 UTC
(In reply to caulier.gilles from comment #1)
> Please share a problematic WebM media file using cloud web service.
> 
> Not WebM is a video and must not be confused with WebP which is a photo.
> WebP will be loaded with loaded with a QImage loader, WebM with ffmepg.

 You are right,I maked them mixed up.
WebM is vedio,and WebP is photo.

Here is the WebM file link:
https://pomf2.lain.la/f/odvhmml7.webm
Comment 4 Maik Qualmann 2024-04-13 07:10:36 UTC
Which digiKam Windows version are you using exactly? I can't reproduce a crash with the Qt6 Windows version, video plays fine.
However, the video reports a negative value for duration in the stream data.

qt.multimedia.ffmpeg.mediadataholder: AVStream duration -9223372036854775808 is invalid. Taking it from the metadata

Maik
Comment 5 Abel 2024-04-13 08:33:47 UTC
Here is information from "About digiKam" page:
https://pomf2.lain.la/f/od4oeav.png

Version 8.3.0
Qt Version6.6.1
Comment 6 Abel 2024-04-13 08:38:08 UTC
Created attachment 168448 [details]
"About digiKam" pages
Comment 7 Maik Qualmann 2024-04-13 09:02:11 UTC
I also can't reproduce a crash on a second computer.
Please try again with "Force Software OpenGL" in the digiKam Settings under Miscellaneous-> System (requires restart of digiKam).

Maik
Comment 8 Abel 2024-04-13 09:13:55 UTC
Created attachment 168451 [details]
"Force Software OpenGL" Disabled(log from DebugView)
Comment 9 Abel 2024-04-13 09:14:31 UTC
Created attachment 168452 [details]
"Force Software OpenGL" enabled(log from DebugView)
Comment 10 Abel 2024-04-13 09:18:56 UTC
Have tried to enable "Force Software OpenGL" , but result the same.
Is there a way to get more detailed log ?
Comment 11 caulier.gilles 2024-04-13 09:23:09 UTC
log trace can be caught with the debugview program from Microsoft. See Contribute web page for details:

https://www.digikam.org/contribute/

Gilles Caulier
Comment 12 Abel 2024-04-13 13:45:15 UTC
Additional log uploaded.
And I found VP9-WebM work well,only when VP8-WebM got wrong
Comment 13 caulier.gilles 2024-06-15 07:53:03 UTC
Git commit 57536d9f6188f0370d120dd84605a41549651a7b by Gilles Caulier.
Committed on 15/06/2024 at 07:45.
Pushed by cgilles into branch 'master'.

Update media player with git/master branch from GitHub
Related: bug 484479, bug 487031

M  +2    -2    core/libs/video/QtAVPlayer/QtAVPlayer_manifest.txt
M  +3    -0    core/libs/video/QtAVPlayer/qavhwdevice_d3d11.cpp
M  +1    -1    core/libs/video/QtAVPlayer/qavhwdevice_vaapi_drm_egl.cpp
M  +1    -0    core/libs/video/QtAVPlayer/qavsubtitleframe.cpp
M  +3    -1    core/libs/video/QtAVPlayer/qtavplayerglobal.h

https://invent.kde.org/graphics/digikam/-/commit/57536d9f6188f0370d120dd84605a41549651a7b
Comment 14 caulier.gilles 2024-07-17 06:23:05 UTC
Hi,

It's reproducible with last 8.4.0 release ?

https://download.kde.org/stable/digikam/8.4.0/

Best

Gilles Caulier
Comment 15 Abel 2024-07-17 10:45:55 UTC
I installed digiKam8.4.0(qt6,windows),and play video attached.

No crash,but a warning message,
It says:  Media player error
Comment 16 Abel 2024-07-17 11:02:55 UTC
Created attachment 171732 [details]
when play a webm vedio(VP8) with digiKam8.4.0_qt6_win,video has attached(168442)
Comment 17 caulier.gilles 2024-12-02 06:41:27 UTC
Hi,

digiKam 8.5.0. is out with many fixes and improvements.

https://www.digikam.org/news/2024-11-16-8.5.0_release_announcement/

This report still valid with this version?
Thanks in advance

Gilles Caulier
Comment 18 Abel 2024-12-06 13:32:01 UTC
The same result.
Error but don't crash.
Comment 19 Maik Qualmann 2024-12-07 08:07:49 UTC
In digiKam-8.5.0 you have the option to deactivate hardware acceleration for video in the digiKam settings under Miscellaneous-> System. The video will then play without an error message.

Maik
Comment 21 Maik Qualmann 2024-12-07 08:14:41 UTC
Oh, I have to correct myself, the option to disable hardware acceleration for video is only available in digiKam-8.6.0.

Maik
Comment 22 Abel 2024-12-07 09:34:27 UTC
Yes It works!
Thank for your works!!