Bug 372648 - Save from preview crashes EKOS
Summary: Save from preview crashes EKOS
Status: RESOLVED WORKSFORME
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-18 23:49 UTC by Hans Lambermont
Modified: 2017-08-09 20:53 UTC (History)
1 user (show)

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 Hans Lambermont 2016-11-18 23:49:40 UTC
EKOS Camera tab, add an exposure to the sequence queue, click preview button, the preview window pops up with the image in it. So far so good.

Now click 'save' in the preview window. Immedate crash. This has been happening for at least a month using various kstars/EKOS versions from kstars-bleeding PPA under Ubuntu 16.04.1 . Todays' crash was on 4.4.0-47-generic kernel. kstars-bleeding 5:16.10+201611151019~ubuntu16.04.1

Here's the backtrace :

#0  0x00007ffff3c46efc in QUrl::~QUrl() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x0000000000664107 in FITSTab::saveFile (this=0x4887d60) at /build/kstars-bleeding-NXAMd5/kstars-bleeding-16.10+201611151019~ubuntu16.04.1/kstars/fitsviewer/fitstab.cpp:261
#2  0x000000000065fbbe in FITSViewer::saveFile (this=<optimized out>) at /build/kstars-bleeding-NXAMd5/kstars-bleeding-16.10+201611151019~ubuntu16.04.1/kstars/fitsviewer/fitsviewer.cpp:601
#3  0x00000000005a6f05 in FITSViewer::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /build/kstars-bleeding-NXAMd5/kstars-bleeding-16.10+201611151019~ubuntu16.04.1/obj-x86_64-linux-gnu/kstars/moc_fitsviewer.cpp:205
#4  0x00007ffff3d21d2a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff4ac5412 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007ffff4ac7898 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007ffff4bcd560 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007ffff4bcd694 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007ffff4c9214a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007ffff4b11f88 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007ffff4c92229 in QToolButton::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff4acf05c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff4ad4c19 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007ffff3cf338b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007ffff4ad3b32 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007ffff4b2c57b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007ffff4b2eb3b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007ffff4acf05c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff4ad4516 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffff3cf338b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007ffff451e4e1 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#22 0x00007ffff45201a5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#23 0x00007ffff4503f08 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#24 0x00007fffe4ef0060 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#25 0x00007fffef0fc1a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fffef0fc400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fffef0fc4ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007ffff3d497cf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007ffff3cf0b4a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007ffff3cf8bec in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x0000000000483cf3 in main (argc=1, argv=<optimized out>) at /build/kstars-bleeding-NXAMd5/kstars-bleeding-16.10+201611151019~ubuntu16.04.1/kstars/main.cpp:277

This seems hard to reproduce on other systems (save from preview works for lupinix and knro) but it always reproduces on my system.
Comment 1 Jasem Mutlaq 2016-11-24 06:53:04 UTC
Can't replicate here. Might be Qt-related.
Comment 2 Csaba Kertész 2017-08-09 20:53:17 UTC
I am not able to reproduce this bug. At least I remember that I fixed several memory handling errors in the fits viewer in the past months.