Error: _register_extension_class_internal: Attempt to register extension class 'GDCef', which appears to be already registered.
Pastew opened this issue · comments
Hello,
I hit Play button from 3D demo, game opens, but I have these errors:
E 0:00:00:0691 _register_extension_class_internal: Attempt to register extension class 'GDCef', which appears to be already registered.
<C++ Error> Condition "ClassDB::class_exists(class_name)" is true.
<C++ Source> core/extension/gdextension.cpp:386 @ _register_extension_class_internal()
E 0:00:00:0691 _register_extension_class_internal: Attempt to register extension class 'GDBrowserView', which appears to be already registered.
<C++ Error> Condition "ClassDB::class_exists(class_name)" is true.
<C++ Source> core/extension/gdextension.cpp:386 @ _register_extension_class_internal()
and when type first letter in URL I get an error The browser browser did not load
My environment info:
Windows 10
Godot Engine v4.2.2.stable.official [15073afe3]
-
I downloaded latest zip from godot-4.x branch: https://github.com/Lecrapouille/gdcef/tree/godot-4.x
-
I downloaded precompiled build: https://github.com/Lecrapouille/gdcef/releases/download/v0.10.0-godot4/gdcef-artifacts-godot_4-windows_x86_64.tar.gz
-
I copied content of this:
gdcef-godot-4.x\addons\gdcef\demos\3D
to separate directory/x/dev/Godot3DChrome
, to use as my project. -
I put
gdcef.gdextension
intolibs
directory. -
I put
cef_artifacts
into root directory
Here's my files structure:
Pastew@DESKTOP-ALIG1JE MINGW64 /x/dev/Godot3DChrome
$ ls -lR
.:
total 69
-rw-r--r-- 1 Pastew 197121 2149 May 28 22:10 CEF.tscn
-rw-r--r-- 1 Pastew 197121 7584 May 28 22:10 GUI.gd
drwxr-xr-x 1 Pastew 197121 0 Jun 4 21:34 cef_artifacts/
-rw-r--r-- 1 Pastew 197121 274 May 28 22:10 default_env.tres
-rw-r--r-- 1 Pastew 197121 6866 May 28 22:10 gui_3d.gd
-rw-r--r-- 1 Pastew 197121 4227 Jun 4 21:36 gui_in_3d.tscn
-rw-r--r-- 1 Pastew 197121 1195 May 28 22:10 gui_panel_3d.tscn
-rw-r--r-- 1 Pastew 197121 24045 May 28 22:10 icon.png
-rw-r--r-- 1 Pastew 197121 744 Jun 4 21:17 icon.png.import
drwxr-xr-x 1 Pastew 197121 0 Jun 4 21:21 libs/
-rw-r--r-- 1 Pastew 197121 814 Jun 4 21:17 project.godot
./cef_artifacts:
total 275484
-rw-r--r-- 1 Pastew 197121 683496 Jun 2 12:05 chrome_100_percent.pak
-rw-r--r-- 1 Pastew 197121 1069453 Jun 2 12:05 chrome_200_percent.pak
-rwxr-xr-x 1 Pastew 197121 1390080 Jun 2 12:05 chrome_elf.dll*
-rwxr-xr-x 1 Pastew 197121 4916712 Jun 2 12:05 d3dcompiler_47.dll*
-rw-r--r-- 1 Pastew 197121 950 Jun 4 21:36 debug.log
-rwxr-xr-x 1 Pastew 197121 22026752 Jun 2 12:05 dxcompiler.dll*
-rwxr-xr-x 1 Pastew 197121 1508320 Jun 2 12:05 dxil.dll*
-rw-r--r-- 1 Pastew 197121 798 Jun 2 12:05 gdcef.gdextension
-rwxr-xr-x 1 Pastew 197121 273920 Jun 2 12:05 gdcefSubProcess.exe*
-rw-r--r-- 1 Pastew 197121 10468208 Jun 2 12:05 icudtl.dat
-rwxr-xr-x 1 Pastew 197121 468480 Jun 2 12:05 libEGL.dll*
-rwxr-xr-x 1 Pastew 197121 8040960 Jun 2 12:05 libGLESv2.dll*
-rwxr-xr-x 1 Pastew 197121 214695936 Jun 2 12:05 libcef.dll*
-rwxr-xr-x 1 Pastew 197121 593920 Jun 2 12:05 libgdcef.dll*
-rw-r--r-- 1 Pastew 197121 739 Jun 2 12:05 libgdcef.exp
-rw-r--r-- 1 Pastew 197121 1764 Jun 2 12:05 libgdcef.lib
drwxr-xr-x 1 Pastew 197121 0 Jun 4 21:16 locales/
-rw-r--r-- 1 Pastew 197121 8470093 Jun 2 12:05 resources.pak
-rw-r--r-- 1 Pastew 197121 668253 Jun 2 12:05 v8_context_snapshot.bin
-rwxr-xr-x 1 Pastew 197121 5229056 Jun 2 12:05 vk_swiftshader.dll*
-rwxr-xr-x 1 Pastew 197121 944128 Jun 2 12:05 vulkan-1.dll*
-rwxr-xr-x 1 Pastew 197121 593920 Jun 4 21:17 '~libgdcef.dll~RFc25e637.TMP'*
./cef_artifacts/locales:
total 39652
-rw-r--r-- 1 Pastew 197121 510377 Jun 2 12:05 af.pak
[... other .pak files]
./libs:
total 4
-rw-r--r-- 1 Pastew 197121 781 May 28 22:10 gdcef.gdextension
Do you have idea what am I doing wrong?
Hi I will see that tomorrow I do not have Windows on my computer so I could not test 0.10.0
Do not move the godot extension from the cef artefacts folder. This has to be done in previous versions but no more for thus version. A user guy checked on Windows it works
You can git clone cef, do not compile it. Place cef_artefacts folder inside each demos. Run godot and load them. It should work
Thank you for clarification! I was looking at master's Readme.md instead of Readme.md on godot-4x branch.
Now it's working.