csete / gpredict

Gpredict satellite tracking application
http://gpredict.oz9aec.net/
GNU General Public License v2.0
865 stars 251 forks source link

Crash when satellite EL=-0.00 at AOS in 00:00 #332

Open emmanuelCNRS opened 1 year ago

emmanuelCNRS commented 1 year ago

Dear Gpredict Team,

I would like to submit several crash of Gpredict when AOS is 00:00 and satellite EL is -0,00°. Gpredict run with rotctld. Gpredict version is win32-2.3.37 (on Windows7).

In attached pictures, two crash examples when AOS on UVSQ-Sat and INSPIRE-Sat7. Could it be fixed with parameters adjustment ?

Best regards. Emmanuel - F4IXT From UVSQ-Sat & INSPIRE-Sat7 Ground Station ;-)

Gpredict crash when AOS on UVSQ-Sat Gpredict crash when AOS on INSPIRE-Sat7

emmanuelCNRS commented 1 year ago

I have not recorded the Gpredict log when the software crashed, but may-be the current log could help. There are several lines like these ones: 2023/05/22 07:36:05|1|get_current_pass: Returning a pass for INSPIRE-SAT 7 that ends before the seeded time. 2023/05/22 18:21:58|1|get_current_pass: Returning a pass for UVSQSAT that ends before the seeded time.

Hereafter the full log: gpredict.log

Best regards. Emmanuel

emmanuelCNRS commented 1 year ago

Don't know if it could help, hereafter an exemple of the many crash reports saved by Windows: Report-wer.txt

Best regards. Emmanuel

mdblack98 commented 1 year ago

1 What do you have for your pass conditions?

2 Please run rotctld with this added: -vvvvv >log.txt 2>&1

Then we can make sure it's no a rotctld problem.

emmanuelCNRS commented 1 year ago

Hi Michael, Thanks for your comment, hereafter the pass conditions: image

And hereafter the rotator configuration: image

Rotctl is usualy used with: "C:\Program Files (x86)\hamlib-w64-4.4\bin\rotctld" -vvvv -m 603 -r COM6 -s 4800 -t 4533 -C timeout=2000

Call to Rotctl have been modified has suggested (-vvvvv >log.txt 2>&1), hereafter the beginin of the log: log_20230929.txt

I will post the updated log as soon as next crash.

Thanks for your help :-) Best regards, Emmanuel

emmanuelCNRS commented 1 year ago

Hi Michael, I have captured a crash in the log (if needed I can share the entire file on an ftp): log_20231002_Extract.txt

At line 398122 you can find this:

fscanf: Invalid argument
fscanf: parsing '
' with '%c'
Connection closed from ::ffff:127.0.0.1:61324
Connection opened from ::ffff:127.0.0.1:51123

Best regards, Emmanuel

mdblack98 commented 1 year ago

Try the latest Hamlib -- is has better debug info and hopefully fixes this problem too.

gpredict is sending bad  data for some reason.

Tracking the issue here in Hamlib https://github.com/Hamlib/Hamlib/issues/1351

Mike W9MDB

On Monday, October 2, 2023 at 05:28:22 AM CDT, emmanuelCNRS @.***> wrote:

Hi Michael, I have captured a crash in the log (if needed I can share the entire file on an ftp): log_20231002_Extract.txt

At line 398122 you can find this: fscanf: Invalid argument fscanf: parsing ' ' with '%c' Connection closed from ::ffff:127.0.0.1:61324 Connection opened from ::ffff:127.0.0.1:51123

Best regards, Emmanuel

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

emmanuelCNRS commented 1 year ago

Hello Mike, Thanks, I have updated hamlib to "w64-4.5.5" version. Waiting now for next satellites pass.

Best regards, Emmanuel

mdblack98 commented 1 year ago

Latest Hamlib is here...

https://n0nb.users.sourceforge.net/

Mike W9MDB

On Tuesday, October 3, 2023 at 04:56:34 AM CDT, emmanuelCNRS @.***> wrote:

Hello Mike, Thanks, I have updated hamlib to "w64-4.5.5" version. Waiting now for next satellites pass.

Best regards, Emmanuel

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

emmanuelCNRS commented 12 months ago

Hello Mike, Thanks, I have installed "hamlib-w64-4.6~git-20231003-c9344070".

Gpredict has also crashed with "hamlib-w64-4.5.5", hereafter the rotctld log: log_20231006a - Beginning of file.txt log_20231006b - End of file.txt With a end like this:

