Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find cores #29

Closed
willysr opened this issue Jul 27, 2021 · 22 comments
Closed

Unable to find cores #29

willysr opened this issue Jul 27, 2021 · 22 comments

Comments

@willysr
Copy link

willysr commented Jul 27, 2021

Hi,

I'm using Slackware-current (development snapshot) and running latest conty and it used to work fine but now when i tried to run lutris, it always gives me this message

2021-07-27 18:15:05,409: Magic not available. Unable to automatically find game executables. Please install python-magic
2021-07-27 18:15:05,602: No cores found

i tried to run -u or -U but at the end of the process i get

This doesn't look like a squashfs image.
Mounting the squashfs image failed!

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 27, 2021

Hi,

2021-07-27 18:15:05,409: Magic not available. Unable to automatically find game executables. Please install python-magic
2021-07-27 18:15:05,602: No cores found

These are not critical errors, i get them too, but Lutris works for me. Are there any other errors?

Also, could you please try this release and see if it fixes the issue? It includes the python-magic package, just in case.

@willysr
Copy link
Author

willysr commented Jul 27, 2021

ok python-magic warning is now gone, but the second warning about no cores found is still there and lutris bar is starting but no apps displayed.

@willysr
Copy link
Author

willysr commented Jul 27, 2021

steam works fine though here

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 27, 2021

That's really odd. So "No cores found" is the only message it shows, nothing else is in the output? I suggest you to try to remove or rename Lutris's config directories so it would recreate them, maybe this will help.

mv ~/.local/share/lutris ~/.local/share/lutris_bak
mv ~/.config/lutris ~/.config/lutris_bak

@willysr
Copy link
Author

willysr commented Jul 27, 2021

Here's the result after running two commands above
https://pastebin.com/SszcXeEn

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 27, 2021

Sorry, i don't know why it doesn't work for you, there are no critical errors in the output. I mean, i see the same messages when i run Lutris myself, but it works for me anyway.

Do you remember when it got broken? Was it after updating to a new Conty release or maybe you changed something in your system (that should not affect the container, but still)?

@willysr
Copy link
Author

willysr commented Jul 27, 2021

i'm running a development cycle of Slackware-current so things gets changed, but i assume it should be the same as conty is based on Archlinux. I didn't change much, except following the changes in Slackware-Current. Here's the ChangeLog if if helps you find anything that might give a clue: http://www.slackware.com/changelog/current.php?cpu=x86_64

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 27, 2021

i'm running a development cycle of Slackware-current so things gets changed, but i assume it should be the same as conty is based on Archlinux.

Yes, in fact, systemd-wide changes should not affect the container at all, except maybe for some rare cases.

The Lutris package has been updated (from 0.5.8.3 to 0.5.8.4) in the 1.14.1 conty release, so you could try the 1.14 release, which includes the previous Lutris version.

Another thing that you could try is to enable sandbox:

SANDBOX=1 ./conty_lite.sh lutris

And to switch to the classic i965 driver if you are using a modern enough Intel integrated GPU.

MESA_LOADER_DRIVER_OVERRIDE=i965 ./conty_lite.sh lutris

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 27, 2021

And you can try to disable network access for the container:

DISABLE_NET=1 ./conty_lite.sh lutris

I know Lutris needs internet access to download runners, scripts and other things, but still i suggest to disable it for testing purposes.

@willysr
Copy link
Author

willysr commented Jul 27, 2021

Here's what i got after trying with SANDBOX=1

2021-07-28 00:19:51,993: Non existent path: /home/willysr/.local/share/lutris/runtime/winetricks
2021-07-28 00:19:52,981: Non existent path: /home/willysr/.local/share/lutris/runtime/innoextract-1.9-linux

@willysr
Copy link
Author

willysr commented Jul 27, 2021

DISABLE_NET=1 works but i got this message on console

