FCR001 / cantata

Automatically exported from code.google.com/p/cantata
GNU General Public License v3.0
0 stars 0 forks source link

Cantata segfaults on wakeup of my computer #622

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which version of Cantata?
1.5.1, Archlinux

Which build? KDE, Qt4, Qt5, Windows, Ubuntu, Mac?
Qt5

What steps will reproduce the problem?
1. Run Cantata
2. Suspend computer (closing lid in my example)
3. Wake computer up

What is the expected output? What do you see instead?
I expect Cantata to reconnect to server and continue in work. It segfaults 
instead.

Please provide any additional information below.
cantata[2024]: segfault at 28 ip 00007f4996380177 sp 00007ffff3ab12b0 error 4 
in libQt5Widgets.so.5.4.0[7f49961e8000+663000]
systemd-coredump[8217]: Process 2024 (cantata) of user 1000 dumped core.

I do not have debug symbols now, if needed I will recompile the package and 
post the full backtrace.

Original issue reported on code.google.com by xhpoha...@gmail.com on 2 Feb 2015 at 7:38

GoogleCodeExporter commented 9 years ago
At the very least, please run Cantata from within gdb. Then when it crashes 
type "where" (without quotes) - and post the output here.

e.g.

1. gdb /usr/bin/cantata
2. gdb>  run
3. close lid
4. open lid
5. (after crash) gdb> where

No crashes here on my laptop during resume.

Original comment by craig.p....@gmail.com on 4 Feb 2015 at 10:11

GoogleCodeExporter commented 9 years ago
Any updates to this?

Original comment by craig.p....@gmail.com on 15 Feb 2015 at 3:38

GoogleCodeExporter commented 9 years ago
It seems that it happens more often when I wake up my computer with external 
monitor attached. Here is full backtrace

