Bug 203130 - assert(false) in Viewer/ImageDisplay.cpp
Summary: assert(false) in Viewer/ImageDisplay.cpp
Status: RESOLVED WORKSFORME
Alias: None
Product: kphotoalbum
Classification: Applications
Component: Viewer (show other bugs)
Version: SVN trunk (KDE4 version)
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: KPhotoAlbum Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-09 03:29 UTC by Jan Kundrát
Modified: 2012-02-01 15:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kundrát 2009-08-09 03:29:00 UTC
diff --git a/devel/Viewer/ImageDisplay.cpp b/devel/Viewer/ImageDisplay.cpp
index 5efeb74..512c088 100644
--- a/devel/Viewer/ImageDisplay.cpp
+++ b/devel/Viewer/ImageDisplay.cpp
@@ -461,6 +461,11 @@ void Viewer::ImageDisplay::updatePreload()
                 }

                 Q_ASSERT( false ); // We should never get here.
+                // FIXME: we do end here whenever the "cache size" is set too low.
+                // How to reproduce:
+                // a) Set cache size to 1 MB
+                // b) View an image
+                // c) Press PgDn
             }

             return;
Comment 1 Miika Turkia 2010-01-02 09:14:28 UTC
Is this the same bug I discovered also and fixed? (My fix was for cache size 0, but at first try I could not reproduce this bug with size 1. Well, with cache size 1 the official release of kphotoalbum 4.1.1 did not crash for me either.)

Revision 1064366 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 20 18:57:13 2009 UTC (12 days, 13 hours ago) by mturkia

bugfix: KPA crashes when viewing images if viewer cache size is set to zero