Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting an error when doing ArtPollReply #1

Open
kellertobias opened this issue Aug 22, 2021 · 2 comments
Open

I am getting an error when doing ArtPollReply #1

kellertobias opened this issue Aug 22, 2021 · 2 comments

Comments

@kellertobias
Copy link

kellertobias commented Aug 22, 2021

See: kellertobias/artnet-to-obs#5

130359534-4c9cf5d0-95b1-43d2-9629-b6b8a2146fb0

This might be i one of the following:

        const ipParts = this.ipAddress.split('.');
        const bindIpParts = this.bindIp.split('.');

in https://github.com/jeffreykog/node-artnet-protocol/blob/70129088438ef6f7e88cbdcca0e000240568e6f8/lib/protocol.ts

@kellertobias
Copy link
Author

I found out how to reproduce the error:

  • I have your library as an ArtNet receiver, listening on all Interfaces on my PC
  • I run a tool called ArtNetominator
  • when opening or closing ArtNetominator, the above error happens.

it's the line this.ipAddress.split(...) where this.ipAddress is undefined.

TypeError: Cannot read property 'split' of undefined
    at ArtPollReply.encode (C:\Users\olive\Downloads\artnet-to-obs-2021-08-22-08-55-01\artnet-to-obs-2021-08-22-08-55-01\.webpack\main\index.js:691:44)

@jxnxsdev
Copy link

Same Issue here. This seems to only be the case if a program is already listening on port 6454. When i close MagicQ this error disappears. Adding the following code as in the screenshot fixes the issue and lets you run the libary in receiving mode without issues.
Maybe related or not but i am able to receive 2 artnet packets fine, then the error occurs.

grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants