[haiku-bugs] Re: [Haiku] #8778: Poor handling of very large JPEG images in Backgrounds preferences.

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Thu, 26 Jul 2012 01:40:59 -0000

#8778: Poor handling of very large JPEG images in Backgrounds preferences.
---------------------------------------+----------------------------
   Reporter:  jstressman               |      Owner:  korli
       Type:  bug                      |     Status:  new
   Priority:  normal                   |  Milestone:  R1
  Component:  Preferences/Backgrounds  |    Version:  R1/Development
 Resolution:                           |   Keywords:
 Blocked By:                           |   Blocking:
Has a Patch:  0                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by anevilyak):

 Replying to [comment:5 jstressman]:
 > So the bug we're seeing in the preview could be an example of it running
 out of space and just repeating what part of it it did manage to fit in
 memory or something? And like you said, something likely with libjpeg
 itself, as the exact same thing shows up in ShowImage.

 Right now it's merely conjecture as a possibility because of the sheer
 size of the image involved. 700MB shouldn't be big enough to be triggering
 any integer overflow errors or anything in that vein so memory consumption
 just seems like the most probable culprit. One commonality between
 ShowImage and Backgrounds is that they both go through the JPEG
 translator, which could well be masking/mishandling an error return from
 libjpeg resulting in the behavior above. WebCore on the other hand uses
 libjpeg directly so the issue there might be a bit different but still
 related. Would need some more investigation to be certain.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8778#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: