×

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
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.

  • Posts: 1009
  • Thank you received: 133
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(?)...
Just to be sure - did you do a full clean build from scratch, or use some old(er) CMake cache?
4 years 2 months ago #48507

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

  • Posts: 1208
  • Thank you received: 559
FYI, I am also looking at it, and that "cute feature--upper left preview" is actually some kind of bug I'm chasing down, perhaps a clue to the crashes.
I never programmed that, and it didn't happen previously :/

Unfortunately, I'm having issues with my build environment on my mac, so it may be a bit until I can fix that and then start debugging.
4 years 2 months ago #48508

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

  • Posts: 969
  • Thank you received: 94
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.
4 years 2 months ago #48511

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

  • Posts: 969
  • Thank you received: 94

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

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

Time to create page: 0.670 seconds