steve created a new topic ' fitsviewer: segmentation fault' in the forum. 21 hours 32 minutes ago

Hi everyone
Not having much luck with fitsviewer. There's a crash after uploading an image from the camera, an eos450. Worked ok for 29 captures then:
Maybe related to this?
www.indilib.org/forum/ekos/6346-fitsview...ge-causes-crash.html

Any ideas?
TIA,
Steve

Thread 7 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffbf5ee700 (LWP 2060)]
tcache_get (tc_idx=7) at malloc.c:2943
2943 malloc.c: No such file or directory.
(gdb) bt
#0 0x00007ffff01dd207 in tcache_get (tc_idx=7) at malloc.c:2943
#1 0x00007ffff01dd207 in __GI___libc_malloc (bytes=128) at malloc.c:3050
#2 0x00007ffff0b80258 in operator new(unsigned long) ()
at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff2ea7cdf in QImageData::create(QSize const&, QImage::Format) ()
at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#4 0x00007ffff2ea7e9b in QImage::QImage(QSize const&, QImage::Format) ()
at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#5 0x00007ffff2ea7ed5 in QImage::QImage(int, int, QImage::Format) ()
at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#6 0x00007ffff2ea84b3 in QImage::copy(QRect const&) const ()
at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#7 0x00007ffff2ea8c7f in QImage::detach() ()
at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#8 0x00007ffff2ea8d27 in QImage::scanLine(int) ()
at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#9 0x0000555555a03d54 in (anonymous namespace)::<lambda()>::operator()(void) const (__closure=0x55556349b130)
at /home/steve/Projects/kstars/kstars/fitsviewer/stretch.cpp:90
#10 0x0000555555a1c12d in QtConcurrent::StoredFunctorCall0<void, (anonymous namespace)::stretchOneChannel(T*, QImage*, const StretchParams&, int, int, int, int) [with T = short unsigned int]::<lambda()> >::runFunctor(void) (this=0x55556349b110)
---Type <return> to continue, or q <return> to quit---
at /usr/include/x86_64-linux-gnu/qt5/QtConcurrent/qtconcurrentstoredfunctioncall.h:70
#11 0x00005555559feebd in QtConcurrent::RunFunctionTask<void>::run() (this=0x55556349b110)
at /usr/include/x86_64-linux-gnu/qt5/QtConcurrent/qtconcurrentrunbase.h:136
#12 0x00007ffff21dc2b2 in () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007ffff21df17d in () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff14ab6db in start_thread (arg=0x7fffbf5ee700)
at pthread_create.c:463
#15 0x00007ffff026788f in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)

Read More...

steve replied to the topic 'fitsviewer: stretching image causes crash' in the forum. 2 days ago

It is now submitted, so if you git pull and compile, you'll have the fix.


I can confirm that this fixes the fitsview sliders: Ubuntu 18.04
@hy, everyone... thanks for your time and effort:)

File Attachment:

File Name: log_09-08-14.txt
File Size: 4 KB


Read More...

steve replied to the topic 'fitsviewer: stretching image causes crash' in the forum. 3 days ago

So if I interpret the crash happens during the display of the scaled-down preview in the upper left (cute feature BTW!), and within some QT GL-routine(?)...


To reproduce the crash:
1 open a . fits file in fitsviewer
2. Move one of the three sliders at the bottom of the fitsviewer window.
result: kstars crashes

Thanks again,
Steve

Read More...

steve replied to the topic 'fitsviewer: stretching image causes crash' in the forum. 3 days ago

Full clean build from nothing. I deleted ~/Projects and started over: same crash with any .fits file. The bt suggests:
home/steve/Projects/kstars/kstars/fitsviewer/stretch.cpp:321
Had something to do with it,but I'm not a coder...
Thanks for your time everyone.

Read More...

steve replied to the topic 'fitsviewer: stretching image causes crash' in the forum. 3 days ago

Hi. Yes, I only see the icon after I move the sliders in the stable version of jkstars but in the latest git I never get to see it because moving any of the sliders causes the crash: bt above. It crasjhes with ANY .fits file whether I created with a dslr it 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.
TIA

Read More...

steve replied to the topic 'fitsviewer: stretching image causes crash' in the forum. 3 days ago

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

Read More...

steve replied to the topic 'fitsviewer: stretching image causes crash' in the forum. 3 days ago

Hi. Your file crashes too. Must be my install. Anything I could try?
TIA

Read More...

steve replied to the topic 'fitsviewer: stretching image causes crash' in the forum. 3 days ago

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

Read More...

steve replied to the topic 'fitsviewer: stretching image causes crash' in the forum. 3 days ago

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

Read More...

steve created a new topic ' fitsviewer: stretching image causes crash' in the forum. 3 days ago

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


Read More...

steve replied to the topic 'dslr: wrong sensor dimensions' in the forum. 7 days ago

Ok. Yes. That seems to have fixed it. The indi messages from the git are now exactly the same as from the stable; the configuration is loaded first, not saved.
We now survive a restart and a change of profile any number of times:)
Cloudy so can't test under the stars but looks promising.
Thanks,
Steve

Read More...

steve replied to the topic 'dslr: wrong sensor dimensions' in the forum. 7 days ago

Anyone?
I'm not too bothered about the crash. It's the sensor dimensions which have me confused.
Why should they work with the stable version but not with the git source?
The only difference between the two versions is described here:
www.indilib.org/forum/ekos/6304-dslr-wro....html?start=12#48183

The git version saves the configuration BEFORE it has loaded it.

Cheers
Steve

Read More...

steve replied to the topic 'dslr: wrong sensor dimensions' in the forum. 1 week ago

Hi everyone
I spoke too soon. The frame values are being reset top 0 0 0 0
@Jasem could you TeamViewer in and take a look for me?

Read More...