Cant Install Games with Lutris Wine

Bug #2031886 reported by Sameer Sharma
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Lutris Snap
Triaged
Low
Sameer Sharma

Bug Description

Lutris Snap Wont Install any apps/games etc. with wine, it gives the following log.

```
Traceback (most recent call last):
  File "/snap/lutris/141/usr/share/lutris/bin/lutris-wrapper", line 16, in <module>
    from lutris.util.log import logger
  File "/snap/lutris/141/usr/lib/python3/dist-packages/lutris/util/log.py", line 7, in <module>
    from gi.repository import GLib
  File "/snap/lutris/141/gnome-platform/usr/lib/python3/dist-packages/gi/__init__.py", line 40, in <module>
    from . import _gi
ImportError: /snap/lutris/141/gnome-platform/usr/lib/x86_64-linux-gnu/libgirepository-1.0.so.1: undefined symbol: g_string_free_and_steal
```

Tags: wine
Changed in lutris-snap:
importance: Undecided → High
status: New → Triaged
assignee: nobody → Sameer Sharma (capecrusader-121)
Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

From what i can see this error can be traced to --> gnome-platform/usr/lib/x86_64-linux-gnu/libgirepository-1.0.so.1

Most probably there is some conflicts due to something duplicate in the snap and the content snap.
Or there is something else.
But this is a major roadblock in getting the app run.

Changed in lutris-snap:
status: Triaged → In Progress
Revision history for this message
Sameer Sharma (sameersharma2006) wrote :
Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

Reported Upstream To get better understanding on this Issue.

https://github.com/ubuntu/gnome-sdk/issues/164

Revision history for this message
Sameer Sharma (sameersharma2006) wrote (last edit ):
Download full text (3.5 KiB)

Some Update:

1) Enabling 'Disable Lutris Runtime' in settings helps get rid of this problem.
2) Also, instead of 1, Disabling 'Prefer System Libraries' also gets rid of this problem.

** But this doesn't fix anything, as newer problems pops up different for both 1 & 2.

If 1 is chosen , this occurs :

```
Started initial process 8962 from /home/sam/snap/lutris/176/.local/share/lutris/runners/scummvm/bin/scummvm --extrapath=/home/sam/snap/lutris/176/.local/share/lutris/runners/scummvm/share/scummvm --themepath=/home/sam/snap/lutris/176/.local/share/lutris/runners/scummvm/share/scummvm
Start monitoring process.
Traceback (most recent call last):
  File "/snap/lutris/176/usr/share/lutris/bin/lutris-wrapper", line 202, in <module>
    main()
  File "/snap/lutris/176/usr/share/lutris/bin/lutris-wrapper", line 167, in main
    if not watcher.is_alive():
  File "/snap/lutris/176/usr/lib/python3/dist-packages/lutris/util/process_watcher.py", line 75, in is_alive
    return next(self.iterate_processes(), None) is not None
  File "/snap/lutris/176/usr/lib/python3/dist-packages/lutris/util/process_watcher.py", line 64, in iterate_processes
    for child in self.iterate_children():
  File "/snap/lutris/176/usr/lib/python3/dist-packages/lutris/util/process.py", line 131, in iter_children
    for child in self.children:
  File "/snap/lutris/176/usr/lib/python3/dist-packages/lutris/util/process.py", line 125, in children
    for child_pid in self.get_children_pids_of_thread(tid):
  File "/snap/lutris/176/usr/lib/python3/dist-packages/lutris/util/process.py", line 71, in get_children_pids_of_thread
    with open(children_path, encoding='utf-8') as children_file:
PermissionError: [Errno 13] Permission denied: '/proc/8960/task/8960/children'
/home/sam/snap/lutris/176/.local/share/lutris/runners/scummvm/bin/scummvm: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
```
Traceback (most recent call last):
  File "/snap/lutris/176/usr/share/lutris/bin/lutris-wrapper", line 16, in <module>
    from lutris.util.log import logger
  File "/snap/lutris/176/usr/lib/python3/dist-packages/lutris/util/log.py", line 7, in <module>
    from gi.repository import GLib
  File "/snap/lutris/176/gnome-platform/usr/lib/python3/dist-packages/gi/__init__.py", line 40, in <module>
    from . import _gi
ImportError: libffi.so.7: cannot open shared object file: No such file or directory
```

If 2 is chosen, this occurs :

```
Traceback (most recent call last):
  File "/snap/lutris/180/usr/share/lutris/bin/lutris-wrapper", line 202, in <module>
    main()
  File "/snap/lutris/180/usr/share/lutris/bin/lutris-wrapper", line 167, in main
    if not watcher.is_alive():
  File "/snap/lutris/180/usr/lib/python3/dist-packages/lutris/util/process_watcher.py", line 75, in is_alive
    return next(self.iterate_processes(), None) is not None
  File "/snap/lutris/180/usr/lib/python3/dist-packages/lutris/util/process_watcher.py", line 64, in iterate_processes
    for child in self.iterate_children():
  File "/snap/lutris/180/usr/lib/python3/dist-packages/lutris/util/process.py", line 131, in iter_children
    for child in self.children...

