×

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

Bi-monthly release with minor bug fixes and improvements

KStars freezes at Save File dialog

  • Posts: 130
  • Thank you received: 11
After spending a complete sunday with bug tracking, I address my problem to you. KStars freezes whenever I open a file dialog, Open FITS ... , Save Sky Image... or Run Script.... I also tried EKOS VM but same error there. My system is Kubuntu 15.04 with kstars-bleeding from Jasem's ppa.

This the output from EKOS VM:
indi@indi-VirtualBox:~$ kstars
QCommandLineParser: call process() or parse() before isSet
QCommandLineParser: option not defined: "dump"
QCommandLineParser: call process() or parse() before value
QCommandLineParser: call process() or parse() before values
QCommandLineParser: option not defined: "date"
Date string:  ""
QCommandLineParser: call process() or parse() before isSet
QCommandLineParser: option not defined: "paused"
kf5.kiconthemes: "Theme tree: (Breeze)"
"Sun May 17 21:42:20 2015"
is dateTime valid?  true
"Setting clock:  UTC: Sun May 17 21:42:20 2015  JD: 2,457,160.40" 
 
Date string:  ""
"Could not parse Date/Time string: " ""
"Valid date formats: "
  1950-02-25   ;  1950-02-25T05:30:00
  25 Feb 1950  ;  25 Feb 1950 05:30:00
  Sat Feb 25 1950  ;  Sat Feb 25 05:30:00 1950
"Sun May 17 18:42:20 2015 GMT"
is dateTime valid?  true
"Setting clock:  UTC: Sun May 17 18:42:20 2015 GMT  JD: 2,457,160.28" 
 
pci id for fd 10: 80ee:beef, driver (null)
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
"Opened the DSO Database. Ready!"
Processing  "unnamedstars.dat" , HTMesh Level 3
  Sky Mesh Size:  512
Loaded catalog file  "unnamedstars.dat" (hopefully)
"Star HD61421 not found."
"Star HD10700 not found."
"Star HD20794 not found."
"Star HD2151 not found."
"Star HD190248 not found."
"Star HD142860 not found."
"Star HD1581 not found."
"Star HD1581 not found."
"Star HD98230 not found."
File opened:  "/usr/share/kstars/ngcic.dat"
Loading NGC/IC objects
File opened:  "/usr/share/kstars/asteroids.dat"
File opened:  "/usr/share/kstars/comets.dat"
Loading Supernovae data 
 
File opened:  "/home/indi/.local/share/kstars/supernovae.dat"
File named  "/home/indi/.local/share/kstars/supernovae.dat"  encountered an error while reading
"Object named Quaoar not found"
"Object named Eros not found"
"Object named Hektor not found"
"Object named Chiron not found"
"Object named Encke not found"
"Object named Hale-Bopp (1995 O1) not found"
"Object named Halley not found"
"Object named Hyakutake (1996 B2) not found"
"Object named Kohoutek not found"
"Object named Wild 2 not found"
"Object named XXX not found"
Opened the User DB. Ready.
kf5.kservice.sycoca: Trying to open ksycoca from "/home/indi/.cache/ksycoca5"
No WishList Saved yet
QObject::connect: No such signal KStarsData::update()
"Starting the timer"
"Daylight Saving Time active"
"Next Daylight Savings Time change (Local Time): " "Sun Oct 25 03:00:00 2015 GMT"
"Next Daylight Savings Time change (UTC): " "Sun Oct 25 01:59:59 2015 GMT"
The current Date/Time is:  "Sun May 17 21:42:27 2015"
glibc >= 2.1 detected.  Using GNU extension sincos()
Loading Supernovae data 
 
File opened:  "/home/indi/.local/share/kstars/supernovae.dat"
File named  "/home/indi/.local/share/kstars/supernovae.dat"  encountered an error while reading
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
KSambaShare: Could not find smb.conf!

I found a thread here describing a crash when saving FITS files and played around with vlc-backend versus gstreamer without success.

Am I the only one with this issue?

Anyway, here is a backtrace from gdb:
^C[New Thread 0x7fffe2ee0700 (LWP 3813)]
 
Program received signal SIGINT, Interrupt.
0x00007ffff309e8dd in poll () at ../sysdeps/unix/syscall-template.S:81
81      ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  0x00007ffff309e8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff01ddebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff01ddfcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff4becc6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff4b913e2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff58e64b5 in QDialog::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007fffe22c4b96 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/KDEPlatformTheme.so
#7  0x00007ffff58e636a in QDialog::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007ffff58f8205 in QFileDialog::getOpenFileUrl(QWidget*, QString const&, QUrl const&, QString const&, QString*, QFlags<QFileDialog::Option>, QStringList const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x000000000079aad2 in KStars::slotOpenFITS (this=0xc4ea80) at ../../kstars/kstarsactions.cpp:700
#10 0x00000000005aa93d in KStars::qt_static_metacall (_o=0x33fd780, _id=11, _a=0x7fffffffce40, _c=<optimized out>)
    at moc_kstars.cpp:533
