I'm unable to get it to work on Linux amd64, it segfaults when it exits.
reproducable code
import wrtc from "@roamhq/wrtc";
const conn = new wrtc.RTCPeerConnection();
conn.close();
that you can test with docker
docker run -v $PWD:/src node:18 /bin/sh -c 'cd /src && npm ci && node ./index.js'
here goes the gdb trace from inside docker
#0 0x0000000000d70503 in v8::HandleScope::HandleScope(v8::Isolate*) ()
#1 0x0000000000b59ee3 in node::ThreadPoolWork::ScheduleWork()::{lambda(uv_work_s*, int)#2}::_FUN(uv_work_s*, int) ()
#2 0x000000000166cb2d in uv__work_done (handle=0x532e650 <default_loop_struct+176>)
at ../deps/uv/src/threadpool.c:318
#3 0x0000000001671316 in uv__async_io (loop=0x532e5a0 <default_loop_struct>, w=<optimized out>,
events=<optimized out>) at ../deps/uv/src/unix/async.c:163
#4 0x0000000001683854 in uv__io_poll (loop=loop@entry=0x532e5a0 <default_loop_struct>,
timeout=<optimized out>) at ../deps/uv/src/unix/epoll.c:374
#5 0x0000000001671c7e in uv_run (loop=0x532e5a0 <default_loop_struct>, mode=UV_RUN_ONCE)
at ../deps/uv/src/unix/core.c:406
#6 0x0000000000b190e0 in node::Environment::CleanupHandles() ()
#7 0x0000000000b191ac in node::Environment::RunCleanup() ()
#8 0x0000000000ad4f4a in node::FreeEnvironment(node::Environment*) ()
#9 0x0000000000bdb7ad in node::NodeMainInstance::Run() ()
#10 0x0000000000b4dab8 in node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) ()
#11 0x0000000000b5161f in node::Start(int, char**) ()
it is probably the same issue as in node-webrtc#636; I was unable to build on linux (some missing linked symbols at loadtime) so it'll be hard for me to contribute but tell me if you need more info.
I'm unable to get it to work on Linux amd64, it segfaults when it exits.
reproducable code
that you can test with docker
docker run -v $PWD:/src node:18 /bin/sh -c 'cd /src && npm ci && node ./index.js'here goes the gdb trace from inside docker
it is probably the same issue as in node-webrtc#636; I was unable to build on linux (some missing linked symbols at loadtime) so it'll be hard for me to contribute but tell me if you need more info.