×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Updating comet data causes crash

  • Posts: 985
  • Thank you received: 160
Data/Updates/"Update comets orbital elements" causes KStars (Build: 2018-09-01T20:53:57Z, Kubuntu 18.04) to crash. Other data updates work flawlessly.
5 years 6 months ago #29176

Please Log in or Create an account to join the conversation.

  • Posts: 2247
  • Thank you received: 223
If you are able to replicate it again, make sure you enable logging and attach it to this post. It will help the dev team troubleshoot the issue.
The following user(s) said Thank You: Alfred
5 years 6 months ago #29180

Please Log in or Create an account to join the conversation.

  • Posts: 111
  • Thank you received: 41
Just compiled the latest KStars version from GIT, and updating comet data works without any problem (Debian 9.5).
As mentioned before, if you could compile KStars with:
cmake -DCMAKE_BUILD_TYPE=Debug

and run KStars within gdb
tstibor@polaris:~/dev/astronomy/kstars/build/kstars>gdb ./kstars
(gdb) run
Starting program: /home/tstibor/dev/astronomy/kstars/build/kstars/kstars 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe187e700 (LWP 15109)]
[New Thread 0x7fffd7ef2700 (LWP 15110)]
[New Thread 0x7fffd76f1700 (LWP 15111)]
org.kde.kstars: Welcome to KStars 3.0.0
org.kde.kstars: Build: 2018-09-02T09:15:01Z
org.kde.kstars: OS: "debian"
org.kde.kstars: API: "x86_64-little_endian-lp64"
org.kde.kstars: Arch: "x86_64"
org.kde.kstars: Kernel Type: "linux"
org.kde.kstars: Kernel Version: "4.9.0-8-amd64"
[New Thread 0x7fffd6ef0700 (LWP 15112)]
[New Thread 0x7fffc53df700 (LWP 15113)]
[New Thread 0x7fffc458a700 (LWP 15114)]
[New Thread 0x7fffc3d89700 (LWP 15115)]
org.kde.kstars: Processing  "unnamedstars.dat" , HTMesh Level 3
org.kde.kstars:   Sky Mesh Size:  512
org.kde.kstars: Loaded DSO catalog file:  "unnamedstars.dat"
org.kde.kstars: "Star HD20794 not found."
org.kde.kstars: "Star HD98230 not found."
File opened:  "/usr/local/share/kstars/ngcic.dat"
org.kde.kstars: Loading NGC/IC objects
File opened:  "/home/tstibor/.local/share/kstars/comets.dat"
org.kde.kstars: "Object named NGC 6050A not found"
[New Thread 0x7fffc1017700 (LWP 15116)]

and after the crash (segmentation fault) type
(gdb) bt
#0  0x00007ffff24beabb in QTemporaryFile::fileName() const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x0000555555befcc3 in KSDssDownloader::startSingleDownload (this=0x5555564bf9e0, srcUrl=..., destFileName=..., md=...)
    at /home/tstibor/dev/astronomy/kstars/kstars/auxiliary/ksdssdownloader.cpp:233
#2  0x0000555555bafd65 in EyepieceField::slotDownloadDss (this=0x5555565dbe50) at /home/tstibor/dev/astronomy/kstars/kstars/tools/eyepiecefield.cpp:574
#3  0x00007ffff259f5e9 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff3449422 in QAbstractButton::clicked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007ffff3449674 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007ffff344aa67 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007ffff344ac44 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007ffff33a8278 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

then one can see and inspect what is going on.

Cheers
Thomas
The following user(s) said Thank You: Alfred
5 years 6 months ago #29183

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160
Gonzo, Copello, many thanks for your replies. It is 100% reproducable here, downloading the data will crash KStars all the time. The log isn't very helpful, I'm afraid.

[2018-09-02T13:57:36.549 CEST WARN ][ default] - content-type missing in HTTP POST, defaulting to application/x-www-form-urlencoded. Use QNetworkRequest::setHeader() to fix this problem.
[2018-09-02T13:57:38.094 CEST DEBG ][ default] - File opened: "/home/trifid/.local/share/kstars/comets.dat"

I'll look into this gdb thing which is totally new to me later today. Thanks for your help!
5 years 6 months ago #29185

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160
[EDIT: After another git pull this is what I end up with:]

