Bug 261861 - Crash on start
Summary: Crash on start
Status: RESOLVED FIXED
Alias: None
Product: kphotoalbum
Classification: Applications
Component: general (show other bugs)
Version: SVN trunk (KDE4 version)
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: KPhotoAlbum Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-02 14:19 UTC by Risto H. Kurppa
Modified: 2011-01-02 22:39 UTC (History)
0 users

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 Risto H. Kurppa 2011-01-02 14:19:51 UTC
SVN revision: 1210826

Compiled & installed successfully, with debug option. 

On the first run I loaded my existing database, went to edit the settings - and then KPA crashed. Possibly while loading for new images or creating thumbnails.

Now it crashes every time I start it. Here's the backtrace, hope it's useful.


rhk@ribantu:~/Ohjelmat/kphotoalbum-svn/bin$ gdb ./kphotoalbum 
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/rhk/Ohjelmat/kphotoalbum-svn/bin/kphotoalbum...done.
(gdb) run
Starting program: /home/rhk/Ohjelmat/kphotoalbum-svn/bin/kphotoalbum 
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe1748700 (LWP 26698)]
[New Thread 0x7fffe0f47700 (LWP 26699)]
Premature end of JPEG file

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe1748700 (LWP 26698)]
0x000000000000de00 in ?? ()
(gdb) thread apply all backtrace

Thread 3 (Thread 0x7fffe0f47700 (LWP 26699)):
#0  0x00007ffff259f72d in read ()
    at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ffff2539b7f in _IO_file_xsgetn (fp=0x7fffd4001540, 
    data=0x7fffd4001f08, n=4096) at fileops.c:1465
#2  0x00007ffff252f952 in _IO_fread (buf=0x7fffd4001f08, size=1, 
    count=4096, fp=0xffffffffffffffff) at iofread.c:44
#3  0x00007ffff73fb954 in ?? () from /usr/lib/libjpeg.so.8
#4  0x00007ffff73fdcae in ?? () from /usr/lib/libjpeg.so.8
#5  0x00007ffff73ff442 in ?? () from /usr/lib/libjpeg.so.8
#6  0x00007ffff73fc243 in ?? () from /usr/lib/libjpeg.so.8
#7  0x00007ffff740148e in ?? () from /usr/lib/libjpeg.so.8
#8  0x00007ffff73f9856 in jpeg_read_scanlines ()
   from /usr/lib/libjpeg.so.8
---Type <return> to continue, or q <return> to quit---
#9  0x00000000005b95df in Utilities::loadJPEG (
    img=<value optimized out>, inputFile=<value optimized out>, 
    fullSize=<value optimized out>, dim=<value optimized out>)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/Utilities/Util.cpp:490
#10 0x00000000005b9b01 in Utilities::loadJPEG (img=0x7fffe0f46c50, 
    imageFile=<value optimized out>, fullSize=0x7fffe0f46cf0, 
    dim=150)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/Utilities/Util.cpp:421
#11 0x00000000004f17a4 in ImageManager::ImageLoader::loadImage (
    this=<value optimized out>, request=0x7fffdc0032c0, 
    ok=@0x7fffe0f46d9f)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/ImageManager/ImageLoader.cpp:94
---Type <return> to continue, or q <return> to quit---
#12 0x00000000004f1a23 in ImageManager::ImageLoader::run (
    this=0x1a268c50)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/ImageManager/ImageLoader.cpp:60
#13 0x00007ffff34f627e in QThreadPrivate::start (arg=0x1a268c50)
    at thread/qthread_unix.cpp:266
#14 0x00007ffff326b971 in start_thread (arg=<value optimized out>)
    at pthread_create.c:304
#15 0x00007ffff25ad92d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#16 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fffe1748700 (LWP 26698)):
#0  0x000000000000de00 in ?? ()
#1  0x00007ffff73f95b5 in jpeg_CreateDecompress ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libjpeg.so.8
#2  0x00007fffe545cfbf in QJpegHandlerPrivate::readJpegHeader (
    this=<value optimized out>, device=<value optimized out>)
    at ../../../gui/image/qjpeghandler.cpp:745
#3  0x00007fffe545d26f in QJpegHandlerPrivate::read (
    this=0x7fffdc248030, image=0x7fffe1747b90)
    at ../../../gui/image/qjpeghandler.cpp:780
#4  0x00007ffff4576753 in QImageReader::read (this=0x7fffe1747bf0, 
    image=0x7fffe1747b90) at image/qimagereader.cpp:1205
