Bug 475583

Summary: Importing raws with manual white balance crashes Krita
Product: [Applications] krita Reporter: gopgop9000
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: griffinvalley, halla
Priority: NOR    
Version First Reported In: 5.2.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Crash log

Description gopgop9000 2023-10-13 21:03:17 UTC
Created attachment 162283 [details]
Crash log

SUMMARY
When importing a .DNG or .PEF file and selecting manual color balance, Krita crashes.


STEPS TO REPRODUCE
1. Select Import on .DNG or .PEF
2. Select Manual White Balance
3. Press Apply with or without changing the defaults

OBSERVED RESULT
Krita freezes and closes after a few seconds.

EXPECTED RESULT
Be able to test different white balance settings

SOFTWARE/OS VERSIONS
Windows: Krita 5.2.0/Windows 10

ADDITIONAL INFORMATION
My friend tested them on v4.4.2 and was able to open them with those settings without issue, I tested the same build and had no issues
Tested on v5.1.4 and crash persisted

Image files for reference
https://www.dropbox.com/scl/fi/iwuzdues4ia6nsm3plksb/IMGP0146.PEF?rlkey=ycv1g2qjeeeg505jh69z1lp7o&dl=0
https://www.dropbox.com/scl/fi/plf15i5qqnpelauvnsxqp/IMGP0111.DNG?rlkey=o437hk8bd9of9y9vu8a1cubqm&dl=0
Comment 1 wolthera 2023-10-18 10:57:29 UTC
Hum, this must be a Windows-only libraw bug, because on Linux this works for me.

As a future note, I do get this terminal output:
--------

Warning: Exif tag Exif.Pentax.PreviewLength not encoded
Warning: Exif tag Exif.Pentax.PreviewOffset not encoded
Warning: Exif tag Exif.Pentax.PreviewResolution not encoded
Warning: Exif tag Exif.Photo.MakerNote not encoded
Warning: Exif tag Exif.Pentax.0x0405 not encoded
Warning: Exif tag Exif.Pentax.0x0406 not encoded
Comment 2 Halla Rempt 2024-10-31 09:52:37 UTC
Neither file crashes for me with Krita 5.2.6 on Windows.