1.4.5 Crashing on very big images

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Kadet
Posts: 71
Joined: Thu Oct 20, 2022 7:23 pm

1.4.5 Crashing on very big images

Post by Kadet »

XnView: MP 1.4.5 and older, 64 bit
OS: Windows 11 Home 64bit / Windows 10 Pro 64 bits
RAM: 32 GB / 16 GB

XnView crashing without report window when I want to look into folder with very big images.

For example with this SVG file:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Creator: CorelDRAW SE -->
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="45000px" height="10000px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
viewBox="0 0 45000 10000"
 xmlns:xlink="http://www.w3.org/1999/xlink">
 <defs>
  <style type="text/css">
   <![CDATA[
    .str0 {stroke:#2B2A29;stroke-width:0.567;stroke-miterlimit:4}
    .fil0 {fill:none;fill-rule:nonzero}
    .fil2 {fill:black}
    .fil1 {fill:#FEFEFE;fill-rule:nonzero}
    .fil3 {fill:#E62314;fill-rule:nonzero}
    .fnt0 {font-weight:normal;font-size:2200px;letter-spacing:.14ex;font-family:'Ek Mukta'}
   ]]>
  </style>
 </defs>
<symbol id="Fm1-628-0" viewBox="22537.795 4265.265 1046.93 0.567">
 <line class="fil0 str0" x1="22537.795" y1="4265.548" x2="23584.725" y2= "4265.548" />
</symbol>
<symbol id="Fm0-2255-0" viewBox="22558.309 4912.253 3.288 4.89">
 <polygon class="fil1" points="22561.597,4917.142 22558.309,4917.142 22558.309,4912.253 22559.817,4912.253 22559.817,4915.522 22561.597,4915.522 "/>
</symbol>
 <g id="Warstwa_x0020_1">
  <metadata id="CorelCorpID_0Corel-Layer"/>
  <text x="9773.938" y="2567.879"  class="fil2 fnt0">Some Text A</text>
  <text x="9773.938" y="4761.72"  class="fil2 fnt0">Some Text B</text>
  <text x="9773.938" y="6955.56"  class="fil2 fnt0">Some Text C</text>
  <text x="9773.938" y="9149.4"  class="fil2 fnt0">Some Text D</text>
  <g id="Księga_x0020_Znaku_x0020__x0028_str_x0020_3_x0029__x0020____x0020_B_x0020_-_x0020_Czerwone">
   <path class="fil3" d="M7776.654 2513.485c0,-1791.442 -1429.288,-2513.485 -1429.288,-2513.485l-6347.366 0 0 30.811c818.821,516.892 1362.99,1429.312 1362.99,2469.177 0,1039.896 -544.169,1952.293 -1362.99,2469.184l0 60.742c7.699,5.022 15.972,10.465 25.191,16.659 804.871,519.576 1337.799,1424.185 1337.799,2453.431 0,1039.897 -544.169,1952.293 -1362.99,2469.184l0 30.812 6367.681 0c0,0 1408.973,-767.525 1408.973,-2501.306 0,-1719.144 -1396.05,-2498.71 -1396.05,-2498.71 0,0 1396.05,-774.254 1396.05,-2486.499z"/>
   <polygon class="fil1" points="5636.467,1752.058 3297.379,1752.058 3297.379,1430.557 5636.467,1430.557 "/>
   <polygon class="fil1" points="3264.957,3818.758 2813.911,3818.758 2813.911,3148.091 3020.891,3148.091 3020.891,3596.485 3264.957,3596.485 "/>
   <path class="fil1" d="M3832.846 6047.563c-561.855,0 -1018.919,-464.002 -1018.919,-1034.3 0,-570.331 457.064,-1034.309 1018.919,-1034.309 561.799,0 1018.87,463.978 1018.87,1034.309 0,570.298 -457.071,1034.3 -1018.87,1034.3zm0 -1747.109c-387.224,0 -702.214,319.787 -702.214,712.809 0,393.014 314.99,712.8 702.214,712.8 387.175,0 702.165,-319.786 702.165,-712.8 0,-393.022 -314.99,-712.809 -702.165,-712.809z"/>
   <path class="fil1" d="M5374.964 8316.229c-32.009,-9.704 -922.667,-233.085 -1373.002,-694.175 -609.553,-624.134 -702.044,-1222.058 -709.007,-1250.096l305.148 -2.886c1.488,5.79 208.977,642.62 644.481,1034.817 419.321,377.302 1124.083,594.123 1131.159,596.258l1.221 316.082z"/>
   <path class="fil1" d="M3491.5 2880.887c-84.76,-46.532 -144.815,-98.573 -243.873,-98.573 -135.854,0 -235.907,117.343 -236.91,118.573l-166.011 -191.38c7.19,-8.5 179.565,-192.456 406.487,-192.456 133.978,0 239.903,61.227 333.34,115.289 68.894,39.797 129.49,77.288 261.155,77.288 131.665,0 259.392,-94.521 259.392,-94.521l152.716 178.02c-19.49,21.487 -227.812,178.626 -407.005,178.626 -185.921,0 -274.507,-44.333 -359.291,-90.866z"/>
   <path class="fil1" d="M3529.307 2435.534c-84.793,-46.525 -187.126,-78.881 -288.805,-78.881 -151.179,0 -265.036,75.63 -266.063,76.859l-163.391 -194.081c7.189,-8.508 189.269,-155.514 440.153,-155.514 133.97,0 244.811,46.185 333.251,96.285 88.408,50.099 128.811,86.838 232.374,86.838 150.799,0 258.356,-122.987 258.356,-122.987l164.79 189.519c-19.49,21.512 -219.733,205.039 -389.173,205.039 -150.605,0 -236.708,-56.544 -321.492,-103.077z"/>
  </g>
 </g>
</svg>
When I try to open this file using "open with XnView MP", I can see image but after few seconds program close without warning.

Edit (18 V 2023):
It's happens when thumbnail cashing compression is set for: None or Jpeg.

Edit 2 (18 V 2023):
Unfortunately, when compression is set on ZIP, the program also closes when there are several such large SVG files (on 5th).
User avatar
xnview
Author of XnView
Posts: 43163
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.4.5 Crashing on very big images

Post by xnview »

which image size?
Pierre.
Kadet
Posts: 71
Joined: Thu Oct 20, 2022 7:23 pm

Re: 1.4.5 Crashing on very big images

Post by Kadet »

This svg have width="45000px" height="10000px".
I set thumbnail on 200 x 150 px.
User avatar
xnview
Author of XnView
Posts: 43163
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.4.5 Crashing on very big images

Post by xnview »

the SVG support is very basic
Pierre.
Kadet
Posts: 71
Joined: Thu Oct 20, 2022 7:23 pm

Re: 1.4.5 Crashing on very big images

Post by Kadet »

I understand.
But why thumbnail cashing compression have effect on crash?

It will be nice if You improve this area.