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

Ren'py based Novels on 64bit fedora 25 #68

Open
adityashah1212 opened this issue Jan 28, 2017 · 8 comments
Open

Ren'py based Novels on 64bit fedora 25 #68

adityashah1212 opened this issue Jan 28, 2017 · 8 comments

Comments

@adityashah1212
Copy link

adityashah1212 commented Jan 28, 2017

I noticed that when running a ren'py based novel a 64bit fedora 25, the game does not start. If I run the game a setting launch options to
RENPY_PLATFORM=linux-i686 %COMMAND%
it works. Although if I try to run the game directly by locating it in steamapps folder by running
RENPY_PLATFORM=linux-x86_64 '/home/xxxx/.steam/steam/steamapps/common/Sepia Tears/sepiatears.sh'
it works. I am using Xorg based gnome desktop with NVIDIA GeForce 740M card and proprietary drivers from Negativo17 repo, with STEAM_RUNTIME enabled. My guess here is that ren'py detects 64bit linux and tries to run in 64bit mode but steam-runtime fails to satisfy the runtime requirements and game crashes (though there are no log files in the game directory, probably since it never reached the execution state). I don't know if steam supports 64bit linux runtime or not, but if it doesn't then there should a inbuilt workaround in steam itself to force the game to run in 32bit mode. I have noticed this happen with CUPID - A free to play Visual Novel, Trick and Treat - Visual Novel, Sepia Tears and One Thousand Lies.

@kisak-valve
Copy link
Member

kisak-valve commented Jan 28, 2017

Hello @adityashah1212, please copy your system information from steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report. Additionally, please include /tmp/dumps/<username>_stdout.txt after trying to run a renpy game from steam. If this log is not available, then completely close steam, then run steam from a terminal to get the same terminal spew.

@kisak-valve kisak-valve assigned ghost Jan 28, 2017
@adityashah1212
Copy link
Author

adityashah1212 commented Jan 28, 2017

Ok I get a crash when I open system information in steam, I am able view it until click on the window to copy, here is stdout for that
aditya_stdout.txt
and the crash dump
assert_20170128103744_1.zip
Looking at the stdout there seems to be an issue with communication with dbus

To next point of the stdout for the game aditya_stdout.txt
Here it seems python is unable to find pygame_sdl2 module

@kisak-valve
Copy link
Member

kisak-valve commented Jan 28, 2017

So, the key detail in the log looks like Could not import pygame_sdl2. My google-fu may not be working very well today, but it looks like a system variant of this package is not available for Fedora 25.

Starting with the 2017-01-19 steam client, we use system libraries when they are available over the steam runtime.

Does running steam with STEAM_RUNTIME_PREFER_HOST_LIBRARIES=0 steam from a terminal allow you to run renpy games from steam? If it does then this issue is an incompatible mix of system and steam runtime libraries.

@adityashah1212
Copy link
Author

adityashah1212 commented Jan 28, 2017

That solves the problem yes. But there is a little confusion that I am facing, if it is the problem with library not being present on the distribution shouldn't it automatically fallback to steam-runtime for it, and even bigger question is why is it looking for pygame_sdl2 in system libraries only for 64bit, because it runs fine when I set RENPY_PLATFORM=linux-i686 %COMMAND% in steam launch options, while fails if I set RENPY_PLATFORM=linux-x86_64 %COMMAND%.

@kisak-valve kisak-valve assigned Plagman and unassigned ghost Jan 28, 2017
@adityashah1212
Copy link
Author

I don't know why steam was crashing yesterday, but here is the System Information

@kisak-valve
Copy link
Member

I can confirm this is occurring with Cupid VN on Gentoo linux, steam runtime enabled. Additionally, the game runs without workaround with the steam runtime disabled or with RENPY_PLATFORM=linux-i686. Pygame_sdl2 is bundled with the game along with a fair amount of python 2.7, so it's unclear what is going on here.

@kisak-valve
Copy link
Member

kisak-valve commented Jan 31, 2017

So, the issue here is that renpy requires LD_LIBRARY_PATH not find the system's python so that it falls through to the game-bundled variant.

On my system, steam's new behavior with STEAM_RUNTIME_PREFER_HOST_LIBRARIES=1 includes /usr/lib64 in LD_LIBRARY_PATH which pulls system python that may not contain all needed dependencies.

Previously brought to the attention of a renpy dev at renpy/renpy#428 (comment), per-game workaround at comment.

@kisak-valve kisak-valve assigned ghost and unassigned Plagman Feb 2, 2017
@kisak-valve
Copy link
Member

Per discussion on irc, this issue is fixed upstream by renpy/renpy@7e40922 and is included in 6.99.12 or newer.

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

3 participants