write_block(): TX 3 bytes, method=2
0000    43 32 0d                                            C2.             
read_string_generic called, rxmax=32 direct=1, expected_len=1
read_string_generic(): RX 15 characters, direct=1
0000    41 5a 3d 30 39 32 20 20 45 4c 3d 30 30 30 0d        AZ=092  EL=000. 
gs232b_rot_get_position: (az, el) = (92, 0)
rot_get_position: got az=92.00, el=0.00
fscanf: Invalid argument
fscanf: parsing '
' with '%c'
Connection closed from ::ffff:127.0.0.1:54638

Waiting for next satellites pass, Best regards. Emmanuel

mdblack98 commented 12 months ago

Try tonight's build -- will be dated 20231007 It has more debug info so we can see what gpredict is sending. Mike W9MDB

On Friday, October 6, 2023 at 09:23:01 AM CDT, emmanuelCNRS ***@***.***> wrote:  

Hello Mike, Thanks, I have installed "hamlib-w64-4.6~git-20231003-c9344070".

Gpredict has also crashed with "hamlib-w64-4.5.5", hereafter the rotctld log: log_20231006a - Beginning of file.txt log_20231006b - End of file.txt With a end like this: write_block(): TX 3 bytes, method=2 0000 43 32 0d C2.
read_string_generic called, rxmax=32 direct=1, expected_len=1 read_string_generic(): RX 15 characters, direct=1 0000 41 5a 3d 30 39 32 20 20 45 4c 3d 30 30 30 0d AZ=092 EL=000. gs232b_rot_get_position: (az, el) = (92, 0) rot_get_position: got az=92.00, el=0.00 fscanf: Invalid argument fscanf: parsing ' ' with '%c' Connection closed from ::ffff:127.0.0.1:54638

Waiting for next satellites pass, Best regards. Emmanuel

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

emmanuelCNRS commented 12 months ago

Hi Mike, Thanks, nightly build downloaded today and just installed. Begining of log is: rotctld, Hamlib 4.6~git 2023-10-08T22:18:16Z SHA=e68b6f 64-bit

Emmanuel

emmanuelCNRS commented 11 months ago

Hello Mike, Gpredict has crashed yesterday with the nightly built "Hamlib 4.6~git 2023-10-08T22:18:16Z".

The beginning of rotctld log is: log_20231011b - Beginning of file.txt

And the end with the unexpected gpredict crash is: log_20231011c - End of file.txt

Best regards, Emmanuel

mdblack98 commented 11 months ago

Are you compiling gpredict yourself? I'd like to provide a patch for gpredict to figure out why it is sending a NULL byte.

On Thursday, October 12, 2023 at 09:34:14 AM CDT, emmanuelCNRS ***@***.***> wrote:  

Hello Mike, Gpredict has crashed yesterday with the nightly built "Hamlib 4.6~git 2023-10-08T22:18:16Z".

The beginning of rotctld log is: log_20231011b - Beginning of file.txt

And the end with the unexpected gpredict crash is: log_20231011c - End of file.txt

Best regards, Emmanuel

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

emmanuelCNRS commented 11 months ago

Hello Mike, No, I'm using the already compiled EXE available on https://github.com/csete/gpredict/releases Version is "gpredict-win32-2.3.37". If you send me a new EXE I can launch it in our ground station.

Best regards, Emmanuel

emmanuelCNRS commented 11 months ago

Hi Mike, Please find hereafter some other log of rotctld (Hamlib 4.6~git 2023-10-08T22:18:16Z) with the unexpected closure of Gpredict. log_20231018_Extract.txt

The last one, at the end of the file, is not EL=000. But probably same problem since EL=179 is the opposite position (gpredict EL configured with EL in [0° ; 180°] range).

I have not recorded gpredict internal log, will be done next time, but should be something like this previous one:

2023/05/22 07:36:05|1|get_current_pass: Returning a pass for INSPIRE-SAT 7 that ends before the seeded time.
2023/05/22 18:21:58|1|get_current_pass: Returning a pass for UVSQSAT that ends before the seeded time.

Do you know where does come from "that ends before the seeded time" trace in gpredict?

Best regards, Emmanuel

mdblack98 commented 9 months ago

Please try this package https://www.dropbox.com/scl/fi/19300vq5wdgwg7vrywyrp/bin.zip?rlkey=j8tsgk0djg342y0yi9ss2j4e2&dl=0