Bug 453670

Summary: TIFF format can't be imported
Product: [Applications] kdenlive Reporter: cgvirus <contact.cgvirus>
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: crash CC: contact.cgvirus, fritzibaby
Priority: NOR Flags: fritzibaby: Brainstorm+
Version First Reported In: 22.04.0   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: gdb_crashlog_transcode-tif_file
GDB-Log_not loading TIF

Description cgvirus 2022-05-11 18:16:52 UTC
SUMMARY
***
TIFF format can not be imported and KDENLIVE 22.04.0 crashes.
***


STEPS TO REPRODUCE
1. Import a TIFF format image or a TIFF image sequence
2. kdenlive gives a transcode panel
3. Kdenlive crashes
4. other image formats work fine

OBSERVED RESULT
1. Import a TIFF format image or a image sequence
2. kdenlive gives a transcode panel
3. Kdenlive crashes
4. other image formats work fine

EXPECTED RESULT
Should import fine like kdenlive 21.12.1.

SOFTWARE/OS VERSIONS
Linux MInt 21

ADDITIONAL INFORMATION
Comment 1 emohr 2022-05-16 16:34:07 UTC
Created attachment 148885 [details]
gdb_crashlog_transcode-tif_file

Thank you for reporting. I can confirm the crash following your steps. Attached the gdb crash log.
Comment 2 Jean-Baptiste Mardelle 2022-05-17 12:32:12 UTC
Can you please provide a sample tiff file that crashes ? I could not reproduce with my sample image. Might be related to TIFF images that can't be opened by the Qt.
Comment 3 cgvirus 2022-05-17 14:15:23 UTC
(In reply to Jean-Baptiste Mardelle from comment #2)
> Can you please provide a sample tiff file that crashes ? I could not
> reproduce with my sample image. Might be related to TIFF images that can't
> be opened by the Qt.

From Terminal output:

/////////// creatclipsfromlist (QUrl("file:///home/production/Desktop/test.tif")) true "-1"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
virtual QStringList Solid::Backends::UPower::UPowerManager::allDevices()  error:  "org.freedesktop.DBus.Error.Disconnected"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" 
 "Not connected to D-Bus server"
virtual QStringList Solid::Backends::UPower::UPowerManager::allDevices()  error:  "org.freedesktop.DBus.Error.Disconnected"
/////////// createClipFromFile "/home/production/Desktop/test.tif" "-1"
=== GOT DROPPED MIME:  "image/tiff"
/////////// final xml "<producer type=\"5\" in=\"0\" length=\"150\">\n <property name=\"resource\">/home/production/Desktop/test.tif</property>\n</producer>\n"
============STARTING LOAD TASK FOR:  "/home/production/Desktop/test.tif" 

:::::::::::::::::::
/////////// creatclipsfromlist return false

(AppRun.wrapped:3729): GdkPixbuf-WARNING **: 20:11:17.268: Cannot open pixbuf loader module file '/usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
""
========== READY FOR TASK DELETION ON:  2
===== REMOVING MASTER PRODUCER; CURRENT COUNT:  0 
:::::::::::::::::::::::::::


Sample created with Krita. (No compression)
https://drive.google.com/file/d/10wQa11WBl6BCiXi4TVwefQqZWXeUNeJN/view?usp=sharing
Comment 4 emohr 2022-05-17 15:38:04 UTC
The TIF-file uploaded from cgvirus crash on Kdenlive Windows when start converting it.
Comment 5 Jean-Baptiste Mardelle 2022-05-17 19:51:06 UTC
Git commit 9fa08b10e71e6f9688bcdcddd96b86357e87c732 by Jean-Baptiste Mardelle.
Committed on 17/05/2022 at 19:51.
Pushed by mardelle into branch 'master'.

Add missing qt-imageformats dependency to read tiff and other image formats.

M  +1    -0    kde/kdemultimedia/kdenlive/kdenlive.py

https://invent.kde.org/packaging/craft-blueprints-kde/commit/9fa08b10e71e6f9688bcdcddd96b86357e87c732
Comment 6 cgvirus 2022-05-17 20:09:35 UTC
(In reply to Jean-Baptiste Mardelle from comment #5)
> Git commit 9fa08b10e71e6f9688bcdcddd96b86357e87c732 by Jean-Baptiste
> Mardelle.
> Committed on 17/05/2022 at 19:51.
> Pushed by mardelle into branch 'master'.
> 
> Add missing qt-imageformats dependency to read tiff and other image formats.
> 
> M  +1    -0    kde/kdemultimedia/kdenlive/kdenlive.py
> 
> https://invent.kde.org/packaging/craft-blueprints-kde/commit/
> 9fa08b10e71e6f9688bcdcddd96b86357e87c732

Thanks a lot!
Comment 7 emohr 2022-05-18 14:27:33 UTC
I have updated craft and rebuild the master. It doesn't crash anymore importing a tiff file but it does nothing after click transcode.
Comment 8 emohr 2022-05-18 15:15:22 UTC
Created attachment 148958 [details]
GDB-Log_not loading TIF

Here the GDB-log maybe it helps.
Comment 9 Jean-Baptiste Mardelle 2022-05-19 20:30:08 UTC
Now works in the daily builds