mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

CEF not working anymore on wine/proton

Open ffsPLASMA opened this issue 9 months ago • 10 comments

Describe the bug

Henlo there,

Im currently trying to get MTA working on Ubuntu 24.04 with wine/proton/lutris. MTA itself works fine but whenever the CEF component tries to load for ingame webbrowser, it crashes.

Depending on the proton/wine version, I get two different crashes:

proton 6.3 and 7.0: Image

proton 8.0+ and wine 8-26 Image

I followed the wiki guide and copied the CEF files from MTA directory to MTA/CEF directory without any success.

Steps to reproduce

Try to join a server with CEF webbrowser using MTA on linux with wine/proton.

Version

No response

Additional context

No response

Relevant log output


Security Policy

  • [x] I have read and understood the Security Policy and this issue is not security related.

ffsPLASMA avatar Apr 28 '25 23:04 ffsPLASMA

I wanted to share that I’ve found a workaround: by switching Lutris to Bottles launcher & Soda runner instead. CEF initializes correctly and everything seems to work as expected. Even bonus features like Gamescope and DXVK are functional out-of-the-box under this setup.

Image

Luminaire1337 avatar May 11 '25 22:05 Luminaire1337

I wanted to share that I’ve found a workaround: by switching Lutris to Bottles launcher & Soda runner instead. CEF initializes correctly and everything seems to work as expected. Even bonus features like Gamescope and DXVK are functional out-of-the-box under this setup.

Image

I, following MTA Wiki's instructions installed MTA using Wine + Winetricks with a 32 bits prefix. It worked, however, my mouse was not working properly. After reading your comment and using Bottles Launcher + Soda runner, I can confirm that the game runs completely functional, works really good.

Thank you.

luisbustalu avatar May 30 '25 18:05 luisbustalu

Guys you should update the wiki (or write your own tutorial / article somewhere) to let future Linux users know how they should set up 😁👌🏼

Fernando-A-Rocha avatar May 30 '25 19:05 Fernando-A-Rocha

Just managed to get it to run on bottles with soda runner. setup is way easier than on lutris.

I just found another CEF bug I thankfully managed to fix.

If CEF browser element simply doesnt show up/load, for example joining ffs server and you see no login window, you have to copy the following files from MTA to MTA/CEF folder:

cefweb.dll chrome_100_percent.pak chrome_200_percent.pak chrome_elf.dll icudtl.dat libcef.dll resources.pak v8_context_snapshot.bin

ffsPLASMA avatar Jun 05 '25 16:06 ffsPLASMA

I created a wiki page for bottles/soda setup. By far the easiest way to get mta running under linux. Not sure if this issue should remain open though....

https://wiki.multitheftauto.com/wiki/Client_on_Linux_using_Bottles/Soda_Manual

ffsPLASMA avatar Jun 06 '25 18:06 ffsPLASMA

https://wiki.multitheftauto.com/wiki/Client_on_Linux_using_Bottles/Soda_Manual

The Wiki page looks very good for a step by step solution, but I see a problem in the Problems and Solutions section, which needs to be updated with customer issues or issues that require more time to be solved or some other never seen before being rare cases. And a point that I can see from the view of players looking at the page for the first time or frequently to do the installation of the same

Kinimel avatar Jun 07 '25 00:06 Kinimel

https://wiki.multitheftauto.com/wiki/Client_on_Linux_using_Bottles/Soda_Manual

The Wiki page looks very good for a step by step solution, but I see a problem in the Problems and Solutions section, which needs to be updated with customer issues or issues that require more time to be solved or some other never seen before being rare cases. And a point that I can see from the view of players looking at the page for the first time or frequently to do the installation of the same

That would require more people to switch over to Linux and try it out. I hope with events in recent times, people do that.

ffsPLASMA avatar Jun 07 '25 09:06 ffsPLASMA

That would require more people to switch over to Linux and try it out. I hope with events in recent times, people do that.

I understand your point of view, even though I'm a Windows user, I've thought several times about migrating to Linux due to problems, but I don't know how Linux works or how to install it and I say it's difficult, that's why I don't install it.

