godotengine / godotengine/webrtc-native

Error printed to console when creating peer connection object from another extension

Open
#168 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
286
Forks
47
Avg merge
15d 12h
Merged PRs (30d)
1

Description

### 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:

```log
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::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

```gdscript
var foo := WebRTCPeerConnection.new()
```

### Minimal reproduction project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.