(gdb) run
Starting program: 
/home/work/dev/arch-build-system/community/cantata/src/build/cantata 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe7af3700 (LWP 12666)]
[New Thread 0x7fffdefac700 (LWP 12667)]
[New Thread 0x7fffde73b700 (LWP 12671)]
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
[New Thread 0x7fffd7fff700 (LWP 12675)]
[New Thread 0x7fffd77fe700 (LWP 12677)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff64ae177 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, 
QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/libQt5Widgets.so.5
(gdb) 
(gdb) 
(gdb) t a a bt

Thread 6 (Thread 0x7fffd77fe700 (LWP 12677)):
#0  0x00007ffff4e174ed in poll () from /usr/lib/libc.so.6
#1  0x00007ffff300bc94 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffff300bdac in g_main_context_iteration () from 
/usr/lib/libglib-2.0.so.0
#3  0x00007ffff5bea077 in 
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () 
from /usr/lib/libQt5Core.so.5
#4  0x00007ffff5b90532 in 
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from 
/usr/lib/libQt5Core.so.5
#5  0x00007ffff59a3664 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00000000008cc578 in Thread::run (this=0x296a860) at 
/home/honza/dev/arch-build-system/community/cantata/src/cantata-1.5.1/support/th
read.cpp:109
#7  0x00007ffff59a85ee in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff69b8374 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff4e2027d in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7fffd7fff700 (LWP 12675)):
#0  0x00007ffff4e174ed in poll () from /usr/lib/libc.so.6
#1  0x00007ffff300bc94 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffff300bdac in g_main_context_iteration () from 
/usr/lib/libglib-2.0.so.0
#3  0x00007ffff5bea08c in 
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () 
from /usr/lib/libQt5Core.so.5
#4  0x00007ffff5b90532 in 
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from 
/usr/lib/libQt5Core.so.5
#5  0x00007ffff59a3664 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00000000008cc578 in Thread::run (this=0xffd850) at 
/home/honza/dev/arch-build-system/community/cantata/src/cantata-1.5.1/support/th
read.cpp:109
#7  0x00007ffff59a85ee in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff69b8374 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff4e2027d in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7fffde73b700 (LWP 12671)):
#0  0x00007ffff4e174ed in poll () from /usr/lib/libc.so.6
#1  0x00007ffff300bc94 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffff300bdac in g_main_context_iteration () from 
/usr/lib/libglib-2.0.so.0
#3  0x00007ffff5bea08c in 
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () 
from /usr/lib/libQt5Core.so.5
#4  0x00007ffff5b90532 in 
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from 
/usr/lib/libQt5Core.so.5
#5  0x00007ffff59a3664 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00000000008cc578 in Thread::run (this=0xf47a30) at 
/home/honza/dev/arch-build-system/community/cantata/src/cantata-1.5.1/support/th
read.cpp:109
---Type <return> to continue, or q <return> to quit---
#7  0x00007ffff59a85ee in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff69b8374 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff4e2027d in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fffdefac700 (LWP 12667)):
#0  0x00007ffff4e191b3 in select () from /usr/lib/libc.so.6
#1  0x00007ffff5b25b31 in ?? () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff59a85ee in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff69b8374 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007ffff4e2027d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fffe7af3700 (LWP 12666)):
#0  0x00007ffff4e174ed in poll () from /usr/lib/libc.so.6
#1  0x00007fffefc2a9f2 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007fffefc2c56f in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007fffe98243f9 in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#4  0x00007ffff59a85ee in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff69b8374 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007ffff4e2027d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fffe9a57800 (LWP 12662)):
#0  0x00007ffff64ae177 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/libQt5Widgets.so.5
#1  0x00007ffff64ae971 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, 
QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, 
QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#2  0x00007ffff64ae7c7 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, 
QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, 
QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#3  0x00007ffff64ad7b7 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/libQt5Widgets.so.5
#4  0x00007ffff647e019 in ?? () from /usr/lib/libQt5Widgets.so.5
#5  0x00007ffff647e3b9 in ?? () from /usr/lib/libQt5Widgets.so.5
#6  0x00007ffff649f04f in QWidgetPrivate::syncBackingStore() () from 
/usr/lib/libQt5Widgets.so.5
#7  0x00007ffff64b3f58 in QWidget::event(QEvent*) () from 
/usr/lib/libQt5Widgets.so.5
---Type <return> to continue, or q <return> to quit---
#8  0x00007ffff65c7aab in QMainWindow::event(QEvent*) () from 
/usr/lib/libQt5Widgets.so.5
#9  0x00007ffff6470d8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() from /usr/lib/libQt5Widgets.so.5
#10 0x00007ffff6476370 in QApplication::notify(QObject*, QEvent*) () from 
/usr/lib/libQt5Widgets.so.5
#11 0x00007ffff5b92a9b in QCoreApplication::notifyInternal(QObject*, QEvent*) 
() from /usr/lib/libQt5Core.so.5
#12 0x00007ffff647f43f in ?? () from /usr/lib/libQt5Widgets.so.5
#13 0x00007ffff648002d in ?? () from /usr/lib/libQt5Widgets.so.5
#14 0x00007ffff64cb21c in ?? () from /usr/lib/libQt5Widgets.so.5
#15 0x00007ffff5bc2339 in QMetaObject::activate(QObject*, int, int, void**) () 
from /usr/lib/libQt5Core.so.5
#16 0x00007ffff5ec19af in QWindow::screenChanged(QScreen*) () from 
/usr/lib/libQt5Gui.so.5
#17 0x00007ffff5ec28b5 in QWindowPrivate::emitScreenChangedRecursion(QScreen*) 
() from /usr/lib/libQt5Gui.so.5
#18 0x00007ffff5ec59e3 in QWindowPrivate::setTopLevelScreen(QScreen*, bool) () 
from /usr/lib/libQt5Gui.so.5
#19 0x00007ffff5ec5b75 in QWindow::screenDestroyed(QObject*) () from 
/usr/lib/libQt5Gui.so.5
#20 0x00007ffff5bc1cca in QMetaObject::activate(QObject*, int, int, void**) () 
from /usr/lib/libQt5Core.so.5
#21 0x00007ffff5bc2a6f in QObject::destroyed(QObject*) () from 
/usr/lib/libQt5Core.so.5
#22 0x00007ffff5bcb2bb in QObject::~QObject() () from /usr/lib/libQt5Core.so.5
#23 0x00007ffff5ee4069 in QScreen::~QScreen() () from /usr/lib/libQt5Gui.so.5
#24 0x00007ffff5eab922 in QPlatformScreen::~QPlatformScreen() () from 
/usr/lib/libQt5Gui.so.5
#25 0x00007fffe982f8d9 in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#26 0x00007fffe98228fb in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#27 0x00007fffe982357d in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#28 0x00007fffe982481b in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#29 0x00007ffff5bc34ba in QObject::event(QEvent*) () from 
/usr/lib/libQt5Core.so.5
#30 0x00007ffff6470d8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() from /usr/lib/libQt5Widgets.so.5
#31 0x00007ffff6476370 in QApplication::notify(QObject*, QEvent*) () from 
/usr/lib/libQt5Widgets.so.5
#32 0x00007ffff5b92a9b in QCoreApplication::notifyInternal(QObject*, QEvent*) 
() from /usr/lib/libQt5Core.so.5
#33 0x00007ffff5b94adb in QCoreApplicationPrivate::sendPostedEvents(QObject*, 
int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#34 0x00007ffff5be9c83 in ?? () from /usr/lib/libQt5Core.so.5
#35 0x00007ffff300ba0d in g_main_context_dispatch () from 
/usr/lib/libglib-2.0.so.0
#36 0x00007ffff300bcf8 in ?? () from /usr/lib/libglib-2.0.so.0
#37 0x00007ffff300bdac in g_main_context_iteration () from 
/usr/lib/libglib-2.0.so.0
#38 0x00007ffff5bea08c in 
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () 
from /usr/lib/libQt5Core.so.5
#39 0x00007ffff5b90532 in 
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from 
/usr/lib/libQt5Core.so.5
#40 0x00007ffff5b97f0c in QCoreApplication::exec() () from 
/usr/lib/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#41 0x0000000000507b57 in main (argc=1, argv=<optimized out>) at 
/home/honza/dev/arch-build-system/community/cantata/src/cantata-1.5.1/gui/main.c
pp:352

Original comment by xhpoha...@gmail.com on 16 Feb 2015 at 8:14

GoogleCodeExporter commented 9 years ago
Hmmm... not sure what to do here, the crash is within 
QWidgetPrivate::drawWidget The thread that crashes (Thread 1) only mentions 
Cantata's main file - the rest is all Qt code.

What is Cantata set to when you suspend? Is it showing the play queue, song 
information, or???

Original comment by craig.p....@gmail.com on 17 Feb 2015 at 8:10

GoogleCodeExporter commented 9 years ago
Does the crash *always* happen upon resume? Or only sometimes? I'm still unable 
to recreate this on my Ubuntu laptop...

Original comment by craig.p....@gmail.com on 24 Feb 2015 at 11:33

GoogleCodeExporter commented 9 years ago
any updates? as I said I cannot recreate this - not much I can do if you do not 
respond to queries.

Original comment by craig.p....@gmail.com on 3 Mar 2015 at 9:39

GoogleCodeExporter commented 9 years ago
Hello,

please excuse me for late responses. I have been busy for a while.
The crash happens *very often* on resume but not in 100% of cases. The external 
LCD really helps to catch the crash, but I remember that I noticed it even with 
single laptop. It does not matter if mpd plays a song or is paused. I'm 
suspicious to Gnome 3 with Intel graphics.

Original comment by xhpoha...@gmail.com on 4 Mar 2015 at 7:46

GoogleCodeExporter commented 9 years ago
Thanks for the response - and sorry for hassling you :-)

My question was more based upon which 'views' cantata was showing. Seeing as 
the crash happens in the drawing code - I was curious if it only happened when 
the song info page was shown. Or perhaps, only when the grouped-style play 
queue was shown, only when albums page visible, etc.

Original comment by craig.p....@gmail.com on 4 Mar 2015 at 1:23

GoogleCodeExporter commented 9 years ago
Also, can you try a Qt4 build?

Original comment by craig.p....@gmail.com on 4 Mar 2015 at 2:03