Bug 379607 - tellico crashes with segfault on start
Summary: tellico crashes with segfault on start
Status: RESOLVED FIXED
Alias: None
Product: tellico
Classification: Applications
Component: general (show other bugs)
Version: 3.0.2
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Robby Stephenson
URL:
Keywords:
: 385448 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-07 14:32 UTC by ghichtin
Modified: 2017-10-07 00:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
valgrind output running tellico (287.32 KB, text/plain)
2017-05-08 07:01 UTC, ghichtin
Details
gdb backtrace (28.65 KB, text/plain)
2017-07-17 00:44 UTC, Alexandr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ghichtin 2017-05-07 14:32:54 UTC
I compiled ver. 3.0.2 because of the bol.it support (not working in prev. versions).
It worked fine for some time (allowing me to input several books and comics infos into two separate collections) then started to freeze.
Now I get: 

~$ tellico
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
Errore di segmentazione (core dump creato)
~$ kdeinit5: PID 5014 terminated.
kdeinit5: PID 5011 terminated.
kdeinit5: PID 4363 terminated.
kdeinit5: PID 4996 terminated.
kdeinit5: PID 4998 terminated.
kdeinit5: PID 5002 terminated.
kdeinit5: PID 5021 terminated.
kdeinit5: PID 5004 terminated.
kdeinit5: PID 5001 terminated.
kdeinit5: PID 5016 terminated.
kdeinit5: PID 5022 terminated.
kdeinit5: PID 4997 terminated.
kdeinit5: PID 5020 terminated.

~$ gdb tellico
GNU gdb (Ubuntu 7.12.50.20170314-0ubuntu1) 7.12.50.20170314-git
[...]
Reading symbols from tellico...done.
(gdb) run
Starting program: /usr/bin/tellico 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdd43c700 (LWP 5208)]
[New Thread 0x7fffd2122700 (LWP 5209)]
[New Thread 0x7fffd1921700 (LWP 5210)]
[New Thread 0x7fffcbfff700 (LWP 5211)]
[New Thread 0x7fffc90ef700 (LWP 5213)]
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so'
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!

Thread 1 "tellico" received signal SIGSEGV, Segmentation fault.
0x00007fffefa99788 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

kdeinit5: PID 5235 terminated.
kdeinit5: PID 5236 terminated.
kdeinit5: PID 5232 terminated.
kdeinit5: PID 5230 terminated.
kdeinit5: PID 5221 terminated.
kdeinit5: PID 5237 terminated.
kdeinit5: PID 5225 terminated.
kdeinit5: PID 5214 terminated.
kdeinit5: PID 5013 terminated.
kdeinit5: PID 5223 terminated.
kdeinit5: PID 5216 terminated.
kdeinit5: PID 5215 terminated.
kdeinit5: PID 5249 terminated.

I don't know if it's relevant, but:

~$ apt-cache depends tellico
tellico
  Dipende: tellico-data
  Dipende: tellico-scripts
  Dipende: kde-runtime
  Dipende: libc6
  Dipende: libexempi3
  Dipende: libkabc4
  Dipende: libkcal4
  Dipende: libkdecore5
  Dipende: libkdeui5
  Dipende: libkhtml5
  Dipende: libkio5
  Dipende: libknewstuff3-4
  Dipende: libkparts4
  Dipende: libkresources4
  Dipende: libksane0
  Dipende: libkxmlrpcclient4
  Dipende: libpoppler-qt4-4
  Dipende: libqimageblitz4
  Dipende: libqjson0
  Dipende: libqt4-dbus
  Dipende: libqt4-network
  Dipende: libqt4-xml
  Dipende: libqtcore4
  Dipende: libqtgui4
  Dipende: libsolid4
  Dipende: libstdc++6
  Dipende: libtag1v5
  Dipende: libxml2
  Dipende: libxslt1.1
  Dipende: libyaz4
  Raccomanda: tellico-doc
  Raccomanda: khelpcenter4
  Sostituisce: tellico-data

