webrtc-native icon indicating copy to clipboard operation
webrtc-native copied to clipboard

Error printed to console when creating peer connection object

Open BenLubar opened this issue 1 year ago • 0 comments

Godot version

4.4.beta1.official.d33da79d3

Plugin version

v1.0.8 and tested with the latest CI build (13a934298a7e846a55575cfb2684fe3151320e6e)

System information

Godot v4.4.beta1 - Debian GNU/Linux trixie/sid trixie on Wayland - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - Mesa Intel(R) Graphics (RPL-P) - 13th Gen Intel(R) Core(TM) i7-1360P (16 threads)

Issue description

When creating a peer connection, the following error is printed to the console:

ERROR: Condition "_instance_bindings != nullptr && _instance_bindings[0].binding != nullptr" is true.
   at: set_instance_binding (core/object/object.cpp:1985)

My code creates it by calling Ref<WebRTCPeerConnection>::instantiate(), but there's nothing special about it being C++ (nothing before that in my code talks to this extension).

Code is here in case it turns out I'm wrong and it actually is relevant: https://github.com/BenLubar/godot4-spy-cards-online/blob/5566ce94abca194587ad262a1ae637c30c0d15ba/src/protocol/matchmaking_connection.cpp#L89

The peer connection does seem to work despite this error message.

Steps to reproduce

var foo := WebRTCPeerConnection.new()

Minimal reproduction project

No response

BenLubar avatar Jan 25 '25 18:01 BenLubar