Kinimel avatar Jun 07 '25 13:06 Kinimel

I'm the original author of Client on Linux using Lutris Manual. I had this Lutris prefix since 2021 and it worked fine for a long time. But recently, I got similar libcef.dll crashes that wouldn't be fixed by copying the aforementioned files from MTA to MTA/CEF folder. Creating a fresh Lutris prefix didn't fix the issue, and I tried every runner version.

So I finally found this issue and tried Bottle/Soda, and it worked flawlessly so far. I think it would be fitting to emphasize that the Lutris way doesn't work anymore. One small thing I would add to the Bottle/Soda wiki is a different way to get the fonts: Bottle > Dependencies > Install allfonts Sure, it installs some unneeded fonts as well, but I find it more convenient (and safer too).

I truly wonder what Bottles and/or Soda is/are doing differently to make CEF functional.

Christopher-S-25 avatar Jun 15 '25 12:06 Christopher-S-25

Honestly, this is strange. The issues with .dll loading issue was solved by this PR: https://github.com/multitheftauto/mtasa-blue/pull/2875

After MTASA 1.6, I did not needed copying any CEF files to make CEF working, it works just out of the box. This is how my MTA/CEF folder looks: Image

Note, I am running MTA on latest wine-staging, 32-bit prefix.

gamelaster avatar Jun 16 '25 07:06 gamelaster

The CEF is not working on bottles anymore. I'm running linux mint, MTA opens without any problem and no crashes at all, the only problem is that CEF is not showing.

[1268:1548:0703/173921.749:ERROR:net\base\network_change_notifier_win.cc:189] WSALookupServiceBegin failed with: 8 [1268:1548:0703/173921.842:WARNING:chrome\browser\signin\account_consistency_mode_manager.cc:72] Desktop Identity Consistency cannot be enabled as no OAuth client ID and client secret have been configured. [1700:1740:0703/173922.372:ERROR:net\base\network_change_notifier_win.cc:189] WSALookupServiceBegin failed with: 8 [1700:1732:0703/173922.424:ERROR:net\dns\address_sorter_win.cc:113] SIO_ADDRESS_LIST_SORT failed 10045 [1644:1648:0703/173922.694:ERROR:components\viz\service\main\viz_main_impl.cc:183] Exiting GPU process due to errors during initialization - cef debug

I've copied all of the files and I've tried with 32bit and 64bit.

Ianec21 avatar Jul 03 '25 14:07 Ianec21

still working on Multi Theft Auto v1.6-release-23196

ffsPLASMA avatar Jul 03 '25 14:07 ffsPLASMA

works good for me as well on wine-10.9 (Staging), 64-bit bottle (WoW64) - Multi Theft Auto v1.6-release-23196

gamelaster avatar Jul 03 '25 15:07 gamelaster

still working on Multi Theft Auto v1.6-release-23196

What version of soda are you using, also, did you make any other settings?

Ianec21 avatar Jul 03 '25 16:07 Ianec21

I've solved it. Actually, for me, moving those CEF related files in the CEF folder didn't work. After a clean install of MTA:SA, CEF worked out of the box.

Ianec21 avatar Jul 03 '25 16:07 Ianec21

Yeah it's just annoying the CEF files need to be moved, why? For QoL there could be a bash script to fix it

Fernando-A-Rocha avatar Jul 03 '25 19:07 Fernando-A-Rocha

@Fernando-A-Rocha CEF files does not needed to be moved. I made fresh install of MTA few days ago, no need to copy anything.

gamelaster avatar Jul 03 '25 19:07 gamelaster

This method worked for me if you even followed all the steps even copying the files and still cef is not showing up or is blank on Linux, the fix is simple. It's a missing fonts issue. Solution:

  1. In Bottles, open your settings.
  2. Go to the Dependencies section.
  3. Find and install allfonts.
  4. That's it. Restart the game and CEF will work.

i hope it helps

liwa-dev avatar Aug 23 '25 18:08 liwa-dev