[digikam] [Bug 494754] New: Customized Raw Import Tool Crashes (Randomly) When Using Image Editor

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Mon Oct 14 18:08:33 BST 2024


https://bugs.kde.org/show_bug.cgi?id=494754

            Bug ID: 494754
           Summary: Customized Raw Import Tool Crashes (Randomly) When
                    Using Image Editor
    Classification: Applications
           Product: digikam
           Version: 8.5.0
          Platform: macOS (DMG)
                OS: macOS
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: ImageEditor-Core
          Assignee: digikam-bugs-null at kde.org
          Reporter: qp.ding at outlook.com
  Target Milestone: ---

Created attachment 174814
  --> https://bugs.kde.org/attachment.cgi?id=174814&action=edit
OS prompt when the edit in darktable fails

SUMMARY
The customized raw import tool (darktable or rawtherapee) will crash when using
image editor.

STEPS TO REPRODUCE
1. Set to "Raw Import Using DarkTable" in Configure -> Image Editor -> Raw
Behavior
2. Select a raw image, then click Image Editor
3. The image editor will pop up, and a darktable instance will run
successfully.

OBSERVED RESULT
When trying to edit the file in darktable, MacOS will give a warning saying
that darktable has crashed.
But it's weird that it happens in like 8 out of 10 trials. I did manage to
successfully conduct editing and get the exported file back to digikam once.

EXPECTED RESULT
The image file can be edited and exported normally.

SOFTWARE/OS VERSIONS
digikam 8.5.0 pre-release (Build Date: 14/10/2024 08:07)
macOS: 15.0.1 (Apple Silicon)

ADDITIONAL INFORMATION
When the edit fails leading to darktable crashing, the internal logging shows:
-----------------------------------
digikam.geoiface: ----
digikam.dplugin.rawimport: DarkTable arguments: QList("--library", ":memory:",
"--luacmd",
"dofile('/private/var/folders/fm/scct14x5025d_05z2nyx9v800000gn/T/digikam.LrSKkp')",
"--conf", "plugins/lighttable/export/icctype=3", "--conf",
"lua/export_on_exit/export_filename=/private/var/folders/fm/scct14x5025d_05z2nyx9v800000gn/T/digikam.cUQvzw",
"/System/Volumes/Data/Users/quinn/Pictures/digikam_garage/20240918T172644_3665.ARW")
qt.accessibility.table: Cell requested for row 0 is out of bounds for table
with 0 rows! Resizing table model.
QProcess::readAllStandardError: Called with MergedChannels
qt.pointer.dispatch: skipping QEventPoint(id=1 ts=0 pos=0,0 scn=213.375,264.864
gbl=213.375,264.864 Released ellipse=(1x1 ∡ 0) vel=0,0 press=-213.375,-264.864
last=-213.375,-264.864 Δ 213.375,264.864) : no target window
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
digikam.dplugin.rawimport: DarkTable :: Process has crashed
digikam.dplugin.rawimport: DarkTable :: return code: 11 :: Exit status:
QProcess::CrashExit
digikam.dimg: File
"/private/var/folders/fm/scct14x5025d_05z2nyx9v800000gn/T/digikam.cUQvzw" does
not exist
digikam.dplugin.rawimport: Decoded image is null! Load with Native tool...
digikam.dplugin.rawimport:
"/System/Volumes/Data/Users/quinn/Pictures/digikam_garage/20240918T172644_3665.ARW"
-----------------------------------
I checked in /private/var/folders/fm/scct14x5025d_05z2nyx9v800000gn/T/ and the
file digikam.cUQvzw really does not exist. I guess it's a generated temporary
file, but it looks clear that its absence caused the crash because the
export_filename depends on it.

When I got lucky and made a successful edit and export, the internal logging
is:
-----------------------------------
digikam.geoiface: ----
digikam.dplugin.rawimport: DarkTable arguments: QList("--library", ":memory:",
"--luacmd",
"dofile('/private/var/folders/fm/scct14x5025d_05z2nyx9v800000gn/T/digikam.LrSKkp')",
"--conf", "plugins/lighttable/export/icctype=3", "--conf",
"lua/export_on_exit/export_filename=/private/var/folders/fm/scct14x5025d_05z2nyx9v800000gn/T/digikam.AfEQdh",
"/System/Volumes/Data/Users/quinn/Pictures/digikam_garage/20240918T172644_3665.ARW")
qt.accessibility.table: Cell requested for row 0 is out of bounds for table
with 0 rows! Resizing table model.
QProcess::readAllStandardError: Called with MergedChannels
qt.pointer.dispatch: skipping QEventPoint(id=1 ts=0 pos=0,0 scn=16.1349,104.283
gbl=16.1349,104.283 Released ellipse=(1x1 ∡ 0) vel=0,0 press=-16.1349,-104.283
last=-16.1349,-104.283 Δ 16.1349,104.283) : no target window
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
QProcess::readAllStandardError: Called with MergedChannels
digikam.dplugin.rawimport: DarkTable :: return code: 0 :: Exit status:
QProcess::NormalExit
digikam.dimg:
"/private/var/folders/fm/scct14x5025d_05z2nyx9v800000gn/T/digikam.AfEQdh" :
"PNG" file identified (magic)
digikam.metaengine: Loading metadata with "Exiv2" backend from
"/private/var/folders/fm/scct14x5025d_05z2nyx9v800000gn/T/digikam.AfEQdh"
digikam.dimg.png: Opening file
"/private/var/folders/fm/scct14x5025d_05z2nyx9v800000gn/T/digikam.AfEQdh"
digikam.dimg.png: PNG in >=8 bits/color/pixel.
digikam.dimg.png: PNG in PNG_COLOR_TYPE_RGB
digikam.dplugin.rawimport: Decoded image is not null...
digikam.dplugin.rawimport:
"/System/Volumes/Data/Users/quinn/Pictures/digikam_garage/20240918T172644_3665.ARW"
digikam.database: No location could be retrieved for
"/private/var/folders/fm/scct14x5025d_05z2nyx9v800000gn/T/digikam.AfEQdh"
qt.pointer.dispatch: skipping QEventPoint(id=1 ts=0 pos=0,0 scn=638.375,125.185
gbl=638.375,125.185 Released ellipse=(1x1 ∡ 0) vel=0,0 press=-638.375,-125.185
last=-638.375,-125.185 Δ 638.375,125.185) : no target window
-----------------------------------

Switching to RawTherapee is just as similar with an OS prompt, only that the
RawTherapee instance will not run at all.

-- 
You are receiving this mail because:
You are watching all bug changes.



More information about the kde-mac mailing list