×

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

Bi-monthly release with minor bug fixes and improvements

fitsviewer: stretching image causes crash

  • Posts: 969
  • Thank you received: 94
Hi everyone
If I use the sliders at the bottom of the fitsviewer window, kstars crashes
the workaround is not to play with the sliders but I find it useful to be able to do so.
Cheers and clear skies,
Steve

Thread 1 "kstars" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff0184e97 in __GI_raise (sig=sig@entry=6)
at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007ffff0186801 in __GI_abort () at abort.c:79
#2 0x00007ffff21c9fb7 in () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3 0x00007ffff21c5486 in () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4 0x00005555559ff16c in Stretch::run(unsigned char*, QImage*, int) (this=0x7fffffffd170, input=0x7fff773c8010 "\177\004\261\004\261\004q\004q\004u\004u\004\220\004\220\004\201\004\201\004\263\004\263\004\212\004\212\004r\004r\004\200\004\200\004v\004v\004\221\004\221\004\207\004\207\004\222\004\222\004\232\004\232\004\201\004\201\004\206\004\206\004\233\004\233\004\212\004\212\004\202\004\202\004\227\004\227\004\243\004\243\004\231\004\231\004\234\004\234\004\213\004\213\004\232\004\232\004\205\004\205\004\260\004\260\004\222\004\222\004r\004r\004Q\004Q\004\222\004\222\004\207\004\207\004\235\004\235\004z\004z\004\202\004\202\004\250\004\250\004\207\004\207\004\277\004\277\004\256\004\256\004\217\004\217\004\206\004\206\004\245\004\245\004\203\004\203\004\231\004\231\004\302\004\302\004\216\004\216\004r\004r\004\214\004\214\004}\004}\004\240\004"..., outputImage=0x555556bbefc0, sampling=4)
at /home/steve/Projects/kstars/kstars/fitsviewer/stretch.cpp:321
#5 0x0000555555849549 in FITSView::doStretch(FITSData*, QImage*) (this=
0x555556bbeee0, data=0x7fffa00063b0, outputImage=0x555556bbefc0)
at /home/steve/Projects/kstars/kstars/fitsviewer/fitsview.cpp:100
#6 0x0000555555855791 in FITSView::rescale<unsigned short>(FITSZoom) (this=0x555556bbeee0, type=ZOOM_KEEP_LEVEL)
---Type <return> to continue, or q <return> to quit---
at /home/steve/Projects/kstars/kstars/fitsviewer/fitsview.cpp:554
#7 0x000055555584b755 in FITSView::rescale(FITSZoom) (this=0x555556bbeee0, type=ZOOM_KEEP_LEVEL)
at /home/steve/Projects/kstars/kstars/fitsviewer/fitsview.cpp:427
#8 0x0000555555849705 in FITSView::setStretchParams(StretchParams const&) (this=0x555556bbeee0, params=...)
at /home/steve/Projects/kstars/kstars/fitsviewer/fitsview.cpp:117
#9 0x0000555555a20003 in FITSTab::<lambda(int)>::operator()(int) const (__closure=0x555556b65780, value=5167)
at /home/steve/Projects/kstars/kstars/fitsviewer/fitstab.cpp:281
#10 0x0000555555a28985 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>, void, FITSTab::setupStretchBar()::<lambda(int)> >::call(FITSTab::<lambda(int)> &, void **) (f=..., arg=0x7fffffffd580)
at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:130
#11 0x0000555555a28243 in QtPrivate::Functor<FITSTab::setupStretchBar()::<lambda(int)>, 1>::call<QtPrivate::List<int>, void>(FITSTab::<lambda(int)> &, void *, void **) (f=..., arg=0x7fffffffd580)
at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:240
#12 0x0000555555a277fb in QtPrivate::QFunctorSlotObject<FITSTab::setupStretchBar()::<lambda(int)>, 1, QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x555556b65770, r=0x555556b6bb00, a=0x7fffffffd580, ret=0x0)
at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject_impl.h:168
---Type <return> to continue, or q <return> to quit---
#13 0x00007ffff23ec75f in QMetaObject::activate(QObject*, int, int, void**) ()
at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff3936c81 in QAbstractSlider::sliderMoved(int) ()
at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007ffff39376f6 in QAbstractSlider::setSliderPosition(int) ()
at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007ffff39dca1b in QSlider::mouseMoveEvent(QMouseEvent*) ()
at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007ffff3881048 in QWidget::event(QEvent*) ()
at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007ffff39dd04a in QSlider::event(QEvent*) ()
at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff384283c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffff384a65f in QApplication::notify(QObject*, QEvent*) ()
at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007ffff23bd9c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007ffff3849632 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007ffff389c16b in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007ffff389e7da in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
---Type <return> to continue, or q <return> to quit---
#25 0x00007ffff384283c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007ffff384a104 in QApplication::notify(QObject*, QEvent*) ()
at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007ffff23bd9c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007ffff2e64583 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#29 0x00007ffff2e66055 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#30 0x00007ffff2e3d2eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#31 0x00007fffdedd0260 in () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#32 0x00007fffed8f3417 in g_main_context_dispatch ()
at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007fffed8f3650 in () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007fffed8f36dc in g_main_context_iteration ()
at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007ffff241697f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007ffff23bb9fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#37 0x00007ffff23c4aa4 in QCoreApplication::exec() ()
at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x000055555562e5eb in main(int, char**) (argc=1, argv=0x7fffffffe5e8)
at /home/steve/Projects/kstars/kstars/main.cpp:332
(gdb)

