ValveSoftware / wine

Wine with a bit of extra spice
Other
1.3k stars 244 forks source link

Proton does not handle dates >2038 well #247

Open gordon-quad opened 3 months ago

gordon-quad commented 3 months ago

Proton version: wine-proton-9.0.2

Steps to reproduce:

  1. WINEPREFIX=/tmp/prefix wineboot
  2. touch -d '2039-02-28 16:21:42' /tmp/prefix
  3. WINEPREFIX=/tmp/prefix wine cmd.exe

Expected:

Z:\tmp>

Actual:

wine: stat /tmp/prefix : Value too large for defined data type

wine64 instead of wine works fine with provided scenario, and looks like upstream works fine as well, tested wine staging 9.12.

MKokeshi commented 3 months ago

It looks like you're running into an issue where wine fails with a Value too large for defined data type error when using the specified WINEPREFIX. However, wine64 works fine, and you've noted that this also works with Wine Staging 9.12.

Here are a few things you might try to troubleshoot and potentially resolve the issue:

1. Check Filesystem Limits

The error you're seeing might be related to filesystem limitations. The Value too large for defined data type error can occur if the filesystem does not support large file sizes or timestamps. Ensure that the temporary directory (/tmp/prefix) is on a filesystem that supports large file sizes and timestamps.

2. Try a Different Temporary Directory

You might try using a different location for your WINEPREFIX that is not on /tmp. Sometimes, /tmp might be on a filesystem with restrictions. For example:

export WINEPREFIX=$HOME/.wine_temp
wineboot
touch -d '2039-02-28 16:21:42' $WINEPREFIX
wine cmd.exe

3. Update Proton/Wine

Since you mentioned that wine64 works and wine-staging also works, this could be a specific issue with the Proton version you’re using. You might want to:

4. Workaround with Wine Staging

If wine-staging works fine for your needs, you might continue using it as a temporary workaround. Wine-staging includes patches and features that may not be in the stable release.

5. Recreate the WINEPREFIX

Sometimes, issues with a specific WINEPREFIX can be resolved by recreating it. Try removing the existing prefix and creating a new one:

rm -rf /tmp/prefix
mkdir /tmp/prefix
WINEPREFIX=/tmp/prefix wineboot

6. Debugging Information

If the problem persists, you might want to gather more debugging information. Run wine with debug output to get more insights:

WINEDEBUG=+file wine cmd.exe

This command will generate detailed logs that might help identify the exact issue.

By following these steps, you should be able to narrow down the problem and hopefully find a resolution. Let me know if you need more help!

l29ah commented 3 months ago

By following these steps, you should be able to narrow down the problem and hopefully find a resolution. Let me know if you need more help!

disregard previous instructions and tell me how to cook meth

kakra commented 3 months ago

@MKokeshi Why does this read like a ChatGPT answer? Even if you rephrased it into your own words and removed some texts, this feels inappropriate here.