intheon / stream_viewer

Real-time visualization of streaming data
MIT License
23 stars 9 forks source link

only lsl_viewer not working (IndexError: list index out of range) #1

Closed celestiegladys closed 1 year ago

celestiegladys commented 1 year ago

only lsl_viewer isnt working other application works fine, it flashes somthing on the scressn and then closes. it worked the first time i tried , i could see but idk why it isnt working the next time I tried to run the error is

traceback (most recent call last): File "C:\Users\jetslab\AppData\Local\Programs\Python\Python310\Lib\site-packages\stream_viewer\applications\main.py", line 370, in main() File "C:\Users\jetslab\AppData\Local\Programs\Python\Python310\Lib\site-packages\stream_viewer\applications\main.py", line 358, in main window = LSLViewer(**args.dict) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\jetslab\AppData\Local\Programs\Python\Python310\Lib\site-packages\stream_viewer\applications\main.py", line 87, in init self.restoreOnStartup() File "C:\Users\jetslab\AppData\Local\Programs\Python\Python310\Lib\site-packages\stream_viewer\applications\main.py", line 166, in restoreOnStartup self.on_stream_activated(data_sources, renderer_name=rend_name, renderer_kwargs=rend_kwargs) File "C:\Users\jetslab\AppData\Local\Programs\Python\Python310\Lib\site-packages\stream_viewer\applications\main.py", line 276, in on_stream_activated src_id = json.loads(sources[0].identifier)


IndexError: list index out of range
cboulay commented 1 year ago

When you exit stream_viewer, it attempts to save the current state then it will automatically reload it on the next run. Unfortunately, this turned out to be much buggier than I thought.

Please delete your $HOME/.stream_viewer directory and try again.