deepskystacker / DSS

DeepSkyStacker
Other
894 stars 90 forks source link

To do May 2024 #206

Open mtoeltsch opened 3 months ago

mtoeltsch commented 3 months ago

Martin Toeltsch This list is just to manage the open issues (18-May-2024).

perdrix52 commented 3 months ago

Thanks Martin – I may even find some time in June to work with you to issue a bug fix release.

The first one you report here – that’s that first I have heard of it.

From: Martin Toeltsch @.> Sent: 18 May 2024 08:30 To: deepskystacker/DSS @.> Cc: Subscribed @.***> Subject: [deepskystacker/DSS] To do May 2024 (Issue #206)

Martin Toeltsch This list is just to manage the open issues (18-May-2024).

— Reply to this email directly, view it on GitHub https://github.com/deepskystacker/DSS/issues/206 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2GQMWJOFC6HFRXBZDG4C3ZC37NZAVCNFSM6AAAAABH5HVP2OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYDGOJQGM3DINA . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/AE2GQMVX3RQ3OQHMRBKKGLLZC37NZA5CNFSM6AAAAABH5HVP2OWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHISUWHTQ.gif Message ID: @. @.> >

perdrix52 commented 3 months ago

In Comet editing mode the Green rectangle snaps to existing stars unless you use the Shift key which allows you to click anywhere.

David

mtoeltsch commented 3 months ago

In Comet editing mode the Green rectangle snaps to existing stars unless you use the Shift key which allows you to click anywhere. David

If you test it with that file:

https://groups.io/g/DeepSkyStacker/attachment/31369/1/C-2023%20A3%20_Tsuchinshan-ATLAS__2024-05-16_22-23-47_60.00s_ISO200_0.00_0030.nef

you'll notice that the green rectangle snaps e.g. to a star in the upper left corner while the mouse is in the bottom right part of the image. If you then mark it as a comet, it won't let you un-mark it anymore. With other stars, it works better, so it's a mixture of "normal" and "weird" behaviour. After some marking/un-marking actions, DSS crashes with an EXC_ACCESS_VIOLATION, because from the vector EditStars::stars the item with index 2 shall be erased while the vector has a size of only 2.

This is an example: Instead of offering me the option to add the star near the mouse, it would let me remove a star at a completely different position.

grafik

perdrix52 commented 3 months ago

Hmm – that’s not so good ☹

From: Martin Toeltsch @.> Sent: 18 May 2024 14:29 To: deepskystacker/DSS @.> Cc: David C. Partridge @.>; Comment @.> Subject: Re: [deepskystacker/DSS] To do May 2024 (Issue #206)

In Comet editing mode the Green rectangle snaps to existing stars unless you use the Shift key which allows you to click anywhere. David

If you test it with that file:

https://groups.io/g/DeepSkyStacker/attachment/31369/1/C-2023%20A3%20_Tsuchinshan-ATLAS__2024-05-16_22-23-47_60.00s_ISO200_0.00_0030.nef

you'll notice that the green rectangle snaps e.g. to a star in the upper left corner while the mouse is in the bottom right part of the image. If you then mark it as a comet, it won't let you un-mark it anymore. With other stars, it works better, so it's a mixture of "normal" and "weird" behaviour. After some marking/un-marking actions, DSS crashes with an EXC_ACCESS_VIOLATION, because from the vector EditStars::stars the item with index 2 shall be erased while the vector has a length of only 2.

— Reply to this email directly, view it on GitHub https://github.com/deepskystacker/DSS/issues/206#issuecomment-2118825986 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2GQMVAOSF5NOTE3W6IT5LZC5JR5AVCNFSM6AAAAABH5HVP2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYHAZDKOJYGY . You are receiving this because you commented. https://github.com/notifications/beacon/AE2GQMTCRIRBFQJ6TQDB6NTZC5JR5A5CNFSM6AAAAABH5HVP2OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT6JK4AE.gif Message ID: @. @.> >

mtoeltsch commented 3 months ago

BTW, it's exactly the same in DSS 4.2.6, so that bug is not new.

perdrix52 commented 3 months ago

Aha! At least I didn’t introduce it when I ported the code to Qt 😊

From: Martin Toeltsch @.> Sent: 19 May 2024 08:00 To: deepskystacker/DSS @.> Cc: David C. Partridge @.>; Comment @.> Subject: Re: [deepskystacker/DSS] To do May 2024 (Issue #206)

BTW, it's exactly the same in DSS 4.2.6, so that bug is not new.

— Reply to this email directly, view it on GitHub https://github.com/deepskystacker/DSS/issues/206#issuecomment-2119126789 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2GQMTPNQWHQLLOYVEN5XTZDBEXTAVCNFSM6AAAAABH5HVP2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZGEZDMNZYHE . You are receiving this because you commented. https://github.com/notifications/beacon/AE2GQMSGSXGWAZDZ77JHWF3ZDBEXTA5CNFSM6AAAAABH5HVP2OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT6J5HQK.gif Message ID: @. @.> >

mtoeltsch commented 3 months ago

I'm in the middle of the work to debug the comet editing mode. Question: There's a global bool g_bShowRefStars = settings.value("ShowRefStars", false).toBool(); It's always false, and in DSS there's no setting whatsoever to turn on a "Show Reference Stars" option. There's a lot of code depending on this bool g_bShowRefStars, which is actually dead code. Can I remove it?

perdrix52 commented 3 months ago

You can set it using the registry editor 😊

I was AFAICT intended for developer debugging…

David

From: Martin Toeltsch @.> Sent: 22 May 2024 10:32 To: deepskystacker/DSS @.> Cc: David C. Partridge @.>; Comment @.> Subject: Re: [deepskystacker/DSS] To do May 2024 (Issue #206)

I'm in the middle of the work to debug the comet editing mode. Question: There's a global bool g_bShowRefStars = settings.value("ShowRefStars", false).toBool(); It's always false, and in DSS there's no setting whatsoever to turn on a "Show Reference Stars" option. There's a lot of code depending on this bool g_bShowRefStars, which is actually dead code. Can I remove it?

— Reply to this email directly, view it on GitHub https://github.com/deepskystacker/DSS/issues/206#issuecomment-2124311670 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2GQMVFGMECSME3PZBK46LZDRQXFAVCNFSM6AAAAABH5HVP2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRUGMYTCNRXGA . You are receiving this because you commented. https://github.com/notifications/beacon/AE2GQMV65HT754FWEDTLT73ZDRQXFA5CNFSM6AAAAABH5HVP2OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT6TZWHM.gif Message ID: @. @.> >

mtoeltsch commented 3 months ago

I was able to fix the "rectangle jumping around" issue, it was a serious bug in function FindNearestStarWithinDistance(). But still the logic is incorrect, e.g. when removing one star, the star count falls from 12 to 9. After some time, there's still an access violation. I'll continue to search for the problem, but the function EditStars::draw() is rather complex and obscure.

mtoeltsch commented 3 months ago

I fixed the entire EditStars and CometMode issues. I streamlined the whole EditStars class to a large extent, but left all the old code in - just commenting it out what's not needed anymore.

mtoeltsch commented 3 months ago

But now I notice that there is an almost 100% code duplication in file ImageSinks.cpp, the class is CEditStarsSink. I did not change anything in ImageSinks.h/.cpp or so. Question: What's the purpose of these ImageSink stuff? Do you think there's a possibility to remove the whole code duplication by e.g. just re-using the EditStars class for this?

perdrix52 commented 3 months ago

The ImageSinks code is almost ready for deletion. It is the old code, and I think there's one small piece of code that still uses it.