godotengine / webrtc-native

The official GDNative WebRTC implementation for non-html exports.
MIT License
210 stars 34 forks source link

Godot 4.0 beta 5 crashes when loading extension #69

Closed benpm closed 1 year ago

benpm commented 1 year ago

Godot version

4.0 beta 5

Plugin version

v1.0.0-beta4 - Libdatachannel 0.17.10+git

System information

Pop!_OS 22.04 LTS

Issue description

I'm attempting to use the WebRTC GDNative Extension with the webrtc_signaling example with Godot 4.0 beta 5.

At first, I could open the project but the extension wouldn't load, citing that the object files included with the extension were missing from ~/.local/share/lib/. After copying the files included in godot-extension-webrtc/lib into that directory and closing the editor, I can no longer open the project at all. Instead, I get this error:


================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.beta5.official (89a33d28f00fec579184fb7193790d40aa09b45b)
Dumping the backtrace. Please include this when reporting the bug on: https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f150ea42520] (??:0)
[2] /home/ben/.local/share/applications/Godot_v4.0-beta5_linux.x86_64() [0x429d7e8] (??:0)
[3] /home/ben/.local/share/applications/Godot_v4.0-beta5_linux.x86_64() [0x43e433b] (??:0)
[4] godot::String::init_bindings() (??:0)
[5] godot::Variant::init_bindings() (??:0)
[6] godot::GDExtensionBinding::init(GDNativeInterface const*, void*, GDNativeInitialization*) (??:0)
[7] /home/ben/.local/share/applications/../lib/libwebrtc_native.linux.template_debug.x86_64.so(webrtc_extension_init+0x5d) [0x7f1508be4e3d] (??:0)
[8] /home/ben/.local/share/applications/Godot_v4.0-beta5_linux.x86_64() [0x42b69b1] (??:0)
[9] /home/ben/.local/share/applications/Godot_v4.0-beta5_linux.x86_64() [0x431a436] (??:0)
[10] /home/ben/.local/share/applications/Godot_v4.0-beta5_linux.x86_64() [0x402f792] (??:0)
[11] /home/ben/.local/share/applications/Godot_v4.0-beta5_linux.x86_64() [0x4042599] (??:0)
[12] /home/ben/.local/share/applications/Godot_v4.0-beta5_linux.x86_64() [0x408f11f] (??:0)
[13] /home/ben/.local/share/applications/Godot_v4.0-beta5_linux.x86_64() [0x4318146] (??:0)
[14] /home/ben/.local/share/applications/Godot_v4.0-beta5_linux.x86_64() [0xd9dd29] (??:0)
[15] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f150ea29d90] (??:0)
[16] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f150ea29e40] (??:0)
[17] /home/ben/.local/share/applications/Godot_v4.0-beta5_linux.x86_64() [0xdbe18e] (??:0)
-- END OF BACKTRACE --
================================================================
[1]    30336 IOT instruction (core dumped)  ~/.local/share/applications/Godot_v4.0-beta5_linux.x86_64 project.godot

(I've also made an issue on the main Godot repo because I wasn't totally sure where the problem might be)

Steps to reproduce

  1. Unzip the provided project files
  2. Copy contents of godot-extension-webrtc/lib to ~/.local/share/lib
  3. Attempt to open project with Godot 4.0 beta 5

Minimal reproduction project

webrtc_signaling_w_extension.zip

akien-mga commented 1 year ago

v1.0.0-beta4 is compatible with Godot 4.0-beta4. There hasn't been a release compatible with beta5 yet.

Faless commented 1 year ago

Released 1.0.0-beta5