OSC streaming - data transfer not happening

Post Reply
jawasthi
Posts: 4
Joined: Fri Dec 09, 2022 6:22 pm

OSC streaming - data transfer not happening

Post by jawasthi »

Hi. Thank you very much for creating such a wonderful app and sharing the python scripts. I have made sure that I am using the correct ip in the app settings, and the app says "OSC Streaming to x.x.x.x:5000" . The python script is running on my MacBook displaying a message "Listening on UDP port 5000", but data is not being received. I will really appreciate help on this. Thanks a lot.
User avatar
James
Site Admin
Posts: 1110
Joined: Wed Jan 02, 2013 9:06 pm

Re: OSC streaming - data transfer not happening

Post by James »

Make sure you have opened a firewall rule to allow UDP traffic over port 5000. To test, disable the firewall temporarily.
jawasthi
Posts: 4
Joined: Fri Dec 09, 2022 6:22 pm

Re: OSC streaming - data transfer not happening

Post by jawasthi »

Thanks for prompt response. The firewall has been completely disabled to begin with.
dusan
Posts: 5
Joined: Fri Dec 09, 2022 3:29 am

Re: OSC streaming - data transfer not happening

Post by dusan »

I guess you are on same Wifi :-)
I made it running on MuseLab. Check your MBP Console logs. It should report incoming packets.
Sometime I need to reenable streaming if stuck.
User avatar
James
Site Admin
Posts: 1110
Joined: Wed Jan 02, 2013 9:06 pm

Re: OSC streaming - data transfer not happening

Post by James »

Check your python script is listening on the correct IP. You should be able to listen on "0.0.0.0" which will listen on all interfaces, but you can also try 127.0.0.1 (local loopback) or the actual IP.
jawasthi
Posts: 4
Joined: Fri Dec 09, 2022 6:22 pm

Re: OSC streaming - data transfer not happening

Post by jawasthi »

Thank you, the data transfer is happening today when I run the simple receiver file, I am not sure what the problem was yesterday . However, when I am running the file with the audio feedback I am getting the following errors:

UserWarning: Starting a Matplotlib GUI outside of the main thread will likely fail.
ani = FuncAnimation(plt.gcf(), plot_update, interval=100)
2022-12-10 19:07:26.911 Python[38169:6371195] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff8104fde9b __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff81025fe48 objc_exception_throw + 48
2 CoreFoundation 0x00007ff8105268c6 -[NSException raise] + 9
3 AppKit 0x00007ff812e1a0a4 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 321
4 AppKit 0x00007ff812e06054 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1288
5 AppKit 0x00007ff812e05b46 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
6 _macosx.cpython-311-darwin.so 0x00000001117e8c2e -[Window initWithContentRect:styleMask:backing:defer:withManager:] + 62
7 _macosx.cpython-311-darwin.so 0x00000001117ec3f0 FigureManager_init + 256
8 Python 0x000000010a4c4dbc wrap_init + 12
9 Python 0x000000010a446190 wrapperdescr_call + 416
10 Python 0x000000010a436841 _PyObject_MakeTpCall + 129
11 Python 0x000000010a5645c7 _PyEval_EvalFrameDefault + 60471
12 Python 0x000000010a56a690 _PyEval_Vector + 128
13 Python 0x000000010a436b00 _PyObject_FastCallDictTstate + 96
14 Python 0x000000010a4c4bf5 slot_tp_init + 181
15 Python 0x000000010a4bad9a type_call + 122
16 Python 0x000000010a436841 _PyObject_MakeTpCall + 129
17 Python 0x000000010a5645c7 _PyEval_EvalFrameDefault + 60471
18 Python 0x000000010a56a690 _PyEval_Vector + 128
19 Python 0x000000010a43ac3e method_vectorcall + 334
20 Python 0x000000010a437408 _PyVectorcall_Call + 120
21 Python 0x000000010a56770a _PyEval_EvalFrameDefault + 73082
22 Python 0x000000010a56a690 _PyEval_Vector + 128
23 Python 0x000000010a437408 _PyVectorcall_Call + 120
24 Python 0x000000010a56770a _PyEval_EvalFrameDefault + 73082
25 Python 0x000000010a56a690 _PyEval_Vector + 128
26 Python 0x000000010a56770a _PyEval_EvalFrameDefault + 73082
27 Python 0x000000010a56a690 _PyEval_Vector + 128
28 Python 0x000000010a56770a _PyEval_EvalFrameDefault + 73082
29 Python 0x000000010a56a690 _PyEval_Vector + 128
30 Python 0x000000010a43acb6 method_vectorcall + 454
31 Python 0x000000010a672cf6 thread_run + 230
32 Python 0x000000010a5ee154 pythread_wrapper + 36
33 libsystem_pthread.dylib 0x00007ff8103bd4e1 _pthread_start + 125
34 libsystem_pthread.dylib 0x00007ff8103b8f6b thread_start + 15
)
libc++abi: terminating with uncaught exception of type NSException

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

-----------------------------------------------------------------------------------------------------------

Thanks in advance for your help
jawasthi
Posts: 4
Joined: Fri Dec 09, 2022 6:22 pm

Re: OSC streaming - data transfer not happening

Post by jawasthi »

The above was using PyCharm. I tried running it using the Jupyter Notebook and the code is running with the following warning and it is not displaying any graph, just outputting the fit of the sensors:

/Users/jitendra/miniconda3/envs/py39_afni_tiny/lib/python3.9/site-packages/matplotlib/animation.py:889: UserWarning: Animation was deleted without rendering anything. This is most likely not intended. To prevent deletion, assign the Animation to a variable, e.g. `anim`, that exists until you have outputted the Animation using `plt.show()` or `anim.save()`.
warnings.warn(

Muse Fit Bad on: Left Ear. Left Forehead. Right Forehead. Right Ear.
Muse Fit Bad on: Left Ear. Right Ear.
Muse Fit Good
Muse Fit Bad on: Left Ear. Right Ear.
Muse Fit Good
Muse Fit Bad on: Left Ear. Right Ear.
Muse Fit Bad on: Left Ear.
Muse Fit Bad on: Left Ear. Right Ear.
Muse Fit Bad on: Right Ear.
Muse Fit Good
Post Reply