[Bug 45657] The Sims 4 - crashes when entering in the game

WineHQ Bugzilla wine-bugs at winehq.org
Wed Apr 8 00:26:09 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=45657

Olivier F. R. Dierick <o.dierick at piezo-forte.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #8 from Olivier F. R. Dierick <o.dierick at piezo-forte.be> ---
Hello,

I found the cause of my issue.

The application ships with python 3.7.

The init_sys_streams() function contains code that detects when output is
redirected to a directory. The comments in the code says that the interpreter
would crash if this is the case, so it exits early instead.

I've the habit to always redirect wine's output to a log file when testing
applications.
For some reason, init_sys_streams() thinks that the output is redirected to a
directory and fails.

While testing the issue, I ran the executable without redirecting the terminal
output and the application didn't crash.

So the workaround is to not redirect wine's output to a file.

However, I found a 'fix' that allows me to redirect the output to a file and
have python be happy with it nonetheless:

The failing command is 'wine Origin.exe >>"$LOGFILE" 2>&1'.

I use this instead and it works: 'wine Origin.exe 2>&1 | cat - >"$LOGFILE"'

Marking INVALID (application bug and/or user mistake).
If the OP's issue was different then, please check if your issue is not already
reported and file a new bug if not.

Regards.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list