#11 0x00007ffff4bc49c9 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007ffff56da722 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff56dce28 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007ffff586018a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007ffff5865bd4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007ffff586a83e in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007ffff57281e8 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007ffff586b053 in QMenu::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff56e4b2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffff56ea8eb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007ffff4b93c2b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007ffff56e93da in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007ffff5740a43 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007ffff5742e33 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007ffff56e4b2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007ffff56ea000 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007ffff4b93c2b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007ffff503ff82 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#29 0x00007ffff5041b45 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#30 0x00007ffff502634f in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#31 0x00007fffe547e590 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#32 0x00007ffff01ddc3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007ffff01ddf20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007ffff01ddfcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007ffff4becc57 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007ffff4b913e2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00007ffff4b9902c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x0000000000514e23 in main (argc=1, argv=<optimized out>) at ../../kstars/main.cpp:213
(gdb)

I compiled a small QT app just to start up the QFileDialog and this app shows no problems. So this looks like a pure KStars issue.

CS
Klaus
The following user(s) said Thank You: Jasem Mutlaq
Last edit: 8 years 10 months ago by Klaus. Reason: added gdb output and test app result
8 years 10 months ago #4237

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

  • Posts: 130
  • Thank you received: 11
Added more infos.
8 years 10 months ago #4257

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

I can confirm the issue in Ekos VM, will look into it. Thank you for the report!
8 years 10 months ago #4259

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

  • Posts: 130
  • Thank you received: 11
This one bugs.kde.org/show_bug.cgi?id=346413 might be interesting.
Last edit: 8 years 10 months ago by Klaus.
8 years 10 months ago #4273

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

It does seem indeed to be the culprit, will check if I can update Ekos to a more recent version of KDE libraries.
8 years 10 months ago #4280

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

  • Posts: 130
  • Thank you received: 11
Seems that I've found a simple solution. :whistle:

My small test app has this statement:
void MainWindow::on_actionOpen_FITS_triggered()
{
    QString fn = QFileDialog::getOpenFileName(this, tr("Open File..."),
                                                  QDir::homePath(), tr("Log-Files (*.log);;All Files (*)"));
}

This runs fine. Now I change it to:
void MainWindow::on_actionOpen_FITS_triggered()
{
    QString fn = QFileDialog::getOpenFileName(0, tr("Open File..."),
                                                  QDir::homePath(), tr("Log-Files (*.log);;All Files (*)"));
}

Now the dialog freezes. The only change is the first parameter of QFileDialog. KStars uses 0 but you should provide a pointer to the parent window. ;)

CS
Klaus
8 years 9 months ago #4331

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

You can pass 0 without issues, this is how it was working in the last few years. It would just make it a top level dialog. At any rate, I also experienced the same freezing on my primary machine so I passed KStars instance and now the freeze is gone. So thanks for the suggestion, I think this issue is probably due to some KDE regression issue.
8 years 9 months ago #4332

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

  • Posts: 130
  • Thank you received: 11
I just got a new kstars-bleeding and the freeze is gone, well, almost. :whistle:

Press File, Print.... aaaannnnnd freeze. :(

I use a colored sky chart so I blame it to KMessageBox as it uses a pointer to the parent too.
answer = KMessageBox::questionYesNoCancel( 0, message, xi18n( "Switch to Star Chart Colors?" ),
                 KGuiItem(xi18n("Switch Color Scheme")), KGuiItem(xi18n("Do Not Switch")), KStandardGuiItem::cancel(), "askAgainPrintColors" );

The following messages are related to this issue.
Calling notify on "Sound"
(kstars:7103): GLib-GObject-WARNING **: cannot register existing type 'GstObject'
(kstars:7103): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(kstars:7103): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed
(kstars:7103): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(kstars:7103): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed
(kstars:7103): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(kstars:7103): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
(kstars:7103): GStreamer-CRITICAL **: gst_object_ref: assertion 'object != NULL' failed
(kstars:7103): GStreamer-CRITICAL **: gst_allocator_register: assertion 'allocator != NULL' failed
(kstars:7103): GStreamer-CRITICAL **: gst_object_ref: assertion 'object != NULL' failed
(kstars:7103): GLib-GObject-WARNING **: cannot register existing type 'GstFormat'
(kstars:7103): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(kstars:7103): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type '<invalid>'
(kstars:7103): GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
(kstars:7103): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(kstars:7103): GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
(kstars:7103): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(kstars:7103): GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
(kstars:7103): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(kstars:7103): GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
(kstars:7103): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

Perhaps the issue hits all uses of KMessageBox with 0 pointer.

CS
Klaus
8 years 9 months ago #4344

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

  • Posts: 2
  • Thank you received: 0
It seems to be the same issue as described here:
indilib.org/forum/ekos/726-kstars-15-04-...ng-on-latest-vm.html
So probably you are right
8 years 9 months ago #4346

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

Well that error above has to do with the Phonon bug that's causing issue in KDE for more than a year . It might be an Ubuntu specific issue I am not sure. You can try filing a bug with KDE it might help!
8 years 9 months ago #4408

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

Time to create page: 0.839 seconds