batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.83k stars 465 forks source link

Xemu hangs on load and crashes before menu #11167

Open Sirchacha2 opened 3 months ago

Sirchacha2 commented 3 months ago

Batocera build version

39 2024/03/04 10:11

Your architecture

SER5, Ryzen 5560U

Your Graphic Processor Unit(s) (GPU)

iGPU

Issue description

When trying to load any xbox game it will get through splash screens but before hitting the main menu it will flash 2-3 times, audio cuts out and after about 5-10 seconds it bounces me back to ES.

Detailed reproduction steps

Load any Xemu .XISO in ES

Details of any attempts to fix this yourself

38 loads them fine in same machine, 39 install and 38 were both fresh, also happens when updating from 38 to 39.

Details of any modifications you have made to Batocera.

On my SER5 Pro (5800h) I have some but the test system with the Ryzen 5560U is fresh and only added bios and halo 2.

Logs and data

amd.log es_launch_stdout.log es_launch_stderr.log batocera.log

dmanlfc commented 3 months ago

Have you tried to disable decorations ?

booooogle commented 3 months ago

same problem for me, on an amd 5900hx on batocera 39 (games crash to menu). However plugged drive into an old lenovo carbon intel cpu and the games load no problem so maybe an AMD driver issue?

direngrey31 commented 3 months ago

hi same problem on batocera v39, AMD RX 550 graphics card crashes games

Sirchacha2 commented 3 months ago

Have you tried to disable decorations ?

Finally got around to testing this, no go, same issue.

NYXZGames commented 3 months ago

Same issue here, had to backtrack to v38 to play Xbox. (Ser5 Mini PC, 5560u model).

cjames11 commented 3 months ago

Following - xbox emulator has stopped working since upgrading to 39. I have a Beelink Ser5 Max with Ryzen 7 5800h

lbrpdx commented 3 months ago

Xbox is running here on v39 with an AMD Ryzen 7 5700U, there must be a parameter from v38 that poses a problem. Have you tried to rename /userdata/system/configs/xemu to /userdata/system/configs/xemu.old and start again?

Sirchacha2 commented 3 months ago

That just causes none of the games to start up? What does start again mean? Yahoo Mail: Search, Organize, Conquer

On Mon, Mar 11, 2024 at 8:13 PM, @.***> wrote:

Xbox is running here on v39 with an AMD Ryzen 7 5700U, there must be a parameter from v38 that poses a problem. Have you tried to rename /userdata/system/configs/xemu to /userdata/system/configs/xemu.old and start again?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Tovarichtch commented 3 months ago

I agree with @lbrpdx . I just did the test too. Xbox is running. Using an upgrade, but first time launching Xbox. I suspect old configs interfering.

Sirchacha2 commented 3 months ago

I agree with @lbrpdx . I just did the test too. Xbox is running. Using an upgrade, but first time launching Xbox. I suspect old configs interfering.

I'm confused by his workaround, renaming the config just makes them not load up anymore.

lbrpdx commented 3 months ago

So there must be something really wrong with your setup. If there’s no config file, a brand new one is created at the first game launch.

Rename the whole system directory, then. See « Factory reset » in the wiki https://wiki.batocera.org/troubleshooting#factory_reset there are some precautions described in there.

Sirchacha2 commented 3 months ago

So there must be something really wrong with your setup. If there’s no config file, a brand new one is created at the first game launch.

Rename the whole system directory, then. See « Factory reset » in the wiki https://wiki.batocera.org/troubleshooting#factory_reset there are some precautions described in there.

Factory resets gets rid of everything yes? I might just do a clean install if I have to do that. I currently have all of my switch games on the internal and everything else symlinked from a second drive. Is saving my saves just a matter of copying over the save folder?

lbrpdx commented 3 months ago

Factory resets gets rid of everything yes? I might just do a clean install if I have to do that. I currently have all of my switch games on the internal and everything else symlinked from a second drive. Is saving my saves just a matter of copying over the save folder?

No, it doesn’t get rid of everything. Read the wiki link I put above, all is explained in there before making assumptions.

