ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.43k stars 245 forks source link

Factorio clients desync (20.04) / segment fault (22.04) #417

Open winszenYoung opened 1 year ago

winszenYoung commented 1 year ago

Desync problem occur latest version(1.1.69) https://github.com/ptitSeb/box64/issues/211

Test Environment

Oracle Cloud Infrastructure VM.Standard.A1.Flex Ubuntu 20.04 LTS Factorio 1.1.69


Segment fault error

Test Environment

Oracle Cloud Infrastructure VM.Standard.A1.Flex Ubuntu 22.04 LTS Factorio 1.1.69

error message

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096
Box64 with Dynarec v0.1.9 68826ba built on Oct  6 2022 15:30:14
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 26 Env var
Looking for ./bin/x64/factorio
argv[1]="--start-server"
argv[2]="./save/itdo.zip"
Rename process to "factorio"
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libresolv.so.2
Using native(wrapped) libm.so.6
Look for __res_nquery in loaded elfs
Found symbol with version GLIBC_2.17, value = 0xffffb0d2a090
Look for __dn_expand in loaded elfs
Found symbol with version GLIBC_2.17, value = 0xffffb0d22da0
   0.001 2022-10-07 11:33:57; Factorio 1.1.69 (build 60061, linux64, headless)
   0.034 Operating system: Linux (Ubuntu 22.04)
   0.035 Program arguments: "/home/ubuntu/factorio/bin/x64/factorio" "--start-server" "./save/map.zip"
   0.035 Read data path: /home/ubuntu/factorio/data
   0.035 Write data path: /home/ubuntu/factorio [192137/195299MB]
   0.035 Binaries path: /home/ubuntu/factorio/bin
   0.065 System info: [CPU:               Intel(R) Pentium(R) 4 CPU 1000MHz, 4 cores, RAM: 23988 MB]
   0.065 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.066 Running in headless mode
   0.179 Loading mod core 0.0.0 (data.lua)
   0.425 Loading mod base 1.1.69 (data.lua)
78302|SIGSEGV @0x88f5c154 (???(0x88f5c154)) (x64pc=0x1c70f0e//home/ubuntu/factorio/bin/x64/factorio:"/home/ubuntu/factorio/bin/x64/factorio/TrioFormat.constprop.0 + 8318", rsp=0xffffaf4b89f0, stack=0xffffaecc5000:0xffffaf4c5000 own=(nil) fp=0xffffaf4bec60), for accessing 0xffffffff823303c0 (code=1/prot=0), db=0x88ddded0(0x88f5bd90:0x88f5c1ec/0x1c70e4e:0x1c70f18//home/ubuntu/factorio/bin/x64/factorio/TrioFormat.constprop.0 + 8318:clean, hash:24e91f39/24e91f39) handler=0x143ed70
RAX:0xffffffff80000000 RCX:0x0000000000000000 RDX:0x0000000080000000 RBX:0x0000000000000000
RSP:0x0000ffffaf4b89f0 RBP:0x0000ffffaf4bec60 RSI:0x0000000000000000 RDI:0x00000000023303c0
 R8:0x000000000000000e  R9:0x402a000000000000 R10:0x4024000000000000 R11:0x0000000000000001
R12:0x0000000000000000 R13:0x0000000001a2fc30 R14:0x0000000002076f3d R15:0x0000ffffaf4b8af0
RSP-0x20:0x8000000000000000 RSP-0x18:0x0000000000003fff RSP-0x10:0xa000000000000000 RSP-0x08:0x0000000001c74002
RSP+0x00:0x0000000000840000 RSP+0x08:0x3ff0000000000000 RSP+0x10:0x0000000000000000 RSP+0x18:0x0000000000000000
   0.484 Error CrashHandler.cpp:635: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
/tmp/factorio-build-9PY57H/src/Util/Logger.cpp (313): Logger::writeStacktrace(FileWriteStream*, StackTraceInfo*) [clone .constprop.0]
/tmp/factorio-build-9PY57H/src/Util/CrashHandler.cpp (184): CrashHandler::writeStackTrace(CrashHandler::CrashReason)
/tmp/factorio-build-9PY57H/src/Util/CrashHandler.cpp (636): CrashHandler::commonSignalHandler(int)
/tmp/factorio-build-9PY57H/src/Util/CrashHandler.cpp (642): CrashHandler::SignalHandler(int)
0x300bf
Stack trace logging done
   6.251 Error Util.cpp:97: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
ptitSeb commented 1 year ago

It should be fixed with latest box64 version. Can you update and try again?

winszenYoung commented 1 year ago

Segment fault is resolved , but Desync problem(https://github.com/ptitSeb/box64/issues/211) is not resolved.

I try below Environment


Test Environment Oracle Cloud Infrastructure VM.Standard.A1.Flex Ubuntu 22.04 LTS Factorio 1.1.70