swift-project / pilotclient

Cross-platform cross-simulator pilot client for virtual air traffic networks
https://swift-project.org
GNU General Public License v3.0
94 stars 27 forks source link

"Wrong sort order" assert in remote aircraft provider #148

Open oktal3700 opened 2 years ago

oktal3700 commented 2 years ago

https://discord.com/channels/539048679160676382/568904623151382546/937411190185951323

I am experiencing crashes with Swift, a popup appears as shown in the screenshot. I got this several times today with 0.9.61.91 and also after updating to 0.9.7.166. The server used is x-flightserver.net. Program runs on Windows 10 Prof. 64-bit.

swift swiftguistd_220130113450_15756.log minidump.zip

I see in the log (and the crash dump) a value of offsetTimeMs = 3595030 that looks wrong (typical values are around 5000) I wonder why we use qAbs here https://github.com/swift-project/pilotclient/blob/develop/0.9.7/src/blackcore/fsd/fsdclient.cpp#L1702

Also in the log I usually see debug: handleRevBClientPartsPacket always followed by debug: Set Config at 5000 which makes sense because both of those log messages come from handleRevBClientPartsPacket https://github.com/swift-project/pilotclient/blob/develop/0.9.7/src/blackcore/fsd/fsdclient.cpp#L1472 But in the offsetTimeMs = 3595030 case I see only the Set Config at message but not the handleRevBClientPartsPacket message and I don't understand how that can happen.