#0 0x00007ffff2049428 in QString::trimmed_helper(QString const&) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1 0x000055555564776b in QString::trimmed() const & (this=0x55555951fe80)
at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:406
#2 dms::setFromString (this=0x7fffffffb068, str=..., isDeg=104)
at /home/trifid/Astro/kstars/kstars/auxiliary/dms.cpp:61
#3 0x00005555556b3012 in SkyObject::translatedLongName (this=0x55555951fe80)
at /home/trifid/Astro/kstars/kstars/skyobjects/skyobject.h:171
#4 0x0000555555c87bc9 in InfoBoxWidget::slotObjectChanged (this=0x555559aba2e0,
obj=0x55555951fe80) at /home/trifid/Astro/kstars/kstars/widgets/infoboxwidget.cpp:114
#5 0x000055555591a6a7 in InfoBoxWidget::qt_static_metacall (_o=0x555559aba2e0,
_c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffffffb240)
at /home/trifid/Astro/kstars/build/kstars/KStarsLib_autogen/IMAN36LHMA/moc_infoboxwidget.cpp:163
#6 0x00007ffff21d95b5 in QMetaObject::activate(QObject*, int, int, void**) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7 0x000055555590f3a2 in SkyMap::objectChanged (this=0x55555683ed60, _t1=0x55555951fe80)
at /home/trifid/Astro/kstars/build/kstars/KStarsLib_autogen/EWIEGA46WW/moc_skymap.cpp:404
#8 0x00005555556b6095 in SkyMap::showFocusCoords (this=0x55555683ed60)
at /home/trifid/Astro/kstars/kstars/skymap.cpp:278
#9 0x00005555556c41c6 in SkyMapQDraw::paintEvent (this=0x555559abb3c0, event=0x7fffffffb5d0)
at /home/trifid/Astro/kstars/kstars/skymapqdraw.cpp:69
#10 0x00007ffff366e038 in QWidget::event(QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007ffff362f82c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff36370f4 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff21aa9a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff366718a in QWidgetPrivate::sendPaintEvent(QRegion const&) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007ffff366774a in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
---Type <return> to continue, or q <return> to quit---
#16 0x00007ffff36683b0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007ffff3667356 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007ffff36683b0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff3667356 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffff36683b0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007ffff3667356 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007ffff363ee54 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007ffff363f095 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007ffff365666f in QWidgetPrivate::syncBackingStore() ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007ffff366e1a8 in QWidget::event(QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007ffff3781c4b in QMainWindow::event(QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007ffff76cfb87 in KMainWindow::event(QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#28 0x00007ffff77149e5 in KXmlGuiWindow::event(QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#29 0x00007ffff362f82c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007ffff36370f4 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007ffff21aa9a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007ffff363feb8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
---Type <return> to continue, or q <return> to quit---
#33 0x00007ffff3640eaf in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007ffff36583b7 in QWidget::repaint(QRect const&) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007ffff365841c in QWidget::repaint() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00005555556bc0dd in SkyMap::forceUpdate (this=0x55555683ed60, now=true)
at /home/trifid/Astro/kstars/kstars/skymap.cpp:1181
#37 0x0000555555689442 in SkyMap::forceUpdateNow (this=0x55555683ed60)
at /home/trifid/Astro/kstars/kstars/skymap.h:320
#38 0x000055555590eacd in SkyMap::qt_static_metacall (_o=0x55555683ed60,
_c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fffffffcb10)
at /home/trifid/Astro/kstars/build/kstars/KStarsLib_autogen/EWIEGA46WW/moc_skymap.cpp:251
#39 0x00007ffff21d95b5 in QMetaObject::activate(QObject*, int, int, void**) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x000055555590a177 in KStarsData::skyUpdate (this=0x5555567982f0, _t1=false)
at /home/trifid/Astro/kstars/build/kstars/KStarsLib_autogen/EWIEGA46WW/moc_kstarsdata.cpp:210
#41 0x00005555556652e9 in KStarsData::updateTime (this=0x5555567982f0, geo=0x555556798310,
automaticDSTchange=true) at /home/trifid/Astro/kstars/kstars/kstarsdata.cpp:296
#42 0x00005555556b03e1 in KStars::updateTime (this=0x555556726ea0, automaticDSTchange=true)
at /home/trifid/Astro/kstars/kstars/kstars.cpp:584
#43 0x0000555555909109 in KStars::qt_static_metacall (_o=0x555556726ea0,
_c=QMetaObject::InvokeMetaMethod, _id=54, _a=0x7fffffffd380)
at /home/trifid/Astro/kstars/build/kstars/KStarsLib_autogen/EWIEGA46WW/moc_kstars.cpp:663
#44 0x00007ffff21d95b5 in QMetaObject::activate(QObject*, int, int, void**) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x000055555590feb4 in SimClock::timeAdvanced (this=0x5555567983d0)
at /home/trifid/Astro/kstars/build/kstars/KStarsLib_autogen/6J4LICVGHX/moc_simclock.cpp:223
#46 0x00005555556552b5 in SimClock::tick (this=0x5555567983d0)
at /home/trifid/Astro/kstars/kstars/time/simclock.cpp:68
#47 0x000055555590fa34 in SimClock::qt_static_metacall (_o=0x5555567983d0,
_c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7fffffffd5d0)
at /home/trifid/Astro/kstars/build/kstars/KStarsLib_autogen/6J4LICVGHX/moc_simclock.cpp:137
#48 0x00007ffff21d95b5 in QMetaObject::activate(QObject*, int, int, void**) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#49 0x00007ffff21e6027 in QTimer::timeout(QTimer::QPrivateSignal) ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#50 0x00007ffff21e6388 in QTimer::timerEvent(QTimerEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#51 0x00007ffff21da0db in QObject::event(QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#52 0x00007ffff362f82c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#53 0x00007ffff36370f4 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#54 0x00007ffff21aa9a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#55 0x00007ffff2202d8e in QTimerInfoList::activateTimers() ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#56 0x00007ffff2203551 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#57 0x00007fffeb467287 in g_main_context_dispatch ()
from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00007fffeb4674c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007fffeb46754c in g_main_context_iteration ()
from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00007ffff22038ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#61 0x00007ffff21a89ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#62 0x00007ffff21b1a84 in QCoreApplication::exec() ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#63 0x000055555563d201 in main (argc=1, argv=0x7fffffffdea8)
at /home/trifid/Astro/kstars/kstars/main.cpp:331
Last edit: 5 years 6 months ago by Alfred.
5 years 6 months ago #29187

