alezanai / kvs-parser

Kinesis Video Stream Parser Library in Node.js
GNU General Public License v3.0
3 stars 1 forks source link

Error: Module did not self-register #19

Closed dharmik-dalwadi-seaflux closed 2 years ago

dharmik-dalwadi-seaflux commented 2 years ago

Sub issue of #17

Actual

Error

Aerostat Beam Coder  Copyright (C) 2019  Streampunk Media Ltd
GPL v3.0 or later license. This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. Conditions and warranty at:
https://github.com/Streampunk/beamcoder/blob/master/LICENSE
  Uncaught exception in test/iframe-stream.js

  Error: Module did not self-register: '/home/dharmik/Documents/Projects/klap/kvs-parser/node_modules/segfault-handler/build/Release/segfault-handler.node'.

  › bindings (node_modules/bindings/bindings.js:112:48)
  › Object.<anonymous> (node_modules/segfault-handler/index.js:3:37)

  ✖ test/iframe-stream.js exited with a non-zero exit code: 1
  ✔ kvs-stream › KvsStream
Using FFmpeg version 4.3.2-0+deb11u1ubuntu1
  ✔ fragment-stream › FragmentTracks order (209ms)
  ✔ fragment-stream › FragmentTags (210ms)
  ✔ fragment-stream › FragmentTracks (209ms)
  ✔ frame-stream › FrameObjectCount (1.1s)
  ✔ frame-stream › FrameObject (1.1s)
  ─

  6 tests passed
  1 uncaught exception
npm ERR! Test failed.  See above for more details.

Expected

piercus commented 2 years ago

@dharmik-dalwadi-seaflux i feel you are not reproducing each time.

Can you tell me,

dharmik-dalwadi-seaflux commented 2 years ago

@piercus

piercus commented 2 years ago

Have you tried to change your node version ?

piercus commented 2 years ago

are you reproducing when you do ava test/iframe-stream.js only ?

dharmik-dalwadi-seaflux commented 2 years ago

@piercus, I have tried with node version v14.90.0 but still got the same error.

piercus commented 2 years ago

Are you able to reproduce this when you do :

dharmik-dalwadi-seaflux commented 2 years ago

@piercus Yes it's reproducing in both the scenarios

piercus commented 2 years ago

I feel 2 test files are interfering with each other, please find wich ones

piercus commented 2 years ago

@dharmik-dalwadi-seaflux i think this issue is related to an incompatibility between beamcoder and ava cli. Anyway, the easy workaround is to put iframe-stream.js into frame-stream.js so the problem is fixed now.

Pleae check on your side and open a PR for this