<?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>483534</bug_id>
          
          <creation_ts>2024-03-14 11:15:32 +0000</creation_ts>
          <short_desc>gwenvew doesn&apos;t open high resolution png file</short_desc>
          <delta_ts>2024-04-01 15:57:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>gwenview</product>
          <component>general</component>
          <version>24.02.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>482195</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>qt6, regression</keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="saxn">saileshpoudel0</reporter>
          <assigned_to name="Gwenview Bugs">gwenview-bugs-null</assigned_to>
          <cc>bugs_kde_org</cc>
    
    <cc>jakob.hellermann</cc>
    
    <cc>kde</cc>
    
    <cc>nate</cc>
    
    <cc>nathanael.barentin</cc>
    
    <cc>oded</cc>
          
          <cf_commitlink></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>2300673</commentid>
    <comment_count>0</comment_count>
    <who name="saxn">saileshpoudel0</who>
    <bug_when>2024-03-14 11:15:32 +0000</bug_when>
    <thetext>SUMMARY: 
Just rendered a masterplan for architectural project. It in A0 size.
It is high quality for better print results. Gwenview doesn&apos;t open the image. 
In plasma 5 it used to work, now it won&apos;t.


Gwenview terminal log:
kf.i18n.kuit: &quot;Unknown subcue &apos;:whatsthis,&apos; in UI marker in context {@info:whatsthis, %1 the action&apos;s text}.&quot;
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  &quot;image/x-mng&quot;
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type  &quot;image/x-samsung-srw&quot;
qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 256 megabytes
qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 256 megabytes
qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 256 megabytes


INFO: 
Operating System: Arch Linux 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-9300H CPU @ 2.40GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630 + Nvidia</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2302248</commentid>
    <comment_count>1</comment_count>
    <who name="Jakob Hellermann">jakob.hellermann</who>
    <bug_when>2024-03-17 16:41:44 +0000</bug_when>
    <thetext>AS a workaround you can set the environment variable QT_IMAGEIO_MAXALLOC=8192 as described in https://doc.qt.io/qt-6/qimagereader.html#setAllocationLimit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2303352</commentid>
    <comment_count>2</comment_count>
    <who name="Sjoerd">kde</who>
    <bug_when>2024-03-20 11:53:48 +0000</bug_when>
    <thetext>I think this is a duplicate of bug https://bugs.kde.org/show_bug.cgi?id=482195

And the problem is not only with Gwenview, it&apos;s also with other KDE image viewer/editors since the Plasma 6 update. Okular and Kolourpaint give the same error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2303370</commentid>
    <comment_count>3</comment_count>
    <who name="">bugs_kde_org</who>
    <bug_when>2024-03-20 12:47:17 +0000</bug_when>
    <thetext>(In reply to Jakob Hellermann from comment #1)
&gt; AS a workaround you can set the environment variable
&gt; QT_IMAGEIO_MAXALLOC=8192 as described in
&gt; https://doc.qt.io/qt-6/qimagereader.html#setAllocationLimit

I can confirm. It&apos;s works for heic files, but when I am trying to open 4k/60Hz movie, gwenview crashing.

QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setOpacity: Painter not active
QPainter::end: Painter not active, aborted


When you using fish shell, use it to open gwenview. After that, high resolution images should be opened without problems.
env &quot;QT_IMAGEIO_MAXALLOC= 8128&quot; gwenview</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2307512</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-04-01 15:57:18 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 482195 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>