No cores found

Up until a couple of weeks ago, lutris was working just fine for me. Haven’t opened it in the last couple of weeks, now when launching it it just gets stuck on the loading window. When running it from terminal, all I get is

No cores found
Initializing lutris

And that’s it. It just stays there. Same goes for trying to run lutris --submit-issue or lutris -d. Just… nothing other than that. Nothing significant has changed on the OS since it was working. Might this be an issue with some update?

Running on Ubuntu 20.04LTS

1 Like

That’s related to that libretro (RetroArch) shite. It probably has to do with a libretro update in your distro. Your RetroArch cores may be in a different location now or something.

Do you actually use the libretro runner? I only use Wine runners so I don’t have the libretro runner installed. You could remove it if you aren’t using it. If you can’t suss it out through the GUI, you could probably delete ~/.local/share/lutris/runners/retroarch

Or, if you do want this, take a look at the config and correct locations for the cores… should be:

~/.local/share/lutris/runners/retroarch/retroarch.cfg

libretro_directory = “~/.config/retroarch/cores”
libretro_info_path = “~/.config/retroarch/cores/info”

This is not Ubuntu specific, but I got this info from here:
https://wiki.archlinux.org/title/RetroArch

I’ve no idea what libretro is. Thanks for your response, but I don’t even have that kind of runner installed. My only directory under ~/.local/share/lutris/runners/ is wine, so don’t even have anything to delete that I might have installed unknowingly.

FWIW: i just downloaded the lutris code and yes, that “No cores found” message comes from the libretro.py runner file… i see the same message here and also do not have, AFAIK, that runner installed… would have to dig through the code more to see what libretro is and why it is initialized…

Ahh, sorry about that then. That’s a red herring. Because you don’t have the RetroArch runner and libretro installed, it will always say “No cores found”

Your lutris is stalling for another reason. It should initialize somewhat like this:

[grogan@getstuffed ~]$ lutris
2021-08-05 13:20:23,928: Magic not available. Unable to automatically find game executables. Please install python-magic
2021-08-05 13:20:24,459: No cores found
2021-08-05 13:20:24,954: Initializing lutris
2021-08-05 13:20:25,691: Downloading DXVK releases to /home/grogan/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-08-05 13:20:25,891: Writing to /home/grogan/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-08-05 13:20:25,891: Runtime updated. Initialization complete.
2021-08-05 13:20:25,892: Lutris 0.5.8.4
2021-08-05 13:20:25,892: Running AMD Mesa driver 21.2.0 on Radeon RX 570 Series (POLARIS10, DRM 3.41.0, 5.13.8, LLVM 12.0.1) (0x67df)
2021-08-05 13:20:25,893: GPU: 1002:67DF 1043:0588 (amdgpu drivers)

It could be stuck trying to download dxvk_versions.json (but usually there’s a bunch of python spaghetti when it’s related to that)

People post this solution to that problem:

wget https://cdn.discordapp.com/attachments/538903130704838656/796102070825779250/dxvk_versions.json -P $HOME/.local/share/lutris/runtime/dxvk

That command will download a dxvk_versions.json (I have no idea who uploaded that discord attachment but it’s a solution posted by trusted people a lot) and put it in ~/.local/share/lutris/runtime/dxvk but you can download it manually (by pasting that URL) and put it there manually.

yep, looks like something with the downloading of the dxvk json file… good catch :slight_smile:

Weird thing is, it was working fine the last time I opened it a couple weeks ago, and I didn’t touch any of it since.

I’d already one the dxvk json workaround to get it working the first time (and it had worked, I had Lutris working fine). Just tried it again and overwriting the json with the new version, but unfortunately that hasn’t done it… Still getting No cores found on running.

looking at the code, you will always get “No cores found” unless you have the retroarch thing installed and have some cores installed for it… in that case, you should see the cores listed that it finds…

the “No cores found” message is part of the libretro.py initialization… it is normal to see it… at least, looking at the code… it is not an error message or indicative of any problem… your hang at “Initializing Lutris” is something else… as noted above, the next thing you should be seeing is the “Downloading DXVK releases” message…

i’m starting to wonder if there’s a python problem on your system… what does “python3 --version” return for you? there have been some system updates recently… i’m guessing you apply them when they are available?

I’ve got 3.8.5 now. Version’s a lil’ bit different from the OS one, since I’ve got conda on top of it, but apt lists version 3.8.2 and that’s up to date for sure, so I don’t think that’s making a lot of difference. Also, I already had conda a few weeks ago when lutris was already working, and I think only a handful of packages updated recently, due to some dependencies on updating ipympl.

Do we have a list of python dependencies for lutris and their versions? I could check that against my base conda env.

Well… It’s working now? Took like a whole 5 minutes to load, and these were the logs:

2021-08-10 09:57:03,568: No cores found
2021-08-10 09:57:03,627: Initializing lutris
2021-08-10 10:03:40,724: Runtime is fully updated.
2021-08-10 10:03:40,783: Downloading DXVK releases to /home/fede/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-08-10 10:03:45,345: Failed to read response's content length
2021-08-10 10:03:45,602: Writing to /home/fede/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-08-10 10:03:45,604: DXVK v1.9.1L not available, downloading...
2021-08-10 10:04:52,485: Writing to /home/fede/.local/share/lutris/runtime/dxvk/dxvk-1.9.1L.tar.gz
2021-08-10 10:04:52,624: Runtime updated. Initialization complete.

So, idk, maybe something was slowing it WAY down on startup? I’m not that knowledgeable to know what was going on. After that, next load was fairly quick.

I’m still leaning towards downloading dxvk_versions being the cause. (stalling for example, for whatever reason)

Look at your output:

2021-08-10 10:03:40,783: Downloading DXVK releases to /home/fede/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-08-10 10:03:45,345: Failed to read response’s content length
2021-08-10 10:03:45,602: Writing to /home/fede/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-08-10 10:03:45,604: DXVK v1.9.1L not available, downloading…
2021-08-10 10:04:52,485: Writing to /home/fede/.local/share/lutris/runtime/dxvk/dxvk-1.9.1L.tar.gz
2021-08-10 10:04:52,624: Runtime updated. Initialization complete.

It has succeeded this time and it has downloaded DXVK 1.9.1L as it should have. Perhaps it’s going to be OK now. I sure hope so, you have suffered enough :slight_smile:

2021-08-10 10:03:45,345: Failed to read response’s content length

I fixed it by deleting dxvk_versions.json and running lutris in the terminal, then lutris created a new dxvk_versions.json and this problem was fixed for me