buresu / ndi-python

NewTek NDI Python wrapper
MIT License
133 stars 30 forks source link

Inspecting some NDI instance variables makes program close #5

Open Tomas1337 opened 3 years ago

Tomas1337 commented 3 years ago

I've come across this problem several times while developing an application but i've always just let it pass since it's a debug problem. I'll open this issue since its becoming more prevalent:

Example: source_object = ndi.Source() source_object.ndi_name = ndi_name print(source_object.url_address)

Expected Behavior: print(source_object.url_address) should print None or output an error

Actual Behavior: Exits the application immediately When debugging using VS Code and PTVSD, Server[1] closes unexpectedly

rawbengal commented 3 years ago

I just ran into this as well. For some instance variables NULL is a legitimate value and you should be able to set/get them. e.g. p_groups, ndi_name

tgentry1986 commented 3 years ago

hey @rawbengal and @Tomas1337 im wondering if this is similar behavior to what im seeing (see the latest issue that ive posted)...

No matter what i do i cant get the data from an NDI audio frame, though i could just be doing something very wrong!

Driving me a bit nuts as its the last part of a project i need to get working :)

Any assistance greatly appreciated!

buresu commented 2 years ago

Hi, sorry for late reply. I confirmed the problem and reproduced it. I will try fix it.

buresu commented 2 years ago

I added a fix at 956379f89f1f5f8ccc180604a3ac0044df331d3e Since ndi_name is type string, it returns empty string if it is empty.