<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>490301</bug_id>
          
          <creation_ts>2024-07-15 11:47:42 +0000</creation_ts>
          <short_desc>Krita crashes on macOS when turning on HDR in display settings</short_desc>
          <delta_ts>2024-08-21 15:38:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>HDR</component>
          <version>5.2.3-beta1</version>
          <rep_platform>macOS (DMG)</rep_platform>
          <op_sys>macOS</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="mich">miky3848</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>dimula73</cc>
    
    <cc>halla</cc>
    
    <cc>insertopen</cc>
    
    <cc>penguinflyer2222</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/krita/-/commit/3599b59e26ac4dff5343b7fb592cefdc7d1f442f</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2337479</commentid>
    <comment_count>0</comment_count>
    <who name="mich">miky3848</who>
    <bug_when>2024-07-15 11:47:42 +0000</bug_when>
    <thetext>SUMMARY


STEPS TO REPRODUCE
1. Download krita 5.2.3 through dmg or brew on macOS (arm) 
2. Go in display settings and switch from sRGB 8 bit to 10 bit
3. Close and Open Krita to apply HDR settings
4. Krita won&apos;t ever open again


macOS: 14.5

Error Report: https://pastebin.com/NVe0hQwn</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2337488</commentid>
    <comment_count>1</comment_count>
    <who name="Freya Lupen">penguinflyer2222</who>
    <bug_when>2024-07-15 13:02:05 +0000</bug_when>
    <thetext>Confirmed on macOS with 5.2.3 and 5.3.0-prealpha-1c2c28d1, it also happens with 5.2.2.

To change it back to 8-bit and prevent the crash, open ~/Library/Preferences/kritadisplayrc and remove the line &apos;rootSurfaceFormat=bt2020-pq&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2337668</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2024-07-16 07:51:01 +0000</bug_when>
    <thetext>How did it happen that HDR feature is available on MacOS? I guess it was never designed to work on MacOS...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340506</commentid>
    <comment_count>3</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2024-07-27 08:09:22 +0000</bug_when>
    <thetext>Looks like none of the hdr code is disabled on any platform that doesn&apos;t support HDR. That includes Linux, btw.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340507</commentid>
    <comment_count>4</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2024-07-27 08:12:57 +0000</bug_when>
    <thetext>QSurfaceFormat::setColorSpace(QSurfaceFormat::ColorSpace colorSpace) is deprecated in Qt6...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340508</commentid>
    <comment_count>5</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2024-07-27 08:22:02 +0000</bug_when>
    <thetext>Git commit 3cfd68df06eedb66e40ac7f2bbe93de250c92344 by Halla Rempt.
Committed on 27/07/2024 at 08:21.
Pushed by rempt into branch &apos;master&apos;.

Only check for the presence of bt2020PQColorSpace on Windows

Since we use sh_zam&apos;s Qt branch on all platforms, bt2020PQColorSpace
and scRGBColorSpace are defined on all platforms, making
config-hdr.cmake.in always define HAVE_HDR.

M  +14   -10   CMakeLists.txt

https://invent.kde.org/graphics/krita/-/commit/3cfd68df06eedb66e40ac7f2bbe93de250c92344</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340509</commentid>
    <comment_count>6</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2024-07-27 08:22:18 +0000</bug_when>
    <thetext>Git commit 3599b59e26ac4dff5343b7fb592cefdc7d1f442f by Halla Rempt.
Committed on 27/07/2024 at 08:22.
Pushed by rempt into branch &apos;krita/5.2&apos;.

Only check for the presence of bt2020PQColorSpace on Windows

Since we use sh_zam&apos;s Qt branch on all platforms, bt2020PQColorSpace
and scRGBColorSpace are defined on all platforms, making
config-hdr.cmake.in always define HAVE_HDR.
(cherry picked from commit c623c18c953e7bd3a619bab43f05176e1a1f90fb)

M  +14   -10   CMakeLists.txt

https://invent.kde.org/graphics/krita/-/commit/3599b59e26ac4dff5343b7fb592cefdc7d1f442f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2347466</commentid>
    <comment_count>7</comment_count>
    <who name="Freya Lupen">penguinflyer2222</who>
    <bug_when>2024-08-21 15:38:54 +0000</bug_when>
    <thetext>*** Bug 484564 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>