#5  0x00007ffff4576d1c in QImageReader::read (this=0x7fffe1747bf0)
    at image/qimagereader.cpp:1155
#6  0x00007ffff45668ce in QImage::load (this=0x7fffe1747c50, 
    fileName=..., format=<value optimized out>)
    at image/qimage.cpp:4949
#7  0x00000000004f1842 in ImageManager::ImageLoader::loadImage (
---Type <return> to continue, or q <return> to quit---
    this=<value optimized out>, request=0x7fffdc0034c0, 
    ok=@0x7fffe1747d9f)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/ImageManager/ImageLoader.cpp:110
#8  0x00000000004f1a23 in ImageManager::ImageLoader::run (
    this=0x1a265630)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/ImageManager/ImageLoader.cpp:60
#9  0x00007ffff34f627e in QThreadPrivate::start (arg=0x1a265630)
    at thread/qthread_unix.cpp:266
#10 0x00007ffff326b971 in start_thread (arg=<value optimized out>)
    at pthread_create.c:304
#11 0x00007ffff25ad92d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---

Thread 1 (Thread 0x7ffff7fb57c0 (LWP 26695)):
#0  __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:175
#1  0x00007ffff39b138c in operator< (this=0x9465a0, 
    group=<value optimized out>, key=<value optimized out>, 
    flags=<value optimized out>)
    at ../../kdecore/config/kconfigdata.h:122
#2  qMapLessThanKey<KEntryKey> (this=0x9465a0, 
    group=<value optimized out>, key=<value optimized out>, 
    flags=<value optimized out>)
    at /usr/include/qt4/QtCore/qmap.h:107
#3  findNode (this=0x9465a0, group=<value optimized out>, 
    key=<value optimized out>, flags=<value optimized out>)
    at /usr/include/qt4/QtCore/qmap.h:483
#4  find (this=0x9465a0, group=<value optimized out>, 
---Type <return> to continue, or q <return> to quit---
    key=<value optimized out>, flags=<value optimized out>)
    at /usr/include/qt4/QtCore/qmap.h:604
#5  findEntry (this=0x9465a0, group=<value optimized out>, 
    key=<value optimized out>, flags=<value optimized out>)
    at ../../kdecore/config/kconfigdata.h:211
#6  KConfigPrivate::lookupData (this=0x9465a0, 
    group=<value optimized out>, key=<value optimized out>, 
    flags=<value optimized out>)
    at ../../kdecore/config/kconfig.cpp:750
#7  0x00007ffff39b8f47 in KConfigGroup::readEntry (
    this=<value optimized out>, 
    key=0x5cfbe9 "thumbnailAspectRatio", aDefault=...)
    at ../../kdecore/config/kconfiggroup.cpp:787
#8  0x000000000044d6c5 in readCheck<int> (
    this=<value optimized out>) at /usr/include/kconfiggroup.h:720
---Type <return> to continue, or q <return> to quit---
#9  readEntry<int> (this=<value optimized out>)
    at /usr/include/kconfiggroup.h:249
#10 Settings::SettingsData::thumbnailAspectRatio (
    this=<value optimized out>)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/Settings/SettingsData.cpp:238
#11 0x000000000048999d in ThumbnailView::CellGeometry::preferredIconSize ()
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/ThumbnailView/CellGeometry.cpp:39
#12 0x00000000004f99eb in ImageManager::ThumbnailBuilder::build (
    this=0x1270e830, list=...)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/ImageManager/ThumbnailBuilder.cpp:94
#13 0x00000000004f9e03 in ImageManager::ThumbnailBuilder::buildMissin---Type <return> to continue, or q <return> to quit---
g (this=<value optimized out>)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/ImageManager/ThumbnailBuilder.cpp:76
#14 0x00000000004e4c04 in MainWindow::Window::Window (
    this=0x9fd820, parent=<value optimized out>, 
    __in_chrg=<value optimized out>, 
    __vtt_parm=<value optimized out>)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/MainWindow/Window.cpp:212
#15 0x000000000044033e in main (argc=<value optimized out>, 
    argv=<value optimized out>)
    at /home/rhk/Ohjelmat/kphotoalbum-svn-source/main.cpp:84
(gdb) 



Kphotoalbum 4.1.1 from ubuntu repositories seems to start & work OK.
Comment 1 Risto H. Kurppa 2011-01-02 22:39:20 UTC
Installed SVN rev1210839 .deb from https://launchpad.net/~dominik-stadler/+archive/ppa/+packages - and no crashing any more so closing this..

I guess there was something wrong in my trials to compile..