~$ ldd /usr/bin/tellico | grep Qt
	libQt5DBus.so.5 => /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007f73dcbc0000)
	libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f73dba34000)
	libQt5Xml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f73db143000)
	libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f73da598000)
	libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f73d9e62000)
	libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f73d9797000)
	libQt5X11Extras.so.5 => /usr/lib/x86_64-linux-gnu/libQt5X11Extras.so.5 (0x00007f73d8d37000)
	libQt5PrintSupport.so.5 => /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007f73d7702000)
	libQt5Svg.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x00007f73d3f4e000)


OS: Ubuntu 17.04 (4.10.0-20-generic)
Qt5: 5.7.1+dfsg-2ubuntu4~1
kde-runtime 4:16.12.3-0ubuntu1

Since I am no expert please tell me if other infos are needed.
Thanks.
Comment 1 Robby Stephenson 2017-05-08 01:23:58 UTC
When you run "gdb tellico" and tellico crashes, type "bt" without the quotes, to get a backtrace. If it has debug symbols (did you compile with CMAKE_BUILD_TYPE=debug?), that would help immensely. Thanks!
Comment 2 ghichtin 2017-05-08 07:01:17 UTC
Created attachment 105385 [details]
valgrind output running tellico
Comment 3 ghichtin 2017-05-08 07:04:01 UTC
(In reply to Robby Stephenson from comment #1)
> When you run "gdb tellico" and tellico crashes, type "bt" without the
> quotes, to get a backtrace. If it has debug symbols (did you compile with
> CMAKE_BUILD_TYPE=debug?), that would help immensely. Thanks!

Yes I did compile with CMAKE_BUILD_TYPE=debug

(gdb) bt
#0  0x00007fffefa99788 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

I don't know if it will help but I also tried :

valgrind --tool=memcheck --leak-check=yes -v tellico |& tee -a valgrind_log.txt


Actually tellico did not freeze when it runs through valgrind.
[I closed the tip-of-the-day window, then selected a book, then File>Exit]

Thanx
Comment 4 Christoph Feck 2017-05-11 13:39:38 UTC
Does 'bt' really only display a single line? We need the full backtrace. Please also install qt5 debug symbols, if possible.
Comment 5 ghichtin 2017-05-11 15:26:49 UTC
(In reply to Christoph Feck from comment #4)
> Does 'bt' really only display a single line? We need the full backtrace.
> Please also install qt5 debug symbols, if possible.

Yes it does.
ASAP I'll try to install qt5 debug symbols and retry.
For now thanks.
Comment 6 ghichtin 2017-05-11 19:14:46 UTC
(In reply to Christoph Feck from comment #4)
> Does 'bt' really only display a single line? We need the full backtrace.
> Please also install qt5 debug symbols, if possible.

So I've tried to install these:

    Development package (headers): qtbase5-dev
    Debugging symbols: qtbase5-dbg

but the latest one was not found, so I followed this guide:

https://askubuntu.com/questions/904451/what-happened-to-the-qtbase5-dbg-package-in-zesty

Then:

:~$ gdb tellico
GNU gdb (Ubuntu 7.12.50.20170314-0ubuntu1) 7.12.50.20170314-git
[...]
Reading symbols from tellico...done.

(gdb) run

Starting program: /usr/bin/tellico 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdd43c700 (LWP 29398)]
[New Thread 0x7fffd2122700 (LWP 29399)]
[New Thread 0x7fffd1921700 (LWP 29400)]
[New Thread 0x7fffcbfff700 (LWP 29401)]
[New Thread 0x7fffc90ef700 (LWP 29403)]

Thread 1 "tellico" received signal SIGSEGV, Segmentation fault.
QSortFilterProxyModelPrivate::proxy_to_source (this=0x55555611c5e0, 
    proxy_index=...) at itemmodels/qsortfilterproxymodel.cpp:384
384	itemmodels/qsortfilterproxymodel.cpp: File o directory non esistente.

(gdb) bt

#0  0x00007fffefa99788 in QSortFilterProxyModelPrivate::proxy_to_source(QModelIndex const&) const (this=0x55555611c5e0, proxy_index=...)
    at itemmodels/qsortfilterproxymodel.cpp:384
#1  0x00007fffefa99a34 in QSortFilterProxyModel::mapToSource(QModelIndex const&) const (proxyIndex=..., this=<optimized out>)
    at itemmodels/qsortfilterproxymodel.cpp:2758
#2  0x00007fffefa99a34 in QSortFilterProxyModel::data(QModelIndex const&, int) const (this=<optimized out>, index=..., role=0)
    at itemmodels/qsortfilterproxymodel.cpp:1972

That's all.
Comment 7 Robby Stephenson 2017-05-17 12:06:13 UTC
Hmmm. There's still no pointer into a crash inside Tellico. This is a bit weird. If we back up a bit, can you post the log file or output that you get when you run cmake? Thanks
Comment 8 ghichtin 2017-05-30 12:10:21 UTC
(In reply to Robby Stephenson from comment #7)
> Hmmm. There's still no pointer into a crash inside Tellico. This is a bit
> weird. If we back up a bit, can you post the log file or output that you get
> when you run cmake? Thanks

before running cmake I've installed these missing libs:

catdoc
libepub0
libkf5filemetadata-bin
libkf5filemetadata-data
libkf5filemetadata-dev
libkf5filemetadata3


~/tellico-3.0.2/build$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DENABLE_WEBCAM=true -DBUILD_TESTS=true -DCMAKE_BUILD_TYPE=debug
-- Checking for module 'qimageblitz>=5.0'
--   
-- Could NOT find Taglib (missing:  TAGLIB_INCLUDES TAGLIB_LIBRARIES) 
-- Could NOT find PopplerQt5 (missing:  Poppler_Qt5_INCLUDE_DIRS Poppler_Qt5_LIBRARIES) 
-- Could NOT find Btparse (missing:  Btparse_INCLUDE_DIRS Btparse_LIBRARIES) 
-- Checking for module 'libdiscid'
--   No package 'libdiscid' found
-- Could NOT find DiscID (missing:  DiscID_INCLUDE_DIRS DiscID_LIBRARIES) 
-- 
-- The following OPTIONAL packages have been found:

 * KF5FileMetaData , Support for reading file metadata , <http://www.kde.org>
 * KF5NewStuff , Support for fetching new templates and scripts , <http://www.kde.org>
 * KF5Sane , Support for adding scanned images to a collection , <http://www.kde.org>
 * KF5Cddb , Support for CDDB searches , <https://cgit.kde.org/libkcddb.git>
 * Yaz (required version >= 2.0) , Support for searching z39.50 databases , <http://www.indexdata.dk/yaz/>
 * Exempi (required version >= 2.0) , Support for reading PDF/XMP metadata , <http://libopenraw.freedesktop.org/wiki/Exempi/>
 * PkgConfig
 * Csv (required version >= 3.0) , External support for reading CSV files , <http://sourceforge.net/projects/libcsv/>

-- The following REQUIRED packages have been found:

 * ECM (required version >= 1.3.0)
 * Qt5Core
 * Qt5Gui (required version >= 5.7.1)
 * Qt5Widgets
 * Qt5Xml
 * Qt5DBus
 * Qt5Test
 * Qt5Network
 * Qt5 (required version >= 5.4.0)
 * KF5Archive
 * KF5Codecs
 * KF5Config
 * KF5ConfigWidgets
 * KF5CoreAddons
 * KF5Crash
 * KF5DocTools
 * KF5GuiAddons
 * KF5IconThemes
 * KF5ItemModels
 * PythonInterp
 * KF5I18n
 * KF5JobWidgets
 * KF5KIO
 * KF5Solid
 * KF5Wallet
 * KF5WidgetsAddons
 * KF5WindowSystem
 * KF5XmlGui
 * KF5
 * KF5KHtml
 * Gettext
 * LibXml2
 * LibXslt

-- The following OPTIONAL packages have not been found:

 * Taglib , Support for reading multimedia files , <http://taglib.github.io>
 * PopplerQt5 , Support for reading PDF files , <http://poppler.freedesktop.org>
 * Btparse , External support for parsing and processing BibTeX data files , <https://metacpan.org/release/Text-BibTeX>
 * DiscID , Support for reading disc IDs from audio CDs , <http://musicbrainz.org/doc/libdiscid>

-- Configuring done
-- Generating done


:~/tellico-3.0.2/build$ make test
Running tests...
Test project /home/simone/tellico-3.0.2/build
      Start  1: appstreamtest
 1/32 Test  #1: appstreamtest ....................   Passed    0.09 sec
      Start  2: entitytest
 2/32 Test  #2: entitytest .......................   Passed    0.03 sec
      Start  3: cuecattest
 3/32 Test  #3: cuecattest .......................   Passed    0.02 sec
      Start  4: isbntest
 4/32 Test  #4: isbntest .........................   Passed    0.02 sec
      Start  5: lccntest
 5/32 Test  #5: lccntest .........................   Passed    0.02 sec
      Start  6: lcctest
 6/32 Test  #6: lcctest ..........................   Passed    0.03 sec
      Start  7: formattest
 7/32 Test  #7: formattest .......................   Passed    0.04 sec
      Start  8: fieldtest
 8/32 Test  #8: fieldtest ........................   Passed    0.03 sec
      Start  9: comparisontest
 9/32 Test  #9: comparisontest ...................   Passed    0.03 sec
      Start 10: imagetest
10/32 Test #10: imagetest ........................   Passed    0.06 sec
      Start 11: collectiontest
11/32 Test #11: collectiontest ...................***Failed    7.95 sec
      Start 12: documenttest
12/32 Test #12: documenttest .....................   Passed    0.13 sec
      Start 13: filtertest
13/32 Test #13: filtertest .......................   Passed    0.04 sec
      Start 14: adstest
14/32 Test #14: adstest ..........................   Passed    0.03 sec
      Start 15: alexandriatest
15/32 Test #15: alexandriatest ...................   Passed    0.06 sec
      Start 16: amctest
16/32 Test #16: amctest ..........................   Passed    0.04 sec
      Start 17: bibtextest
17/32 Test #17: bibtextest .......................   Passed    0.11 sec
      Start 18: bibtexmltest
18/32 Test #18: bibtexmltest .....................   Passed    0.05 sec
      Start 19: citetest
19/32 Test #19: citetest .........................   Passed    0.60 sec
      Start 20: ciwtest
20/32 Test #20: ciwtest ..........................   Passed    0.04 sec
      Start 21: csvtest
21/32 Test #21: csvtest ..........................   Passed    0.26 sec
      Start 22: delicioustest
22/32 Test #22: delicioustest ....................   Passed    0.16 sec
      Start 23: filelistingtest
23/32 Test #23: filelistingtest ..................   Passed    0.68 sec
      Start 24: gcstartest
24/32 Test #24: gcstartest .......................   Passed    0.56 sec
      Start 25: griffithtest
25/32 Test #25: griffithtest .....................   Passed    0.09 sec
      Start 26: htmlexportertest
26/32 Test #26: htmlexportertest .................   Passed    0.34 sec
      Start 27: modstest
27/32 Test #27: modstest .........................   Passed    0.09 sec
      Start 28: referencertest
28/32 Test #28: referencertest ...................   Passed    0.10 sec
      Start 29: ristest
29/32 Test #29: ristest ..........................   Passed    0.06 sec
      Start 30: tellicoreadtest
30/32 Test #30: tellicoreadtest ..................   Passed    0.14 sec
      Start 31: vinoxmltest
31/32 Test #31: vinoxmltest ......................   Passed    0.10 sec
      Start 32: pdftest
32/32 Test #32: pdftest ..........................***Failed    0.96 sec

94% tests passed, 2 tests failed out of 32

Total Test time (real) =  12.97 sec

The following tests FAILED:
	 11 - collectiontest (Failed)
	 32 - pdftest (Failed)
Errors while running CTest
Makefile:127: set di istruzioni per l'obiettivo "test" non riuscito
make: *** [test] Errore 8
Comment 9 ghichtin 2017-05-30 12:21:45 UTC
After new compilation and installation this is the result with gdb:

:~/tellico-3.0.2/build$ gdb tellico
GNU gdb (Ubuntu 7.12.50.20170314-0ubuntu1) 7.12.50.20170314-git
[...]
Reading symbols from tellico...done.
(gdb) run
Starting program: /usr/bin/tellico 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdd21b700 (LWP 11014)]
[New Thread 0x7fffd1e16700 (LWP 11015)]
[New Thread 0x7fffd1615700 (LWP 11016)]
[New Thread 0x7fffcbde3700 (LWP 11017)]
[New Thread 0x7fffc8ed3700 (LWP 11019)]

Thread 1 "tellico" received signal SIGSEGV, Segmentation fault.
QSortFilterProxyModelPrivate::proxy_to_source (this=0x55555611e7e0, proxy_index=...)
    at itemmodels/qsortfilterproxymodel.cpp:384
384	itemmodels/qsortfilterproxymodel.cpp: File o directory non esistente.
(gdb) bt
#0  0x00007fffef878788 in QSortFilterProxyModelPrivate::proxy_to_source(QModelIndex const&) const (this=0x55555611e7e0, proxy_index=...) at itemmodels/qsortfilterproxymodel.cpp:384
#1  0x00007fffef878a34 in QSortFilterProxyModel::mapToSource(QModelIndex const&) const (proxyIndex=..., this=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:2758
#2  0x00007fffef878a34 in QSortFilterProxyModel::data(QModelIndex const&, int) const (this=<optimized out>, index=..., role=0) at itemmodels/qsortfilterproxymodel.cpp:1972


Hope it will help
Comment 10 Christoph Feck 2017-06-06 21:09:56 UTC
Does the backtrace really stop at #2? If there are additional lines, even incomplete ones, please show all of them. You might need to press Return to see more lines.
Comment 11 ghichtin 2017-06-06 22:01:34 UTC
(In reply to Christoph Feck from comment #10)
> Does the backtrace really stop at #2? If there are additional lines, even
> incomplete ones, please show all of them. You might need to press Return to
> see more lines.

Sorry, my fault

(gdb) bt
#0  0x00007fffef878788 in QSortFilterProxyModelPrivate::proxy_to_source(QModelIndex const&) const (this=0x5555563b2f10, proxy_index=...)
    at itemmodels/qsortfilterproxymodel.cpp:384
#1  0x00007fffef878a34 in QSortFilterProxyModel::mapToSource(QModelIndex const&) const (proxyIndex=..., this=<optimized out>)
    at itemmodels/qsortfilterproxymodel.cpp:2758
#2  0x00007fffef878a34 in QSortFilterProxyModel::data(QModelIndex const&, int) const (this=<optimized out>, index=..., role=0)
    at itemmodels/qsortfilterproxymodel.cpp:1972
#3  0x00007ffff0861306 in QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const ()
    at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#4  0x00007ffff08607c0 in QStyledItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const ()
    at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007ffff07f6bcb in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007ffff07ffe87 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007ffff07f6894 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007ffff0801ae3 in QListView::doItemsLayout() () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007ffff07d869c in QAbstractItemView::timerEvent(QTimerEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007fffef8e1313 in QObject::event(QEvent*) (this=0x555556464050, e=<optimized out>) at kernel/qobject.cpp:1285
#11 0x00007ffff05d3c6b in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff06bc1fe in QFrame::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff0745733 in QAbstractScrollArea::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007ffff07e2d8b in QAbstractItemView::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007ffff058c35c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007ffff0593b11 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007fffef8b48a0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x555556464050, event=event@entry=0x7fffffffdaf0)
    at kernel/qcoreapplication.cpp:988
#18 0x00007fffef907eae in QCoreApplication::sendEvent(QObject*, QEvent*) (event=0x7fffffffdaf0, receiver=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#19 0x00007fffef907eae in QTimerInfoList::activateTimers() (this=0x555555d0e4c0) at kernel/qtimerinfo_unix.cpp:644
#20 0x00007fffef9083d1 in timerSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
#21 0x00007fffe82c2377 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007fffe82c25e0 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007fffe82c268c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007fffef908f0f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x555555d5bac0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:423
#25 0x00007fffef8b288a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffffffdd40, flags=..., flags@entry=...)
    at kernel/qeventloop.cpp:212
#26 0x00007fffef8baffc in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1261
#27 0x00005555556648fd in main(int, char**) (argc=1, argv=0x7fffffffdfc8) at /home/../tellico-3.0.2/src/main.cpp:181

I hope now it will help
Comment 12 Robby Stephenson 2017-06-23 01:30:56 UTC
Your initial bug report had a lot of kdeinit5 errors. Do those still show up? I've been taking a stab at reproducing this or figuring out what's going on, so far without any luck.

I've put some crash guards in the code, though, mostly out of caution and guesses. Any chance you can grab the latest source code from kde git and recompile?
Comment 13 Alexandr 2017-07-17 00:44:25 UTC
Created attachment 106673 [details]
gdb backtrace

same problem.
gdb backtrace in attachment.
Comment 14 Christoph Feck 2017-07-18 01:30:45 UTC
Backtrace from comment #13 might be unrelated, because
1) its stacktrace points to models used in QTreeView, not in QListView,
2) it is probably caused by recursion from nested event loops from Tellico::EntryModel::data() calling Tellico::NetAccess::download().
Comment 15 Alexandr 2017-07-18 04:06:45 UTC
maybe, so i should create separated ticket ?
Comment 16 a.celli.casa 2017-08-04 12:37:48 UTC
If arrives the same for me using OpenSuse Leap-42.3
I'm able to launch Tellico but, as soon i click on his window, Tellico craches :-)

This is the output on my xterm:

Script iniziato su ven 04 ago 2017 14:26:57 CEST
andy@linux-tiah:/home/andrea> tellico^M
QWidget::repaint: Recursive repaint detected^M
"Host bks4.books.google.it: Host non trovato sconosciuto"^M
can't download QUrl("http://bks4.books.google.it/books?id=tnhQAAAAMAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api")^M
... REMOVED 220 SIMILAR lines ...
"Tellico was unable to download http://bks4.books.google.it/books?id=tnhQAAAAMAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api"^M
image not found: "http://bks4.books.google.it/books?id=tnhQAAAAMAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api"^M
"Tellico was unable to download http://bks5.books.google.it/books?id=NoodtJ8nDTYC&printsec=frontcover&img=1&zoom=1&source=gbs_api"^M
image not found: "http://bks5.books.google.it/books?id=NoodtJ8nDTYC&printsec=frontcover&img=1&zoom=1&source=gbs_api"^M
entry title: "Machine computation of elementary statistics"^M
^[[?25lTellico was unable to download http://bks2.books.google.it/books?id=byIgAQAAMAAJ&printsec=frontcoverr^[[15;1H&img=1&zoom=1&source=gbs_api"^[[34m^M^[[m^[[15;32H^[[K^[[14;1H^[[?12l^[[?25h^[[?25l^[[28;83H9,1 ^[[12;1H^[[?12l^[[?25h^[[?25l^[[28;83H8^[[11;1H^[[?12l^[[?25h^[[?25l^[[28;83H7^[[9;1H^[[?12l^[[?25h^[[?25l^[[28;83H6^[[7;1H^[[?12l^[[?25h^[[?25l^[[28;83H5^[[5;1H^[[?12l^[[?25h^[[?25l^[[28;83H4^[[4;1H^[[?12l^[[?25h^[[?25l^[[28;83H3^[[3;1H^[[?12l^[[?25h^[[?25l^[[28;83H2^[[2;1H^[[?12l^[[?25h^[[?25l^[[28;85H2^[[2;2H^[[?12l^[[?25h^[[?25l^[[28;85H3^[[2;3H^[[?12l^[[?25h^[[?25l^[[28;85H4^[[2;4H^[[?12l^[[?25h^[[?25l^[[28;85H5^[[2;5H^[[?12l^[[

Andrea
Comment 17 ghichtin 2017-08-27 20:38:53 UTC
Installed ver. 3.0.2 from artful repo seems to work, despite Ubuntu version being different (I'm on 17.04)
IDK if I should put [SOLVED] because of the fresh install.

(Sorry but I couldn't follow the git-source suggestion)

But, again, I've lost bol.it support
Comment 18 Robby Stephenson 2017-09-10 21:50:20 UTC
(In reply to ghichtin from comment #17)
> But, again, I've lost bol.it support

Tellico 3.02 fixed the ibs.it search, but I don't think it has bol.it searching. Is that a different script that you have?
Comment 19 ghichtin 2017-09-22 18:36:49 UTC
(In reply to Robby Stephenson from comment #18)
> (In reply to ghichtin from comment #17)
> > But, again, I've lost bol.it support
> 
> Tellico 3.02 fixed the ibs.it search, but I don't think it has bol.it
> searching. Is that a different script that you have?

Yes I was referring to that one (ibs.it).
My bad.
But still, I don't have it.
Comment 20 Robby Stephenson 2017-09-23 00:21:55 UTC
(In reply to ghichtin from comment #19)
> (In reply to Robby Stephenson from comment #18)
> > (In reply to ghichtin from comment #17)
> > > But, again, I've lost bol.it support
> > 
> > Tellico 3.02 fixed the ibs.it search, but I don't think it has bol.it
> > searching. Is that a different script that you have?
> 
> Yes I was referring to that one (ibs.it).
> My bad.
> But still, I don't have it.

I'm sorry, I'm not sure I understand the issue. It's not working for you? Or it's not showing up at all? If it's not in the data source list, can you verify that you have it enabled in the settings? If it's just not working, can you give me an example search to test?
Comment 21 ghichtin 2017-09-23 00:34:31 UTC
(In reply to Robby Stephenson from comment #20)
> (In reply to ghichtin from comment #19)
> > (In reply to Robby Stephenson from comment #18)
> > > (In reply to ghichtin from comment #17)
> > > > But, again, I've lost bol.it support
> > > 
> > > Tellico 3.02 fixed the ibs.it search, but I don't think it has bol.it
> > > searching. Is that a different script that you have?
> > 
> > Yes I was referring to that one (ibs.it).
> > My bad.
> > But still, I don't have it.
> 
> I'm sorry, I'm not sure I understand the issue. It's not working for you? Or
> it's not showing up at all? If it's not in the data source list, can you
> verify that you have it enabled in the settings? If it's just not working,
> can you give me an example search to test?

There is not an ibs.it entry in Data Sources Options (Settings > Configure Tellico...) (and I don't know how to configure it)
Comment 22 Robby Stephenson 2017-09-23 00:45:05 UTC
(In reply to ghichtin from comment #21)
> There is not an ibs.it entry in Data Sources Options (Settings > Configure
> Tellico...) (and I don't know how to configure it)

I'll check to see if there's some reason it would be hidden. It's labeled "Internet Bookshop (ibs.it)" in the english text.
Comment 23 Robby Stephenson 2017-10-05 02:39:23 UTC
With recent code changes to do asynchronous image loading, I believe this crash has been fixed.
Comment 24 Robby Stephenson 2017-10-07 00:44:27 UTC
*** Bug 385448 has been marked as a duplicate of this bug. ***