Bug 385887 - Kstars Crashes Upon Closing It
Summary: Kstars Crashes Upon Closing It
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-10-18 03:22 UTC by Bill Wayson
Modified: 2018-03-22 14:27 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 Bill Wayson 2017-10-18 03:22:16 UTC
Application: kstars (2.7.10)

Qt Version: 5.9.1
Frameworks Version: 5.38.0
Operating System: Linux 4.13.5-1-default x86_64
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:  I had simply clicked the 'X' button in the upper right of the kstars window.  Kstars closed, and a message that it ah closed unexpectedly appeared immediately.  I tried this twice with the same results.

The crash can be reproduced every time.

-- Backtrace:
Application: KStars (kstars), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f916db1e940 (LWP 3197))]

Thread 5 (Thread 0x7f911bfff700 (LWP 3213)):
#0  0x00007f9165b28cab in poll () from /lib64/libc.so.6
#1  0x00007f9160a6d149 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f9160a6d25c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f916756369b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f916750c34a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f916733c31a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f9167340d2e in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f916932e558 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f9165b3345f in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f912a1c8700 (LWP 3212)):
#0  0x00007ffdc1d57979 in ?? ()
#1  0x00007ffdc1d57c30 in clock_gettime ()
#2  0x00007f9165b40d46 in clock_gettime () from /lib64/libc.so.6
#3  0x00007f91675630b1 in qt_gettime() () from /usr/lib64/libQt5Core.so.5
#4  0x00007f9167561989 in QTimerInfoList::updateCurrentTime() () from /usr/lib64/libQt5Core.so.5
#5  0x00007f9167561f05 in QTimerInfoList::timerWait(timespec&) () from /usr/lib64/libQt5Core.so.5
#6  0x00007f916756344e in timerSourcePrepare(_GSource*, int*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f9160a6c688 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f9160a6d07b in ?? () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f9160a6d25c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f916756369b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#11 0x00007f916750c34a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#12 0x00007f916733c31a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#13 0x00007f916bf4b705 in ?? () from /usr/lib64/libQt5Qml.so.5
#14 0x00007f9167340d2e in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#15 0x00007f916932e558 in start_thread () from /lib64/libpthread.so.0
#16 0x00007f9165b3345f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f914fb67700 (LWP 3200)):
#0  0x00007f9160ab2714 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f9160a6c678 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f9160a6d07b in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f9160a6d25c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f916756369b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f916750c34a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#6  0x00007f916733c31a in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#7  0x00007f9167c3fa45 in ?? () from /usr/lib64/libQt5DBus.so.5
#8  0x00007f9167340d2e in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#9  0x00007f916932e558 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f9165b3345f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f9156cff700 (LWP 3199)):
#0  0x00007f9165b28cab in poll () from /lib64/libc.so.6
#1  0x00007f915feb7387 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f915feb917a in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f9159abf4b9 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f9167340d2e in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f916932e558 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f9165b3345f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f916db1e940 (LWP 3197)):
[KCrash Handler]
#6  StarBlockList::releaseBlock (this=0x55e5f45d9620, block=block@entry=0x55e5f69d6410) at /usr/src/debug/kstars-17.08.1/kstars/skycomponents/starblocklist.cpp:52
#7  0x000055e5f24f5e69 in StarBlock::~StarBlock (this=0x55e5f69d6410, __in_chrg=<optimized out>) at /usr/src/debug/kstars-17.08.1/kstars/skycomponents/starblock.cpp:68
#8  0x000055e5f24f79ac in StarBlockFactory::deleteBlocks (this=0x55e5f38d15e0, nblocks=56) at /usr/src/debug/kstars-17.08.1/kstars/skycomponents/starblockfactory.cpp:252
#9  0x000055e5f24f7b0c in StarBlockFactory::~StarBlockFactory (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kstars-17.08.1/kstars/skycomponents/starblockfactory.cpp:48
#10 0x000055e5f21dcfa5 in KStars::releaseResources (this=this@entry=0x55e5f335c800) at /usr/src/debug/kstars-17.08.1/kstars/kstars.cpp:272
#11 0x000055e5f21de02e in KStars::~KStars (this=0x55e5f335c800, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kstars-17.08.1/kstars/kstars.cpp:236
#12 0x000055e5f21de19d in KStars::~KStars (this=0x55e5f335c800, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kstars-17.08.1/kstars/kstars.cpp:266
#13 0x00007f916753bc58 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#14 0x00007f9168a3df73 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#15 0x00007f9168b242bb in QMainWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#16 0x00007f916d250aa7 in KMainWindow::event (this=this@entry=0x55e5f335c800, ev=ev@entry=0x55e5f636a0e0) at /usr/src/debug/kxmlgui-5.38.0/src/kmainwindow.cpp:865
#17 0x00007f916d295f25 in KXmlGuiWindow::event (this=0x55e5f335c800, ev=0x55e5f636a0e0) at /usr/src/debug/kxmlgui-5.38.0/src/kxmlguiwindow.cpp:119
#18 0x00007f91689ff9bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#19 0x00007f9168a06d74 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#20 0x00007f916750dd38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#21 0x00007f9167510325 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#22 0x00007f9167514bed in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#23 0x000055e5f2184255 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kstars-17.08.1/kstars/main.cpp:314

Reported using DrKonqi
Comment 1 Jasem Mutlaq 2017-10-18 06:45:02 UTC
Can you try with version 2.8.6?
Comment 2 Bill Wayson 2017-10-21 22:50:02 UTC
Hi Jasem,

I'd like to, but I am having trouble finding an installation source.  And the rpm version numbers I see don't seem to correspond to the kstars version (e.g. my kstars 2.7.1 comes from the kstars-17.08.1-1.1.x86_64 rpm file).  From the various openSUSE repositories I see, 17.08.1 seems to be the latest rpm available.  I see you have an Ubuntu/Mint repository.  Do you have any suggestions?  Will I need to build from source?
Comment 3 Jasem Mutlaq 2017-10-22 05:33:17 UTC
Not sure if there are bleeding-edge versions of KDE or KStars on OpenSUSE. So you have to build from source if you can't find any. On Ubuntu, there is a PPA with frequency updates.
Comment 4 Bill Wayson 2017-11-02 20:18:58 UTC
Hi Jasem,
     First, thank you for all your work on Kstars.  Now, after running kstars for a bit and shutting it down and restarting it several times, it no longer seems to crash upon closing under Tumbleweed.  The kstars version is still 2.7.10, but Qt is now at 5.9.2, Frameworks appears to be at 5.39.0, and the kernel is 4.13.10-1-default x86_64.  Tumbleweed is at version 20171101.
     Let me know if there is anything else you'd like.
Comment 5 Bill Wayson 2018-03-02 15:46:08 UTC
Hello Jasem,

I want to report that, despite my 2017-11-02, the crashing problem when closing Kstars under openSUSE Tumbleweed did reappear.  But, since then, version 2.9.2 of Kstars was installed from the Tumbleweed update repository, and the crashing problem has disappeared.  It has not occurred to me since the update, which was a while ago.

Bill Wayson