File Attachment:

File Name: log_13-50-02.txt
File Size:4 KB
4 years 2 months ago #48486
Attachments:

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

  • Posts: 1009
  • Thank you received: 133
Is that with any data? Here it works nicely (recent git, from 3 days ago)
4 years 2 months ago #48489

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

  • Posts: 969
  • Thank you received: 94
Hi, yes but I have only fits files from my Canon DSLR from ekos. Could you point me at a fits file which works? I can then Isolate the problem to the DSLR.
TIA
4 years 2 months ago #48490

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

  • Posts: 1009
  • Thank you received: 133
Ah, so it likely is related to either color or de-bayer, I've only tried grey...
I don't have bayer FITS data, but I tried it with a (processed) RGB fits, and that worked, too.
(And I had just recompiled the latest version 'as of now')
The following user(s) said Thank You: alacant
4 years 2 months ago #48492

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

  • Posts: 969
  • Thank you received: 94
Here's an example that causes the crash, also with the git from a few moments ago:
drive.google.com/open?id=1efn4UFufz1HWPYUTp-KlCKZwa-1-RPFx

It opens fine with the stable version however.
TIA
4 years 2 months ago #48493

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

  • Posts: 1009
  • Thank you received: 133
If you need a working file, you can try this: N7000_300.fits (raw from ASI1600, 32MB)
4 years 2 months ago #48494

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

  • Posts: 1009
  • Thank you received: 133
Hmm, your file is nicely displayed, stretched and zoomed here :P
4 years 2 months ago #48495

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

  • Posts: 969
  • Thank you received: 94
Hi. Your file crashes too. Must be my install. Anything I could try?
TIA
4 years 2 months ago #48496

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

  • Posts: 1009
  • Thank you received: 133
Not really :(
(and I have to leave now for some ~2h - maybe someone else has suggestions)
4 years 2 months ago #48497

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

  • Posts: 969
  • Thank you received: 94
Ok. One observation: the icon at the lower right of the fitsviewer window which restores default slider positions is missing in the git version but present in the stable PPA version.
Ubuntu 18.04
4 years 2 months ago #48499

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

  • Posts: 1208
  • Thank you received: 559
Steve, I'll also take a look. You say it crashes from the most recent git with that file. What computer, OS, other details are you using?

Also, that magic wand icon in the lower right is disabled when the image is already using the automatically computed stretch parameters. It only appears after the stretch has been modified. Perhaps that's what you're seeing?
4 years 2 months ago #48501

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

  • Posts: 969
  • Thank you received: 94
Hi. Yes, I only see the icon after I move the sliders in the stable version of kstars but in the latest git I never get to see it because moving any of the sliders causes the crash: bt above. It crashes with ANY .fits file whether I created it with a dslr in kstars or not.
Thanks for taking a look.

Ubuntu 18.04 updated
Tried on an intel i3 with 16Gb, an intel i5 with 8Gb both using ssd drives and an AMD E2 with 4Gb and a mechanical hard drive, all using either yesterday's or today's git. The fitsviewer of stable version 3.3.9 works on all three.
TIA
Last edit: 4 years 2 months ago by alacant.
4 years 2 months ago #48502

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

Time to create page: 0.801 seconds