2021-07-28 00:20:41,144: Failed to get runtimes: Unable to connect to server https://lutris.net/api/runtimes: <urlopen error [Errno -3] Temporary failure in name resolution>
2021-07-28 00:20:41,146: Downloading DXVK releases to /home/willysr/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-07-28 00:20:41,152: Failed to get url https://api.github.com/repos/lutris/dxvk/releases: Unable to connect to server https://api.github.com/repos/lutris/dxvk/releases: <urlopen error [Errno -3] Temporary failure in name resolution>
2021-07-28 00:20:41,153: Loading of DXVK versions failed, defaulting to locally available versions
2021-07-28 00:20:41,153: Error while completing task <bound method LutrisInitDialog.initialize of <dialogs.LutrisInitDialog object at 0x7f823df598c0 (lutris+gui+dialogs+LutrisInitDialog at 0x55ff41742310)>>: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
File "/usr/lib/python3.9/site-packages/lutris/util/jobs.py", line 34, in target
result = self.function(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/lutris/gui/dialogs/init.py", line 195, in initialize
init_lutris()
File "/usr/lib/python3.9/site-packages/lutris/startup.py", line 175, in init_lutris
if not dxvk_manager.is_available():
File "/usr/lib/python3.9/site-packages/lutris/util/wine/dxvk.py", line 105, in is_available
return system.path_exists(self.dxvk_path)
File "/usr/lib/python3.9/site-packages/lutris/util/wine/dxvk.py", line 62, in dxvk_path
return os.path.join(self.base_dir, self.version)
File "/usr/lib/python3.9/posixpath.py", line 90, in join
genericpath._check_arg_types('join', a, *p)
File "/usr/lib/python3.9/genericpath.py", line 152, in _check_arg_types
raise TypeError(f'{funcname}() argument must be str, bytes, or '
2021-07-28 00:20:44,767: Lutris 0.5.8.4

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 27, 2021

And without DISABLE_NET you get an infinite "Lutris is starting" window, right?

lutris_is_starting

@willysr
Copy link
Author

willysr commented Jul 27, 2021

yes

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 27, 2021

Ok, i guess i know why this happens. The fact that disabling network helps likely means that Lutris is either trying to resolve some url or urls infinitely (or very long) or is trying to download something and the download speed is very slow.

Try to wait some time, maybe it will move on eventually. And probably some network monitor might help to find out to which urls Lutris tries to connect.

@willysr
Copy link
Author

willysr commented Jul 27, 2021

it should be this one https://api.github.com/repos/lutris/dxvk/releases but it's accessible via browser

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 27, 2021

Try to download it manually.

cd ~/.local/share/lutris/runtime/dxvk
wget -O dxvk_versions.json "https://api.github.com/repos/lutris/dxvk/releases"

However, the releases json is not the only thing Lutris downloads from this github repo, it also downloads latest dxvk release.

@willysr
Copy link
Author

willysr commented Jul 27, 2021

tried it and no luck here....

@willysr
Copy link
Author

willysr commented Jul 27, 2021

i ran into this page: https://forums.lutris.net/t/solved-lutris-wont-start-launch/11653
tried running the command that worked for most people there and it still doesn't work for me

@willysr
Copy link
Author

willysr commented Jul 27, 2021

Do you have this message on your system?

2021-07-28 02:13:48,509: Loading of DXVK versions failed, defaulting to locally available versions
2021-07-28 02:13:48,540: Loading of DXVK versions failed, defaulting to locally available versions
2021-07-28 02:13:49,621: Runtime lib64 is not available locally
2021-07-28 02:13:49,622: Runtime lib32 is not available locally
2021-07-28 02:13:50,533: Runtime Ubuntu-18.04-i686 is not available locally
2021-07-28 02:13:50,537: Runtime Ubuntu-18.04-x86_64 is not available locally

because i checked on my .local/share/lutris/runtime directory, all those files are locally available

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 27, 2021

I have these messages only on the first Lutris launch after removing ~/.config/lutris and ~/.locale/share/lutris, next time i launch it there are no these messages, unless i remove or rename the config directories again.

And yes, i have the "Loading of DXVK versions failed, defaulting to locally available versions" message too, but, again, only on the first launch.

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 27, 2021

Here is how my Lutris output looks on the first launch, and here is how it looks on next launches.

@willysr
Copy link
Author

willysr commented Jul 28, 2021

i leave it overnight and now it's working again. I guess you are right, it tried to download things in the process and it took time

2021-07-28 02:58:56,401: Non existent path: /home/willysr/.local/share/lutris/runtime/Ubuntu-18.04-x86_64
2021-07-28 03:29:30,507: Non existent path: /home/willysr/.local/share/lutris/runtime/lib32
2021-07-28 03:37:01,521: Non existent path: /home/willysr/.local/share/lutris/runtime/lib64
2021-07-28 03:47:29,752: Non existent path: /home/willysr/.local/share/lutris/runtime/Ubuntu-18.04-i686
2021-07-28 03:47:31,511: Runtime is fully updated.
2021-07-28 03:47:31,628: Downloading DXVK releases to /home/willysr/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-07-28 03:47:32,090: Failed to read response's content length
2021-07-28 03:47:32,119: Writing to /home/willysr/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-07-28 03:47:32,121: DXVK v1.9.1L not available, downloading...
2021-07-28 03:47:35,773: Writing to /home/willysr/.local/share/lutris/runtime/dxvk/dxvk-1.9.1L.tar.gz
2021-07-28 03:47:35,948: Runtime updated. Initialization complete.
2021-07-28 03:47:35,949: Lutris 0.5.8.4

I'm closing this issue and see it for next few hours. Thanks for the help

@willysr willysr closed this as completed Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants