From kstars-devel Wed Jan 17 10:24:41 2024 From: Jasem Mutlaq Date: Wed, 17 Jan 2024 10:24:41 +0000 To: kstars-devel Subject: Re: Possible bug with exposure timeout in Focus window Message-Id: X-MARC-Message: https://marc.info/?l=kstars-devel&m=170548703603023 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--0000000000004e968a060f21a894" --0000000000004e968a060f21a894 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes I found the issue and it's now fixed in GIT: https://invent.kde.org/education/kstars/-/commit/a3c404394d809b75cefc5e710d= ce38a851180a16 -- Best Regards, Jasem Mutlaq On Wed, Jan 17, 2024 at 1:11=E2=80=AFPM Hans w= rote: > Hi Jasem and Patrick, > > I think there's some confusion here. This is what I see is going on : > > The 30 second timeout is just the default value in the exposure-timeout > setting > in the options of the focus tab. This part is fine. > > The question from Patrick is whether this timeout calculation should star= t > at > the beginning or at the end of the exposure. > > I think it should start at the end of the exposure, and thus we have a bu= g > here > that Patrick is willing to help fix. > > -- Hans Lambermont > > Jasem Mutlaq wrote on 20240117: > > Hello Patrick, > > > > While this might indeed be an issue. I think 30 seconds for each exposu= re > > is not a solution. > > > > -- > > Best Regards, > > Jasem Mutlaq > > > > > > > > On Tue, Jan 16, 2024 at 9:32=E2=80=AFPM Patrick Molenaar < > pr_molenaar@hotmail.com> > > wrote: > > > >> Hi, > >> > >> Last week there was a clear sky and I had some time to put my gear out > >> after months of rain. After setting up my gear I tried to take an > exposure > >> for determining the focus. At first the exposure was successful, but i= t > was > >> only about 10 seconds. I had an L-Extreme filter on my Canon camera an= d > no > >> stars were visible. So I tried a longer exposure, about 30 seconds, th= is > >> time I got an "Exposure failure, Restarting exposure" error message. > >> Each time I tried the exposure was aborted after about 23 seconds. Onl= y > >> exposures shorter than 20 seconds were successful. In the end I gave u= p > for > >> that night as I was unable to focus my camera. > >> > >> The days after that I connected my camera, tried different cables, > >> different camera settings, but every time when the expose was longer > then > >> about 23 seconds, it was cancelled before it was finished. > >> > >> Eventually I started looking in the sourcecode of KStars and found whe= re > >> the exposure was cancelled. I found out that in the options of the foc= us > >> window, there is an exposure-timeout setting, which was by default set > to > >> 30 seconds. When I increased this setting to a higher value, I was abl= e > to > >> make longer exposures, but when the exposure time was greater then the > >> exposure timeout setting, the exposure was aborted again. > >> > >> In other locations in the sourcecode of KStars I found that the exposu= re > >> timeout was added to the exposure time, so the timeout only occurs a > given > >> number of seconds after the exposure should have finished. For the > exposure > >> timeout in the focus dialog this was not the case. > >> > >> Is this a bug in the software? > >> Or was it intended to have a fixed timeout for the focus windows, that > >> aborts the exposure when the exposure time is set to a value longer th= en > >> the exposure timeout. > >> > >> If it is a bug, I am aslo willing to make a fix for it; please let me > >> know. As my profession is software designer and I have made a > contribution > >> to KStars in the past (Bahtinov Focus Assistant), this shouldn't be th= at > >> diffucult. > >> > >> Kind regards, > >> > >> Patrick Molenaar > >> > --0000000000004e968a060f21a894 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes I found the issue and it's now fixed in GIT:=C2=A0= https://invent.kde.org/education/kstars/-/commit= /a3c404394d809b75cefc5e710dce38a851180a16

--
Best Regards,
= Jasem Mutlaq



On Wed, Jan 17, 2024 at 1:11=E2=80=AFPM Hans <hans@lambermont.dyndns.org> wrote:
Hi Jasem and Patrick,

I think there's some confusion here. This is what I see is going on :
The 30 second timeout is just the default value in the exposure-timeout set= ting
in the options of the focus tab. This part is fine.

The question from Patrick is whether this timeout calculation should start = at
the beginning or at the end of the exposure.

I think it should start at the end of the exposure, and thus we have a bug = here
that Patrick is willing to help fix.

-- Hans Lambermont

Jasem Mutlaq wrote on 20240117:
> Hello Patrick,
>
> While this might indeed be an issue. I think 30 seconds for each expos= ure
> is not a solution.
>
> --
> Best Regards,
> Jasem Mutlaq
>
>
>
> On Tue, Jan 16, 2024 at 9:32=E2=80=AFPM Patrick Molenaar <pr_molenaar@hotmail.c= om>
> wrote:
>
>> Hi,
>>
>> Last week there was a clear sky and I had some time to put my gear= out
>> after months of rain. After setting up my gear I tried to take an = exposure
>> for determining the focus. At first the exposure was successful, b= ut it was
>> only about 10 seconds. I had an L-Extreme filter on my Canon camer= a and no
>> stars were visible. So I tried a longer exposure, about 30 seconds= , this
>> time I got an "Exposure failure, Restarting exposure" er= ror message.
>> Each time I tried the exposure was aborted after about 23 seconds.= Only
>> exposures shorter than 20 seconds were successful. In the end I ga= ve up for
>> that night as I was unable to focus my camera.
>>
>> The days after that I connected my camera, tried different cables,=
>> different camera settings, but every time when the expose was long= er then
>> about 23 seconds, it was cancelled before it was finished.
>>
>> Eventually I started looking in the sourcecode of KStars and found= where
>> the exposure was cancelled. I found out that in the options of the= focus
>> window, there is an exposure-timeout setting, which was by default= set to
>> 30 seconds. When I increased this setting to a higher value, I was= able to
>> make longer exposures, but when the exposure time was greater then= the
>> exposure timeout setting, the exposure was aborted again.
>>
>> In other locations in the sourcecode of KStars I found that the ex= posure
>> timeout was added to the exposure time, so the timeout only occurs= a given
>> number of seconds after the exposure should have finished. For the= exposure
>> timeout in the focus dialog this was not the case.
>>
>> Is this a bug in the software?
>> Or was it intended to have a fixed timeout for the focus windows, = that
>> aborts the exposure when the exposure time is set to a value longe= r then
>> the exposure timeout.
>>
>> If it is a bug, I am aslo willing to make a fix for it; please let= me
>> know. As my profession is software designer and I have made a cont= ribution
>> to KStars in the past (Bahtinov Focus Assistant), this shouldn'= ;t be that
>> diffucult.
>>
>> Kind regards,
>>
>> Patrick Molenaar
>>
--0000000000004e968a060f21a894--