Bug 452130 - crash when trying to paste sRGB bitmap
Summary: crash when trying to paste sRGB bitmap
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: amyspark
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-31 23:17 UTC by til.schmitter
Modified: 2022-04-21 14:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Backtrace (5.91 KB, text/plain)
2022-04-10 12:46 UTC, Alvin Wong
Details

Note You need to log in before you can comment on or make changes to this bug.
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.