kowalej / BlueMuse

Windows 10 app to stream data from Muse EEG headsets via LSL (Lab Streaming Layer).
GNU General Public License v3.0
191 stars 33 forks source link

Application exits (closes) as soon as I press start streaming #53

Open Zibri opened 2 years ago

Zibri commented 2 years ago

I also enabled the experimental always pair in the settings. It pairs and gets battery status and device name. image image

kowalej commented 2 years ago

Post your log. You can find log locations in the settings menu. Sometimes this will be helpful, but unfortunately this type of issue is somewhat common and there's some Bluetooth hardware issue that I can't debug.

Zibri commented 2 years ago

In the last test it detected it as Muse 2016

Zibri commented 2 years ago

2022-03-21 19:34:15.466 [Information] BlueMuse started. 2022-03-21 19:36:27.194 [Error] BlueMuse unhandled exception. System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17 at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb at BlueMuse.Bluetooth.BluetoothManager.d28.MoveNext() + 0xf9 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17 at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb at BlueMuse.Bluetooth.BluetoothManager.d30.MoveNext() + 0x12e --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__7_0(Object) + 0x1e at System.Action`1.Invoke(T) + 0x28 at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x33

kowalej commented 2 years ago

Access is denied. seen this before from other users, not sure how to help. If you are using Bluetooth dongle, I'd try a different one, other than that I don't have much to offer.

Zibri commented 2 years ago

It has nothing to do with bluetooth. The connection with the device works. It's the program not able to create the streaming. As a matter of fact this test application works perfectly: https://muse-eeg-app.firebaseapp.com/ image