multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.35k stars 412 forks source link

Weird CEF bug #2928

Open FileEX opened 1 year ago

FileEX commented 1 year ago

Describe the bug

I use a simple code with web browser

local screenX, screenY = guiGetScreenSize();

local browserCef = GuiBrowser(0,0,screenX,screenY, false, true, false);
local browserCefE = browserCef.browser; 

addEventHandler('onClientBrowserCreated', browserCef, function()
    print(loadBrowserURL(source, 'http://www.youtube.com'));
    toggleBrowserDevTools(source, true) -- Toggle the CEF dev console
end);

But for me browser isn't appear, but for other players is ok. I have the same issues with local files and any other URL's. In debug console i got error image

Steps to reproduce

I don't know how reproduce this problem

Version

1.5.9 (newest)

Additional context

No response

Relevant log output

No response

Security Policy

TracerDS commented 1 year ago

Its not a CEF bug but an output from a CEF console. Its because YouTube uses legacy elements or something related to their website. This is nothing you should worry about

FileEX commented 1 year ago

But i'm worry about it because CEF isn't appear for me with any URL or local files.

Also when i quit game with "showing" CEF browser, MTA crashes image

Even if I close the MTA, the "CEF Launcher" process is still running in Task Manager

Lpsd commented 1 year ago

Please provide your actual client version (ver in console)

FileEX commented 1 year ago

Multi Theft Auto v1.5.9-release-21618

FileEX commented 1 year ago

For some reason getBrowserURL gives me empty output, the "browser tools" console is empty and loadBrowserURL return true. I don't understand why everything works fine for other players and displays fine.

FileEX commented 1 year ago

Reinstallation MTA fixed this

FileEX commented 1 year ago

Reinstalling the MTA helped only for a few days. Today when launching the MTA, a window like an MTA update appeared and after launching the MTA CEF it stopped working again.

After the "update" of the MTA, the file CEFLauncher_DLL.dll was replaced. I had copied the old CEFLauncher_DLL file from before the update and replaced this updated file with the old one, but it didn't change anything.

Now even reinstalling the MTA doesn't fix the problem.

After closing the MTA, the "CEF Launcher" process remains running in the task manager.

cefdebug.txt file

[0330/175537.671:WARNING:spdy_session.cc(3487)] Received HEADERS for invalid stream 5
[0330/175745.803:ERROR:network_service_instance_impl.cc(539)] Network service crashed, restarting service.
[0330/175753.425:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=1
[0330/175753.425:WARNING:gpu_process_host.cc(1338)] The GPU process has crashed 1 time(s)
[0330/175756.179:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=1
[0330/175756.180:WARNING:gpu_process_host.cc(1338)] The GPU process has crashed 2 time(s)
[0330/175758.443:ERROR:network_service_instance_impl.cc(539)] Network service crashed, restarting service.

Could this be caused by updating the graphics card drivers?

patrikjuvonen commented 1 year ago

Please try with the latest MTA 1.5.9 or 1.6.0 nightly https://nightly.mtasa.com/mtasa-1.5.9-rc-21630-20230407.exe

FileEX commented 1 year ago

On 1.5.9 the problem still exists.

On 1.6 it seems to work, though I don't know for how long. Perhaps it's only temporary, because after reinstalling 1.5.9 it sometimes works for a while too.