Bug 167042 - list/icon view button makes KPA crash
Summary: list/icon view button makes KPA crash
Status: RESOLVED FIXED
Alias: None
Product: kphotoalbum
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KPhotoAlbum Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-20 00:37 UTC by Risto H. Kurppa
Modified: 2008-12-19 00:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
valgrind report of the crash (35.50 KB, text/plain)
2008-07-20 15:39 UTC, Risto H. Kurppa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Risto H. Kurppa 2008-07-20 00:37:20 UTC
Version:            (using KDE 4.0.98)
Installed from:    Ubuntu Packages

KPA SVN rev 834494 on Kubuntu Hardy 64-bit w. KDE4.1rc1 from Ubuntu packages.

I added the list view and icon view buttons in the toolbar. Pressed the icon view button and KPA crashed:

ASSERT: "category.data()" in file
/home/rhk/Ohjelmat/KPA-kde4/extragear-graphics/kphotoalbum/Browser/BrowserWidget.cpp, line 265

Same happens every time with list & icon view buttons with the same message
Comment 1 Christophe Marin 2008-07-20 15:10:49 UTC
Please post a backtrace following the instructions on: 
http://techbase.kde.org/Contribute/Bugsquad/How_to_create_useful_crash_reports
Comment 2 Risto H. Kurppa 2008-07-20 15:39:16 UTC
Tried to: compiled with -DCMAKE_BUILD_TYPE=debugfull
this is what I get: http://pastebin.com/f36dc039c

and I don't get the KDE crash handler at all, KPA just dies when I press the button.

Also tried gdb:
This GDB was configured as "x86_64-linux-gnu"...                        
(gdb) run                                                               
Starting program: /usr/bin/kphotoalbum-svn                              
[Thread debugging using libthread_db enabled]                           
[New Thread 0x7feca2a51780 (LWP 14559)]                                 
ASSERT: "category.data()" in file /home/rhk/Ohjelmat/KPA-kde4/extragear-graphics/kphotoalbum/Browser/BrowserWidget.cpp, line 265                

Program exited with code 01.
(gdb) backtrace             
No stack.                   
(gdb) quit                  
rhk@rubert:~$

Will attach valgrind report
Comment 3 Risto H. Kurppa 2008-07-20 15:39:59 UTC
Created attachment 26286 [details]
valgrind report of the crash

rhk@rubert:~/Temp$ valgrind --log-file=kpa_svn_crash.txt kphotoalbum-svn
ASSERT: "category.data()" in file
/home/rhk/Ohjelmat/KPA-kde4/extragear-graphics/kphotoalbum/Browser/BrowserWidget.cpp,
line 265
rhk@rubert:~/Temp$
Comment 4 Jan Kundrát 2008-12-19 00:55:47 UTC
SVN commit 898768 by jkt:

Fix an assert() when trying to change a type of category view (icons, list,...) when no category is currently "active"
BUG: 167042


 M  +2 -0      Browser/BrowserWidget.cpp  
 M  +3 -0      Browser/BrowserWidget.h  
 M  +2 -0      MainWindow/Window.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=898768