[rbk] SH4Exception
inada-s opened this issue · 3 comments
inada-s commented
Briefing Scene -> Game Scene
30:47:879 network\ggpo.cpp:241 N[NETWORK]: Timesync: 3 frames ahead
30:48:299 network\ggpo.cpp:784 N[NETWORK]: ggpo_add_local_input prediction barrier reached
30:49:050 gdxsv\gdxsv_backend_rollback.cpp:422 N[COMMON]: StartMsg KeyFrame:103
30:49:169 gdxsv\gdxsv_backend_rollback.cpp:461 N[COMMON]: StartMsg Join:107
30:51:948 network\ggpo.cpp:241 N[NETWORK]: Timesync: 4 frames ahead
31:01:479 network\ggpo.cpp:784 N[NETWORK]: ggpo_add_local_input prediction barrier reached
31:01:509 network\ggpo.cpp:784 N[NETWORK]: ggpo_add_local_input prediction barrier reached
31:01:515 network\ggpo.cpp:784 N[NETWORK]: ggpo_add_local_input prediction barrier reached
31:01:525 network\ggpo.cpp:241 N[NETWORK]: Timesync: 3 frames ahead
31:33:368 gdxsv\gdxsv_backend_rollback.cpp:446 N[COMMON]: LoadEndMsg KeyFrame:2735
31:33:450 gdxsv\gdxsv_backend_rollback.cpp:474 N[COMMON]: LoadEndMsg Join:2740
31:36:137 rec-x64\rec_x64.cpp:80 E[DYNAREC]: SH4ThrownException in mainloop
31:36:182 gdxsv\gdxsv.cpp:575 N[COMMON]: patch restore: mg-noturn
31:36:182 gdxsv\gdxsv.cpp:575 N[COMMON]: patch restore: fast-reboost
31:36:182 gdxsv\gdxsv.cpp:575 N[COMMON]: patch restore: key1
inada-s commented
Ally HP patch is the suspect.
inada-s commented
This line does not consider rollback
https://github.com/inada-s/flycast/blob/e421ea8a3592c4cc6df52b3ba9933250092c628b/core/gdxsv/gdxsv.cpp#L720
inada-s commented
This is probably caused by rewriting an area that should not be rewritten during Rollback from the UI loop.
I've rewritten this part of the code quite a bit, so I'll close it until it happens again.