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

CEF on Wine #1000

Closed
1 task
qaisjp opened this issue Jun 18, 2019 · 5 comments
Closed
1 task

CEF on Wine #1000

qaisjp opened this issue Jun 18, 2019 · 5 comments
Labels
bug Something isn't working upstream Related to vendor library
Milestone

Comments

@qaisjp
Copy link
Contributor

qaisjp commented Jun 18, 2019

Describe the bug

CEF does not work on Wine as expected.

To reproduce

  1. Run start webbrowser
  2. Open the webbrowser.
  3. Nothing appears in place of the MTA website

Version

Multi Theft Auto v1.5.6-release-18664

Additional context

You will receive the following warnings the Wine (Windows) console:

0177:err:module:import_dll Library libcef.dll (which is needed by L"C:\\Program Files\\MTA San Andreas 1.5\\MTA\\CEF\\CEFLauncher_DLL.dll") not found
0177:err:module:import_dll Library CEFLauncher_DLL.dll (which is needed by L"C:\\Program Files\\MTA San Andreas 1.5\\MTA\\CEF\\CEFLauncher.exe") not found
0177:err:module:LdrInitializeThunk Importing dlls for L"C:\\Program Files\\MTA San Andreas 1.5\\MTA\\CEF\\CEFLauncher.exe" failed, status c0000135

You must COPY the following files from MTA to MTA/CEF to work around this issue:

cp libcef.dll chrome_elf.dll icudtl.dat natives_blob.bin v8_context_snapshot.bin snapshot_blob.bin CEF

Thank you to @TheNormalnij for discovering this solution.

Note that you do not need snapshot_blob.bin from the MTA directory if you set WINARCH=win32. This additional bin file is only required in x64.

Without the DLL files in the MTA/ directory, the game WILL crash. This has been tested and is reproducible. You can't test this without performing a game restart.

Without the DLL files in the CEF/ directory, the game will silently output an error to the Windows (Wine) console. Nothing will appear ingame. This can be tested by restarting the webbrowser resource.

Without the other .bin data files in the CEF/ directory, CEFLauncher will crash, but the game will not. Nothing will appear in game. This can be tested by restarting the webbrowser resource. This also happens if you remove only the icudtl.dat. Partial removal of the .bin files have not been tested.

Roadmap

  • Determine if this is a bug in MTA or a bug in Wine.
  • If a bug in MTA: fix it.
  • If a bug in Wine:
    • File a Wine report.
    • Add a fix into our installer by simply symlinking these important files.
    • Pester @qaisjp to attempt a patch for Wine. (I suspect import_dll is missing out a directory to search in... but that would be way too "easy" of a solution.)

Screenshots

Without the fix above
image

With the fix above
image

CEFLauncher crash without data files
image

@qaisjp qaisjp added the bug Something isn't working label Jun 18, 2019
@AlexTMjugador
Copy link
Member

I'm curious about why this issue is open. I thought MTA didn't support Wine, so that if MTA happens to run on Wine (after some tweaks or not) it's likely to be somewhat volatile?

@Dutchman101
Copy link
Member

I'm curious about why this issue is open. I thought MTA didn't support Wine, so that if MTA happens to run on Wine (after some tweaks or not) it's likely to be somewhat volatile?

qaisjp recently became interested in improving Wine support..

@qaisjp
Copy link
Contributor Author

qaisjp commented Jun 25, 2019

Wine support is not "officially supported" — i.e. fixing client issues on other platforms is not a priority.

This is also something that seems easy to fix

@qaisjp qaisjp added this to the Backlog milestone Aug 7, 2019
@TheNormalnij
Copy link
Contributor

I think this issue can be closed. It is not relevant for wine-5.12 (Staging)

@qaisjp
Copy link
Contributor Author

qaisjp commented Aug 7, 2020

Yay!!!!!

@qaisjp qaisjp closed this as completed Aug 7, 2020
@qaisjp qaisjp added the upstream Related to vendor library label Aug 7, 2020
@qaisjp qaisjp modified the milestones: Backlog, 1.5.8 Aug 7, 2020
vahook added a commit to vahook/mtasa-blue-1 that referenced this issue Jul 7, 2022
vahook added a commit to vahook/mtasa-blue-1 that referenced this issue Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Related to vendor library
Projects
None yet
Development

No branches or pull requests

4 participants