Bug 452130

Summary: crash when trying to paste sRGB bitmap
Product: [Applications] krita Reporter: til.schmitter
Component: File formatsAssignee: amyspark <amy>
Status: RESOLVED FIXED    
Severity: crash CC: alvin, halla
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Backtrace

Description til.schmitter 2022-03-31 23:17:22 UTC
SUMMARY
this is actually pretty minor, i was just trying to see if i could directly drag n drop an image from google image search results into krita, so i played around with the "miscellaneous" settings, so it's unlikely to occur accidentally.

STEPS TO REPRODUCE
1. settings->miscellaneous->paste the attached sRGB bitmap
2. drag n drop any image into krita (from the browser or just from the file explorer)

OBSERVED RESULT
1. crash upon dropping it in.
2. another thing to note is that whenever i change this setting, it always displays "ask each time" as selected when i reopen the menu (the change does seem to be in effect though)
(3. why do i have so many languages installed in the system info btw lol)

SOFTWARE/OS VERSIONS
Krita

 Version: 5.1.0-prealpha (git 959bf28)
 Installation type: installer / portable package
 Languages: en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, de_DE, de, en_US, en
 Hidpi: true

Qt

  Version (compiled): 5.12.12
  Version (loaded): 5.12.12

OS Information

  Build ABI: x86_64-little_endian-llp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: winnt
  Kernel Version: 10.0.19043
  Pretty Productname: Windows 10 (10.0)
  Product Type: windows
  Product Version: 10
Comment 1 Halla Rempt 2022-04-06 12:49:44 UTC
Hi,

I can confirm on Windows. The issue is a KIS_ASSERT in line 384 of kis_clipboard.cc.
Comment 2 Alvin Wong 2022-04-10 12:46:38 UTC
Created attachment 148085 [details]
Backtrace

Adding a backtrace.