Please Log in or Create an account to join the conversation.

  • Posts: 111
  • Thank you received: 41
Which Distribution are you running?

It it somehow confusing, because according to your backtrace (bt). The crashed finally occured in trimmed_helper which
was called by trimmed which is called by setFromString in dms.cpp:
bool dms::setFromString(const QString &str, bool isDeg)
{
    int d(0), m(0);
    double s(0.0);
    bool checkValue(false), badEntry(false), negative(false);
    QString entry = str.trimmed();
    entry.remove(QRegExp("[hdms'\"°]"));

As one can see, the Parameter is "reference to str" and a bool value.
When I trace the function and breakpoint there I get:
tstibor@polaris:~/dev/astronomy/kstars/build/kstars>gdb ./kstars
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./kstars...done.
(gdb) break dms.cpp:58
Breakpoint 1 at 0x1018a0: file /home/tstibor/dev/astronomy/kstars/kstars/auxiliary/dms.cpp, line 58.
(gdb) run
Starting program: /home/tstibor/dev/astronomy/kstars/build/kstars/kstars 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe187e700 (LWP 24205)]
[New Thread 0x7fffd7ef2700 (LWP 24206)]
[New Thread 0x7fffd76f1700 (LWP 24207)]
org.kde.kstars: Welcome to KStars 3.0.0
org.kde.kstars: Build: 2018-09-02T09:15:01Z
org.kde.kstars: OS: "debian"
org.kde.kstars: API: "x86_64-little_endian-lp64"
org.kde.kstars: Arch: "x86_64"
org.kde.kstars: Kernel Type: "linux"
org.kde.kstars: Kernel Version: "4.9.0-8-amd64"
[New Thread 0x7fffd6ef0700 (LWP 24208)]
[New Thread 0x7fffc53df700 (LWP 24209)]
 
Thread 1 "kstars" hit Breakpoint 1, dms::setFromString (this=this@entry=0x7fffffffd180, str=..., isDeg=isDeg@entry=true)
    at /home/tstibor/dev/astronomy/kstars/kstars/auxiliary/dms.cpp:58
58	    int d(0), m(0);
(gdb) p *str->d
$1 = {<QArrayData> = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = 4}, <No data fields>}}}, size = 12, alloc = 13, 
    capacityReserved = 0, offset = 24, static shared_null = {{ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, 
                _M_i = -1}, <No data fields>}}}, size = 0, alloc = 0, capacityReserved = 0, offset = 24, 
        static shared_null = <same as static member of an already seen type>}, {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, 
                _M_i = 0}, <No data fields>}}}, size = 0, alloc = 0, capacityReserved = 0, offset = 0, 
        static shared_null = <same as static member of an already seen type>}}}, <No data fields>}
(gdb) p isDeg
$2 = true

However, according to you trace:
#2 dms::setFromString (this=0x7fffffffb068, str=..., isDeg=104)
isDeg = 104 and not a bool?? Did you compile with the Debug symbols?

Can you also remove /home/trifid/.local/share/kstars/comets.dat
so it is newly downloaded when update the comet data.
The following user(s) said Thank You: Alfred
5 years 6 months ago #29191

Please Log in or Create an account to join the conversation.

I can't replicate it with git master.
The following user(s) said Thank You: Alfred
5 years 6 months ago #29194

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160

Kubuntu 18.04.

I compiled as you suggested with debug activated. With regard to your analysis, what does it mean? Is there something wrong with my system? I have several computers set up as clients for my astro server so I will check whether the problem occurs there, too. 104 is no boolean, that's what I am able to understand. The rest is beyond my knowledge.

Sure. Same result, slightly different trace.
Last edit: 5 years 6 months ago by Alfred.
5 years 6 months ago #29204
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160
Although KStars crashed during comets update, the file comets.dat was created. File size 491167
5 years 6 months ago #29205

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160
Did the same thing with an older Athlon X2 sytem. Updated to the latest nightly, updated comets and it went just fine! So it appears there is something wrong with my main system. Is there anything that I could try short of installing from scratch?
5 years 6 months ago #29208

Please Log in or Create an account to join the conversation.

  • Posts: 111
  • Thank you received: 41
How about running wiki.ubuntuusers.de/memtest/ . You problem could be the result of some faulty RAM
The following user(s) said Thank You: Alfred
5 years 6 months ago #29213

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160
Excellent idea. Memtest is running, will give it plenty of time to complete. Thanks!
Last edit: 5 years 6 months ago by Alfred.
5 years 6 months ago #29217

Please Log in or Create an account to join the conversation.

Time to create page: 0.257 seconds