Also, I now understand that you have a modified Batocera install because Switch games aren’t supported. So, I’m not sure what other things you’ve changed but it’s clearly not something we can support, and maybe an explanation to your issues. You should have stated that from the beginning.

direngrey31 commented 3 months ago

lbrpdx

hi, clean install batocera v39 , AMD GPU RX550

xemu crash

es_launch_stderr.log es_launch_stdout.log

Sirchacha2 commented 3 months ago

Factory resets gets rid of everything yes? I might just do a clean install if I have to do that. I currently have all of my switch games on the internal and everything else symlinked from a second drive. Is saving my saves just a matter of copying over the save folder?

No, it doesn’t get rid of everything. Read the wiki link I put above, all is explained in there before making assumptions.

Also, I now understand that you have a modified Batocera install because Switch games aren’t supported. So, I’m not sure what other things you’ve changed but it’s clearly not something we can support, and maybe an explanation to your issues. You should have stated that from the beginning.

The original issue ticket was a clean install if 39 on another ser5 I have, they both have the same repeatable issue, I didn't have time last night to hook up the other one and turn it on so I just used the modified one but it would have been the same issue.

cjames11 commented 3 months ago

thanks for the suggestions @lbrpdx I have tried both renaming the xemu file and the factory reset. Neither worked :(

booooogle commented 3 months ago

I also renamed /userdata/system/configs/xemu to /userdata/system/configs/xemu.old and tried again, the file was recreated but the games still freeze and return to the batocera gui. My machine is a Beelink GTR5 with 5900HX CPU. As stated before, this is a bootbale USB drive intsallation, and if I connect it to my lenovo carbon intel i5 laptop, the xbox games load without issue. Perhaps an AMD driver issue?

dmanlfc commented 3 months ago

The logs suggest a GPU driver regression, try v40 here: https://drive.google.com/drive/folders/1_bqmR7CoZ78i7DolYt5b-RRqB5c-LPyN?usp=drive_link

direngrey31 commented 3 months ago

@dmanlfc

I tested the dev40 still the same problem

NYXZGames commented 3 months ago

@dmanlfc

I tested the dev40 still the same problem

Same here. Created a fresh install on a seperate drive, same issue. It could be device specific as well.

My Loki Zero is on v39 and Xbox works, my Beelink Ser5 (5560u model) mini PC only works on v38.

Tovarichtch commented 3 months ago

I've tested more than 10 games, they all launch. I'm on RX 6600 (AMD GPU). Maybe it's an issue with the iGPU?

Sirchacha2 commented 3 months ago

I've tested more than 10 games, they all launch. I'm on RX 6600 (AMD GPU). Maybe it's an issue with the iGPU?

I thought that too but there's a couple of guys on here with rx cards it seems like.

direngrey31 commented 3 months ago

I've tested more than 10 games, they all launch. I'm on RX 6600 (AMD GPU). Maybe it's an issue with the iGPU?

I thought that too but there's a couple of guys on here with rx cards it seems like.

I have an AMD RX 550 it doesn't work for me

dmanlfc commented 3 months ago

try the latest v40 test build on my share please

direngrey31 commented 3 months ago

try the latest v40 test build on my share please

hi, still the same does not work dev40

gpu : AMD RADEAON RX550 4GB

es_launch_stderr.log es_launch_stdout.log

dmanlfc commented 3 months ago

ok it seems like a possible mesa driver regression.

dmanlfc commented 3 months ago

next test is on the same share, try again

direngrey31 commented 3 months ago

next test is on the same share, try again

, still the same does not work last dev40 test AMD RX 550

IGPU Intel 630 --> good NVIDIA RTX 4060 ---> good

dmanlfc commented 3 months ago

@direngrey31 or others, you will need to verify this is a mesa regression on another linux distribution. i suggest manjaro as it has the latest mesa drivers. create a USB disk, install it on another drive & then boot off the drive. update the packages to ensure the latest versions & then reboot again. finally install xemu through the package manager & test. if confirmed you will need to raise a ticket with the mesa devs.

cjames11 commented 3 months ago

Looks like you're right @dmanlfc. I installed Manjaro on one of the drives in my Ryzen mini pc, updated the packages, then installed Xemu via a package manager. The whole system freezes up when a game is launched. I am not sure what to write in the ticket with the mesa devs. I am a total noob and needed a lot of googling to get to that point. Appreciate your help. Thanks

dmanlfc commented 3 months ago

create a ticket here: https://gitlab.freedesktop.org/mesa/mesa/-/issues

Use Manjaro Linux as your example OS so they can easily replicate it. v38 used Mesa to 23.3.4 v39/v40 (and Manjaro) uses 24.x

So just outline the regression from 23.3.4 to 24.x & steps to reproduce using Manjaro. Feel free to mention Batocera v38, works. v39 with the later drivers, fail.

cjames11 commented 3 months ago

Done! https://gitlab.freedesktop.org/mesa/mesa/-/issues/10838

Inthrylius commented 3 months ago

Just commenting to confirm I have the same issue on a MOMENTPLUS MX60 with a Ryzen 5 5600U.

dmanlfc commented 3 months ago

Provide affected chipsets on the mesa issue report. As far as we know, this needs to be addressed upstream.

paronowitz commented 3 months ago

Any chance we can get a build that reverts to mesa 23.3.4?

Alex131b commented 3 months ago

I have a similar problem with xemu not working on mini pc Ryzen 7 5825u and desktop Radeon RX 580. Batocera v39. Batocera v38 not problem.

cham2019 commented 3 months ago

Hi, same issue here. 3 different games (apparently supported and playable according xemu info). Games start loading (some intro or loading message) then goes back to main menu. Running Batocera 39 (no custom mods), SER 5 AMD Ryzen 5560U, plenty of storage space remaining.

dmanlfc commented 3 months ago

Report chipsets affected to the Mesa issue linked earlier. It's a driver problem.

NielsenRetro commented 3 months ago

Minisforum um590 ryzen 9 AMD Also problem with Xbox emulator, start logo xbox and going back to batocera menu

cline2 commented 3 months ago

Same here for my Lenovo ThinkCentre M715q Ryzen 5 PRO 2400GE 3.20GHz 32GB RAM. V39 stuck before start/menu frozen.
V38 no problem.

dmanlfc commented 3 months ago

As stated before posting me too here is not helpful. In addition the issue clearly lies with the Mesa development team to investigate. If you want it resolved, duplicate it with other Linux distributions that use modern Mesa & Xemu then provide further details to the issue posted above.

Sirchacha2 commented 3 months ago

As stated before posting me too here is not helpful. In addition the issue clearly lies with the Mesa development team to investigate. If you want it resolved, duplicate it with other Linux distributions that use modern Mesa & Xemu then provide further details to the issue posted above.

To be fair most people that are using batocera probably dont even know what Mesa is or how to even know what version they are on, I'm in the latter camp.

NielsenRetro commented 3 months ago

There is some possibility to brig back messa to previous version?

Sloberingmonkey commented 3 months ago

Would this be the same issue that causes me to have to restart mame and FBneo a few times. Games boot up with a black screen and a few glitches. When I change games they boot correctly.

paronowitz commented 3 months ago

There is some possibility to brig back messa to previous version?

Please! Seems to affect the majority of AMD gpu's. Any reason why the gpu driver revision can not be reverted to a previous version that isnt broken?

navigos commented 3 months ago

Same problem on Batocera v39 and Kubuntu 23.10 with Ryzen 7 5700X + Radeon RX 6600X.

dmanlfc commented 3 months ago

Same problem on Batocera v39 and Kubuntu 23.10 with Ryzen 7 5700X + Radeon RX 6600X.

Wrong place, take it to the Mesa issue now

dmanlfc commented 2 months ago

v40 builds after today will have the fix. Or you can try my test builds here...

https://drive.google.com/drive/folders/1_bqmR7CoZ78i7DolYt5b-RRqB5c-LPyN?usp=drive_link

NielsenRetro commented 2 months ago

But this is new batocera v40 or some file like i can replace to v39 xbox emulator ?

NielsenRetro commented 2 months ago

Because i dont wont more messed up with another emulators and v40 is not official