Summary: | Cannot preview TIFF files on Mac OS due to "not enough memory" exceptions | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | khisatomi |
Component: | Preview-Image | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | caulier.gilles, info |
Priority: | NOR | ||
Version: | 2.6.0 | ||
Target Milestone: | --- | ||
Platform: | MacPorts | ||
OS: | macOS | ||
Latest Commit: | http://commits.kde.org/digikam/b29bbdfd46df01dccac6058a7a2860cd84026caa | Version Fixed In: | 3.1.0 |
Sentry Crash Report: |
Description
khisatomi
2012-07-08 23:33:31 UTC
Can you share your tiff image to test in local ? Gilles Caulier I can share one of the files with problem. But where should I uploads them? Can I attach directly to the bug entry? The files may be as large as 90MB. Please use a web share service. Bugzilla is limited to 1Mb of attachment File upload to: http://www.2shared.com/photo/SlbRZJR8/img128.html? Password: digikam File can be previewed properly under Linux... No memory allocation problem... Yes, the problem appears to be only in OS X. Version 2.7.0 still has the bug. It also occures on OpenSuse 12.1 with DK 2.7. I did some new tests now using the Digikam 2.9 version. Converted a problematic TIFF file to PNG and RAW with no success either. However, when converting to JPG, Digikam could show the image (thumbnail and larger image). Notes: - Conversion done using Photoshop. - The converted JPG has only 8 bits per channel, while the original file has 16. Therefore, one conclusion here is that the problem is not related to only TIFF files, but also PNG and RAW. Should we change the bug title? Git commit b29bbdfd46df01dccac6058a7a2860cd84026caa by Gilles Caulier. Committed on 22/02/2013 at 14:07. Pushed by cgilles into branch 'master'. new behavor about KMemoryInfo: Check if memory info from current platform is supported or not (for ex, MacOSX is not support) If not, -1 is returned from memory parser. In this case, digiKam will try to continue to allocate memory. An error message is printed to the console as debug statement. If yes, we try to check memory info. If an error occur, 0 is returned, else 1. This will solve multiple issues from bugzilla about non show large images in preview or editor, if memory allocation to store decompressed pixels data is more than 100Mb Related: bug 314260 M +6 -6 libs/3rdparty/kmemoryinfo/kmemoryinfo.cpp M +5 -2 libs/3rdparty/kmemoryinfo/kmemoryinfo.h M +80 -44 libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp M +10 -3 libs/dimg/loaders/dimgloader.cpp M +15 -2 libs/dimg/loaders/dimgloader.h http://commits.kde.org/digikam/b29bbdfd46df01dccac6058a7a2860cd84026caa |