Wargus / stratagus

The Stratagus strategy game engine
GNU General Public License v2.0
622 stars 119 forks source link

Network Desync. #569

Open Zombie-Ryushu opened 10 months ago

Zombie-Ryushu commented 10 months ago

Network out of sync seed: 87654321!=87654321 , hash: 3118210E!=31182108 Cycle 145 GameCycle: 145d, new SyncHash: 206020a (unit: 0:unit-gold-mine, order: 1, refs: 1) backtrace() returned 8 addresses war1gus(+0x4a0b4)[0x55db494780b4] war1gus(+0x101ef1)[0x55db4952fef1] war1gus(+0x80a7f)[0x55db494aea7f] war1gus(+0x1d897b)[0x55db4960697b] /usr/lib64/liblua5.1.so.5(+0xc8d0)[0x7f600c20c8d0] /usr/lib64/liblua5.1.so.5(+0x1747f)[0x7f600c21747f] /usr/lib64/liblua5.1.so.5(+0xcd7d)[0x7f600c20cd7d] /usr/lib64/liblua5.1.so.5(+0xc09e)[0x7f600c20c09e] GameCycle: 145d, new SyncHash: 40c44148 (unit: 1:unit-gold-mine, order: 1, refs: 1) backtrace() returned 8 addresses war1gus(+0x4a0b4)[0x55db494780b4] war1gus(+0x101ef1)[0x55db4952fef1] war1gus(+0x80a7f)[0x55db494aea7f] war1gus(+0x1d897b)[0x55db4960697b] /usr/lib64/liblua5.1.so.5(+0xc8d0)[0x7f600c20c8d0] /usr/lib64/liblua5.1.so.5(+0x1747f)[0x7f600c21747f] /usr/lib64/liblua5.1.so.5(+0xcd7d)[0x7f600c20cd7d] /usr/lib64/liblua5.1.so.5(+0xc09e)[0x7f600c20c09e] GameCycle: 145d, new SyncHash: 188c2900 (unit: 2:unit-gold-mine, order: 1, refs: 1) backtrace() returned 8 addresses war1gus(+0x4a0b4)[0x55db494780b4] war1gus(+0x101ef1)[0x55db4952fef1] war1gus(+0x80a7f)[0x55db494aea7f] war1gus(+0x1d897b)[0x55db4960697b] /usr/lib64/liblua5.1.so.5(+0xc8d0)[0x7f600c20c8d0] /usr/lib64/liblua5.1.so.5(+0x1747f)[0x7f600c21747f] /usr/lib64/liblua5.1.so.5(+0xcd7d)[0x7f600c20cd7d] /usr/lib64/liblua5.1.so.5(+0xc09e)[0x7f600c20c09e] GameCycle: 145d, new SyncHash: 1181200b (unit: 3:unit-gold-mine, order: 1, refs: 1) backtrace() returned 8 addresses war1gus(+0x4a0b4)[0x55db494780b4] war1gus(+0x101ef1)[0x55db4952fef1] war1gus(+0x80a7f)[0x55db494aea7f] war1gus(+0x1d897b)[0x55db4960697b] /usr/lib64/liblua5.1.so.5(+0xc8d0)[0x7f600c20c8d0] /usr/lib64/liblua5.1.so.5(+0x1747f)[0x7f600c21747f] /usr/lib64/liblua5.1.so.5(+0xcd7d)[0x7f600c20cd7d] /usr/lib64/liblua5.1.so.5(+0xc09e)[0x7f600c20c09e] GameCycle: 145d, new SyncHash: 3020016a (unit: 4:unit-gold-mine, order: 1, refs: 1) backtrace() returned 8 addresses war1gus(+0x4a0b4)[0x55db494780b4] war1gus(+0x101ef1)[0x55db4952fef1] war1gus(+0x80a7f)[0x55db494aea7f] war1gus(+0x1d897b)[0x55db4960697b] /usr/lib64/liblua5.1.so.5(+0xc8d0)[0x7f600c20c8d0] /usr/lib64/liblua5.1.so.5(+0x1747f)[0x7f600c21747f] /usr/lib64/liblua5.1.so.5(+0xcd7d)[0x7f600c20cd7d] /usr/lib64/liblua5.1.so.5(+0xc09e)[0x7f600c20c09e] GameCycle: 145d, new SyncHash: 4042d4e (unit: 5:unit-gold-mine, order: 1, refs: 1) backtrace() returned 8 addresses war1gus(+0x4a0b4)[0x55db494780b4] war1gus(+0x101ef1)[0x55db4952fef1] war1gus(+0x80a7f)[0x55db494aea7f] war1gus(+0x1d897b)[0x55db4960697b] /usr/lib64/liblua5.1.so.5(+0xc8d0)[0x7f600c20c8d0] /usr/lib64/liblua5.1.so.5(+0x1747f)[0x7f600c21747f] /usr/lib64/liblua5.1.so.5(+0xcd7d)[0x7f600c20cd7d] /usr/lib64/liblua5.1.so.5(+0xc09e)[0x7f600c20c09e] GameCycle: 145d, new SyncHash: 8081a9c8 (unit: 6:unit-peasant, order: 1, refs: 1) backtrace() returned 8 addresses war1gus(+0x4a0b4)[0x55db494780b4] war1gus(+0x101ef1)[0x55db4952fef1] war1gus(+0x80a7f)[0x55db494aea7f] war1gus(+0x1d897b)[0x55db4960697b] /usr/lib64/liblua5.1.so.5(+0xc8d0)[0x7f600c20c8d0] /usr/lib64/liblua5.1.so.5(+0x1747f)[0x7f600c21747f] /usr/lib64/liblua5.1.so.5(+0xcd7d)[0x7f600c20cd7d] /usr/lib64/liblua5.1.so.5(+0xc09e)[0x7f600c20c09e] GameCycle: 145d, new SyncHash: 10213918 (unit: 7:unit-peon, order: 5, refs: 1) backtrace() returned 8 addresses war1gus(+0x4a0b4)[0x55db494780b4] war1gus(+0x101ef1)[0x55db4952fef1] war1gus(+0x80a7f)[0x55db494aea7f] war1gus(+0x1d897b)[0x55db4960697b] /usr/lib64/liblua5.1.so.5(+0xc8d0)[0x7f600c20c8d0] /usr/lib64/liblua5.1.so.5(+0x1747f)[0x7f600c21747f] /usr/lib64/liblua5.1.so.5(+0xcd7d)[0x7f600c20cd7d] /usr/lib64/liblua5.1.so.5(+0xc09e)[0x7f600c20c09e]

Zombie-Ryushu commented 10 months ago

This was done between an OpenSuse on x86_64 vs. a Debian System on ARM64

timfel commented 10 months ago

It will be a little easier to debug this if you can get the logs from both machines.

Zombie-Ryushu commented 10 months ago

How would you like me to ask the other remote user to debug this?

timfel commented 10 months ago

How would you like me to ask the other remote user to debug this?

I just thought you might have access to both logs. Was worth a try 😉 Will be a bit harder, because with just one side's log, all we can do is guess which of the around 5000 lines of code between the last sync and the desync could be buggy.

Zombie-Ryushu commented 10 months ago

The other user is a MacOSX User runing Debian Bookworm in a VM on ARM64. I can request his cooperation but as a Mac User, this other person does not have the same level of experience I do. If you can give me simple instructions I can pass to the ARM Linux user, I will see what I can do.

Zombie-Ryushu commented 10 months ago

I have some new backtraces. debugging.txt remote-debugging.txt

Zombie-Ryushu commented 10 months ago

Sending more debugging logs. remote-debugging2.txt