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

            Bug ID: 517241
           Summary: Saving HEIF crashes, loading some files unsupported
    Classification: Applications
           Product: krita
      Version First 5.3.0-beta3
       Reported In:
          Platform: Other
                OS: Other
            Status: REPORTED
          Keywords: regression
          Severity: crash
          Priority: NOR
         Component: File formats
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 190448
  --> https://bugs.kde.org/attachment.cgi?id=190448&action=edit
Example HEIF that doesn't load

SUMMARY
Regression(s) from the libheif update. Unsure if related to each other.
Exporting as HEIF crashes, loading some HEIF files shows "unsupported features"
error.
Thread: https://krita-artists.org/t/issue-opening-heic-files/167082

STEPS TO REPRODUCE
A. Export a file as HEIF.
B. Attempt to load attached HEIF file saved by GIMP (loading a file from a
previous version of Krita works for some reason).

OBSERVED RESULT

Export a file as HEIF:
> krita.file: Starting "image/heic" encoding.
> krita.file: saving as 8bit rgba
segmentation fault
> Thread 24 Crashed:: Thread (pooled)
> 0   libsystem_platform.dylib                 0x19932d05c _platform_memset + 
> 108
> 1   libx265.215.dylib                        0x11c2e2250 
> x265::Lowres::init(x265::PicYuv*, int) + 1400
> 2   libx265.215.dylib                        0x11c213cd4 
> x265::PreLookaheadGroup::processTasks(int) + 180
> 3   libx265.215.dylib                        0x11c210a98 
> x265::Lookahead::slicetypeDecide() + 692
> 4   libx265.215.dylib                        0x11c210788 
> x265::Lookahead::findJob(int) + 80
> 5   libx265.215.dylib                        0x11c21291c 
> x265::Lookahead::getDecidedPicture() + 144
> 6   libx265.215.dylib                        0x11c2466dc 
> x265::Encoder::encode(x265_picture const*, x265_picture*) + 6704
> 7   libx265.215.dylib                        0x11c25372c x265_encoder_encode 
> + 88
> 8   libheif.1.20.2.dylib                     0x11cfe73f0 0x11cf18000 + 848880
> 9   libheif.1.20.2.dylib                     0x11cf881d4 0x11cf18000 + 459220
> 10  libheif.1.20.2.dylib                     0x11cf9e244 0x11cf18000 + 549444
> 11  libheif.1.20.2.dylib                     0x11cf9c1ac 0x11cf18000 + 541100
> 12  libheif.1.20.2.dylib                     0x11cf9d5b8 0x11cf18000 + 546232
> 13  libheif.1.20.2.dylib                     0x11cf4a280 0x11cf18000 + 205440
> 14  libheif.1.20.2.dylib                     0x11cf7b848 
> heif_context_encode_image + 520
> 15  kritaheifexport.so                       0x10d16ce80 
> heif::Context::encode_image(heif::Image const&, heif::Encoder&, 
> heif::Context::EncodingOptions const&) + 40
> 16  kritaheifexport.so                       0x10d16b704 
> HeifExport::convert(KisDocument*, QIODevice*, 
> KisPinnedSharedPtr<KisPropertiesConfiguration>) + 7624
> 17  libkritaui.21.0.0.dylib                  0x103472354 
> KisImportExportManager::doExportImpl(QString const&, 
> QSharedPointer<KisImportExportFilter>, 
> KisPinnedSharedPtr<KisPropertiesConfiguration>) + 312
> 18  libkritaui.21.0.0.dylib                  0x10347129c 
> KisImportExportManager::doExport(QString const&, 
> QSharedPointer<KisImportExportFilter>, 
> KisPinnedSharedPtr<KisPropertiesConfiguration>, QString) + 112

Attempt to load attached HEIF file:
> krita.file: loading heif 0 1 8
> krita.file: profile type is icc profile
Error occurs.
> The file format contains unsupported features.
Note: Before the libheif update, loading the file shows 
> loading heif 1 3 8
> profile type is icc profile
> planar heif file, bits: 8
Note2: On 6.0.0/5.3.0 -beta1, this file loads but is blank (transparent).

EXPECTED RESULT
File exports / loads correctly.

SOFTWARE/OS VERSIONS
Krita 6.0.0/5.3.0 -beta3

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

Reply via email to