CQRLOG hanging during many commands

5 posts / 0 new
Last post
sm0kbd
CQRLOG hanging during many commands

Hi,

I have a very strange problem here, were CQRLOG hangs during many operations like upload/download from LotW / EQSL and also during updates of log-entries in contest mode. (this is not yet confirmed to be the same issue, though, but shows the same locking) The last working import / export I did was on 2025-07-08.

I am using / have tried the following:

Mint 22.2, Lazarus 3.0 (from official Mint distribution repositories), cqrlog 138 (compiled by me) / 138 (compiled by OH1KH) / 139 (Compiled by me)

2.5.2 from the official distribution repositories opens with an access violation. This could of course be the same problem, as this also locks up CQRLOG.

Trying to narrow down were this happens it is when this is called:

Application.ProcessMessages;

As this is a sort of cooperative multitasking I first thought that something locked a thread, but then more people should have seen this... Now it more points towards that there is a bug in a library somewhere, but WHICH???

Which is the recommended Lazarus?

BR

/Thomas, SM0KBD

sm0kbd
After upgrading to Lazarus 3

After upgrading to Lazarus 3.8 I get this error message when running with the debugger. Unfortunately the address is deep down in a library somewhere.

/Thomas, SM0KBD

File: 

---
Thomas
SM0KBD

oh1kh
After upgrading to Lazarus 3

Hej Thomas!

I have used Lazarus 3.8 for some time now and have not accessed that kind of problem. I'm currently running CqrlogAlpha139 from devel branch.
Only problem so far I have seen is that 3.8 modifies parameters in .lfm resulting that older version of Lazarus compiles ok, but running the result causes error.
See: https://www.cqrlog.com/comment/13230#comment-13230

See also this PR https://github.com/ok2cqr/cqrlog/pull/578

--
Saku
OH1KH

sm0kbd
Thanks for your comments!

Thanks for your comments!

I have now also confirmed that I have the same problem on my both computers here (desktop, where the above info is from and on my laptop). The way it is setup up here is that there is a common Mysql server that both connects to, to the same database.

The laptop is running Ubuntu 24.4

A first wireshark dump doesn't reveal any strange with that communication.

/Thomas

---
Thomas
SM0KBD

oh1kh
After upgrading to Lazarus 3

Hej!

Interesting.
I have also a common SQL server in use here, but it is not Mysql but MariaDB. So I am not using the most common way to start a new SQL server to ~/.config/cqrlog/database

You say "Mysql" and that makes me think was there any MariaDB specific commands used somewhere in source. Mostly Mysql and MariaDB are compatible, and on the other hand if you have spotted the problem to change of Lazarus version it cannot be the root cause.

Have you tested to compile GTK2, QT5 and QT6 versions? Do they all have same problem?

Application.ProcessMessages causes some graphics and I/O updates, at least.
I have found out that in some loops that have retry watchdog counter putting a Application.ProcessMessages in loop may be needed, sometimes it will cause errors. Weird!(or too little understanding what the command actually does)

Running debug from inside Lazarus can also cause weird results sometimes. Even Lazarus hangups.
How ever when running same program from console and without debug code compiled inside all works ok.
So be aware if you are trying to find the bug running code in debug mode from inside of Lazarus.

Best way is to add (or release some debug prints without IF) some writeln(s) and run from console without debug code. (Project/Project Options/debugging)
Yes, it is the hard way....and you must first pinpoint the problem to certain unit.

After all it must be something in you systems, otherwise there would have been more reports about it.

--
Saku
OH1KH