xenia icon indicating copy to clipboard operation
xenia copied to clipboard

[Kernel] Safe Thread Termination Support

Open Margen67 opened this issue 8 years ago • 9 comments

We need a way to safely terminate guest threads running in Xenia. Termination while running guest code should be fairly easy to do (have guest threads check and see if they need to call a routine every now and then), but a problem arises when guest threads are running host code.

When a guest thread is running host code, it needs to (a) be able to be awakened from any waits it may be held in, and (b) must quickly return to guest code (or call a routine that we control).

Margen67 avatar Jan 31 '17 08:01 Margen67

I went back and checked older builds to see when this stopped working, and it appears that 6777ce6668fe9010b78b7bcf4e7365bfbc844ef0 was what broke saving savestates.

Sazpaimon avatar Feb 08 '18 01:02 Sazpaimon

This is a specific error when the game does not see the connected hard drive. There should be a "dialogue" for selecting a storage device, but probably it is not completed in the emulator.

Parovozik avatar Jun 17 '18 18:06 Parovozik

There some system messages and i think this not works on Xenia on current state 1 - Screenshot from Warrior Orochi 3 on Xenia (after any choose infinity loading) other from x360 console xenia message: bandicam 2018-06-21 16-15-09-524 x360 1st message 20180621181538 mp4_snapshot_00 09_ 2018 06 21_18 16 46 x360 2nd message: 20180621181538 mp4_snapshot_00 12_ 2018 06 21_18 16 57 x360 3d message: 20180621181538 mp4_snapshot_00 17_ 2018 06 21_18 17 08 x360 4th OK: 20180621181538 mp4_snapshot_00 21_ 2018 06 21_18 17 18

Parovozik avatar Jun 21 '18 15:06 Parovozik

@Parovozik This issue is about save states, not saves. Unless you mean that save states don't work because xenia doesn't reconnect the hard drive once a save state is loaded.

Margen67 avatar Jun 23 '18 01:06 Margen67

"Xenia" does not display these system messages at all (and there are a lot of such games that, when launched for the first time, display this dialog). In rare cases, the some games then simply works "without saving", but usually the games simply goes into an endless wait (the answer from the system probably) but the emulator works (it does not crash and does not freeze) p.s. Oops, i understand now (states-saves) :face_with_head_bandage:

Parovozik avatar Jun 23 '18 02:06 Parovozik

Has anybody looked into this recently? This issue will be a major obstacle in the feasibility of the new Qt-based UI.

Razzile avatar Aug 20 '20 18:08 Razzile

Has anybody looked into this recently? This issue will be a major obstacle in the feasibility of the new Qt-based UI.

I'm guessing not since your the last comment post-2018. This kinda sucks since it's obvious Xenia is the best 360 emulator out there but not being able to do Profiles and things like that really kill the ability to play most games.

Basic-Ice avatar Sep 10 '20 00:09 Basic-Ice

Just refreshing 30 months later to see if there is something a debug save state needs to work.

eresposito avatar Apr 03 '23 01:04 eresposito

so no savestate for xenia?

Manka-Muakido avatar May 16 '23 20:05 Manka-Muakido