Read more...

Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

Being Discussed At Lutris Upstream --> https://github.com/lutris/lutris/issues/4994

Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

After an upstream commit to bypass the permission error we are met with the following error.

```
2023-08-24 10:12:43,139: Accessing game config while runner wasn't given one.
Started initial process 33388 from /home/sam/snap/lutris/184/.local/share/lutris/runners/scummvm/bin/scummvm --extrapath=/home/sam/snap/lutris/184/.local/share/lutris/runners/scummvm/share/scummvm --themepath=/home/sam/snap/lutris/184/.local/share/lutris/runners/scummvm/share/scummvm
Start monitoring process.
Waiting for game to start (first non-excluded process started)
/home/sam/snap/lutris/184/.local/share/lutris/runners/scummvm/bin/scummvm: symbol lookup error: /snap/lutris/184/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined symbol: pango_font_description_set_variations
Initial process has exited (return code: 32512)
All processes have quit
Exit with return code 32512
```

Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

This is most probably occurring due to the fact there are some libs present within the snap either provided by lutris intentionally for its execution like lutris runtime libs or by us accidentally that's conflicting with what's inside the gnome-content snap.

                         OR

Maybe due to the fact of supplying latest python packages from pip, it may be conflicting too, but i don't think that this assumption has much weight.

tags: added: wine
Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

Not a current priority anymore, since a lot of this also depends upon how permissive the app is and much more.

Changed in lutris-snap:
status: In Progress → Triaged
importance: High → Low
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Also, the snap does not include `winetricks` that should be available on $PATH for some games to be installed.

Revision history for this message
Sameer Sharma (sameersharma2006) wrote :
Changed in lutris-snap:
status: Triaged → In Progress
Changed in lutris-snap:
importance: Low → Medium
Revision history for this message
Sameer Sharma (sameersharma2006) wrote :
Download full text (4.4 KiB)

New error logs;

```
Started initial process 14338 from ~/snap/lutris/261/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine ~/Downloads/JioCloud.exe
ERROR: ld.so: object '/snap/lutris/261/gnome-platform/$LIB/bindtextdomain.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/snap/lutris/261/gnome-platform/$LIB/bindtextdomain.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Start monitoring process.
Waiting for game to start (first non-excluded process started)
shm_open: Permission denied
ftruncate: Bad file descriptor
fsync: up and running.
fsync: failed to map page 0 (offset 0): mmap: Bad file descriptor
wine: for some mysterious reason, the wine server failed to run.
Initial process has exited (return code: 256)
All processes have quit
Exit with return code 256
```

```
2024-04-11 18:29:29,483: All files available
2024-04-11 18:29:29,484: All files are available, continuing install
2024-04-11 18:29:29,494: Launching installer commands
2024-04-11 18:29:29,537: Can't read contents of /usr/share
2024-04-11 18:29:29,537: Can't read contents of /usr/local/share
2024-04-11 18:29:29,569: Can't read contents of /usr/share
2024-04-11 18:29:29,569: Can't read contents of /usr/local/share
2024-04-11 18:29:29,601: Can't read contents of /usr/share
2024-04-11 18:29:29,602: Can't read contents of /usr/local/share
2024-04-11 18:29:29,634: Can't read contents of /usr/share
2024-04-11 18:29:29,634: Can't read contents of /usr/local/share
2024-04-11 18:29:29,666: Can't read contents of /usr/share
2024-04-11 18:29:29,666: Can't read contents of /usr/local/share
2024-04-11 18:29:29,698: Can't read contents of /usr/share
2024-04-11 18:29:29,698: Can't read contents of /usr/local/share
2024-04-11 18:29:29,739: Creating a win64 prefix in ~/snap/lutris/261/Games/jiocloud
2024-04-11 18:29:29,739: Winepath: ~/snap/lutris/261/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine
2024-04-11 18:29:37,755: win64 Prefix created in ~/snap/lutris/261/Games/jiocloud
2024-04-11 18:29:37,893: Can't read contents of /usr/share
2024-04-11 18:29:37,893: Can't read contents of /usr/share
2024-04-11 18:29:37,893: Can't read contents of /usr/local/share
2024-04-11 18:29:37,893: Can't read contents of /usr/local/share
2024-04-11 18:29:37,894: Can't read contents of /usr/share
2024-04-11 18:29:37,895: Can't read contents of /usr/local/share
2024-04-11 18:29:37,896: Can't read contents of /usr/share
2024-04-11 18:29:37,896: Can't read contents of /usr/local/share
2024-04-11 18:29:37,897: Wine is not installed on your system; required dependencies may be missing.
Started initial process 14338 from ~/snap/lutris/261/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine ~/Downloads/JioCloud.exe
ERROR: ld.so: object '/snap/lutris/261/gnome-platform/$LIB/bindtextdomain.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/snap/lutris/261/gnome-platform/$LIB/bindtextdomain.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Start monitoring process.
Waiting for game to start (first non-excluded ...

Read more...

Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

De-prioritised for now.

Changed in lutris-snap:
status: In Progress → Triaged
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.