×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

fitsviewer: segmentation fault

  • Posts: 969
  • Thank you received: 94
Ubuntu 18.04: kstars clean install from git source.

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

log: drive.google.com/open?id=1kAspwflY_ywhUkt0rxEdf3lovUUZhDYh

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)
Last edit: 4 years 2 months ago by alacant.
4 years 2 months ago #48603

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

  • Posts: 969
  • Thank you received: 94
Hi
Does 7c1264a address this?
Cheers
4 years 2 months ago #48645

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

  • Posts: 1221
  • Thank you received: 565
Steve,

Yesterday I looked at that first crash you referenced, and seemed to make it go away with the change you pointed to. Honestly, I didn't feel I totally understood what was the root issue. I don't think there's an issue with the stretching itself so much as the memory it's being passed. Can you please test with the patch you pointed to and see if it clears up your issue? It's in the latest code, so a git pull would get it (or you could just remove those 4 lines from fitsview.cpp and recompile).

Thanks.
4 years 2 months ago #48646

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

Time to create page: 0.200 seconds