-
Notifications
You must be signed in to change notification settings - Fork 43
Muse LSL Bridge Randomly Disconnects and Stops #71
Description
Hello, I've been using the Muse 2 (model Muse-CC86), but I'm experiencing an issue where the LSL Bridge randomly stops. The disconnection can happen anywhere between 1 minute - 30 minutes or more. I checked the logs, and it throws an exception. Here are the logs in case they are useful (in this case it lasted almost 30 minutes without error):
2025-02-06 09:31:38.473 [Information] BlueMuse started.
2025-02-06 09:50:29.584 [Information] BlueMuse started.
2025-02-06 10:03:12.864 [Information] BlueMuse started.
2025-02-06 10:31:32.332 [Error] Exception during toggle stream (start=False). Exception message: A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E).
System.InvalidOperationException: A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E)
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 BlueMuse.MuseManagement.Muse.d__102.MoveNext() + 0xd6
--- 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.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() + 0xf
at BlueMuse.MuseManagement.Muse.d__95.MoveNext() + 0x140
2025-02-06 10:56:24.556 [Information] BlueMuse started.
2025-02-06 10:56:34.932 [Error] Exception during handling EEG Blueooth channel values.
System.ArgumentException: An item with the same key has already been added. Key: 273e0004-4c4d-454d-96be-f03bac821358
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object) + 0x11
at System.Collections.Generic.Dictionary`2.TryInsert(TKey, TValue, InsertionBehavior) + 0x267
at BlueMuse.MuseManagement.Muse.<EEGChannel_ValueChanged>d__117.MoveNext() + 0x797
2025-02-06 10:56:35.830 [Error] Exception during handling EEG Blueooth channel values.
System.ArgumentException: An item with the same key has already been added. Key: 273e0003-4c4d-454d-96be-f03bac821358
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object) + 0x11
at System.Collections.Generic.Dictionary`2.TryInsert(TKey, TValue, InsertionBehavior) + 0x267
at BlueMuse.MuseManagement.Muse.<EEGChannel_ValueChanged>d__117.MoveNext() + 0x797
2025-02-06 10:56:38.936 [Error] Exception during handling EEG Blueooth channel values.
System.ArgumentException: An item with the same key has already been added. Key: 273e0006-4c4d-454d-96be-f03bac821358
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object) + 0x11
at System.Collections.Generic.Dictionary`2.TryInsert(TKey, TValue, InsertionBehavior) + 0x267
at BlueMuse.MuseManagement.Muse.<EEGChannel_ValueChanged>d__117.MoveNext() + 0x797
2025-02-06 10:56:39.190 [Error] Exception during handling EEG Blueooth channel values.
System.ArgumentException: An item with the same key has already been added. Key: 273e0006-4c4d-454d-96be-f03bac821358
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object) + 0x11
at System.Collections.Generic.Dictionary`2.TryInsert(TKey, TValue, InsertionBehavior) + 0x267
at BlueMuse.MuseManagement.Muse.<EEGChannel_ValueChanged>d__117.MoveNext() + 0x797
2025-02-06 10:56:39.506 [Error] Exception during handling EEG Blueooth channel values.
System.ArgumentException: An item with the same key has already been added. Key: 273e0007-4c4d-454d-96be-f03bac821358
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object) + 0x11
at System.Collections.Generic.Dictionary`2.TryInsert(TKey, TValue, InsertionBehavior) + 0x267
at BlueMuse.MuseManagement.Muse.<EEGChannel_ValueChanged>d__117.MoveNext() + 0x797
2025-02-06 10:56:40.405 [Error] Exception during handling EEG Blueooth channel values.
System.ArgumentException: An item with the same key has already been added. Key: 273e0007-4c4d-454d-96be-f03bac821358
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object) + 0x11
at System.Collections.Generic.Dictionary`2.TryInsert(TKey, TValue, InsertionBehavior) + 0x267
at BlueMuse.MuseManagement.Muse.<EEGChannel_ValueChanged>d__117.MoveNext() + 0x797
2025-02-06 10:56:46.435 [Error] Exception during handling EEG Blueooth channel values.
System.ArgumentException: An item with the same key has already been added. Key: 273e0006-4c4d-454d-96be-f03bac821358
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object) + 0x11
at System.Collections.Generic.Dictionary`2.TryInsert(TKey, TValue, InsertionBehavior) + 0x267
at BlueMuse.MuseManagement.Muse.<EEGChannel_ValueChanged>d__117.MoveNext() + 0x797
2025-02-06 10:56:51.056 [Error] Exception during handling EEG Blueooth channel values.
System.ArgumentException: An item with the same key has already been added. Key: 273e0003-4c4d-454d-96be-f03bac821358
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object) + 0x11
at System.Collections.Generic.Dictionary`2.TryInsert(TKey, TValue, InsertionBehavior) + 0x267
at BlueMuse.MuseManagement.Muse.<EEGChannel_ValueChanged>d__117.MoveNext() + 0x797
2025-02-06 10:58:37.017 [Error] Exception during toggle stream (start=False). Exception message: A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E).
System.InvalidOperationException: A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E)
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 BlueMuse.MuseManagement.Muse.d__102.MoveNext() + 0xd6
--- 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.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() + 0xf
at BlueMuse.MuseManagement.Muse.d__95.MoveNext() + 0x140
2025-02-06 10:58:37.028 [Error] Exception during toggle stream (start=False). Exception message: A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E).
System.InvalidOperationException: A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E)
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 BlueMuse.MuseManagement.Muse.d__102.MoveNext() + 0xd6
--- 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.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() + 0xf
at BlueMuse.MuseManagement.Muse.d__95.MoveNext() + 0x140
2025-02-06 10:59:26.110 [Error] Exception during handling EEG Blueooth channel values.
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion() + 0x2d
at System.Collections.Generic.Dictionary2.Enumerator.MoveNext() + 0x1f at System.Collections.Generic.Dictionary2.Enumerator.MoveNext() + 0x34
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() + 0x6e at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1, Int32&) + 0xe8
at BlueMuse!+0x75e488
at BlueMuse.MuseManagement.Muse.<EEGChannel_ValueChanged>d__117.MoveNext() + 0x653
2025-02-06 11:01:17.537 [Error] Exception during handling EEG Blueooth channel values.
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion() + 0x2d
at System.Collections.Generic.Dictionary2.Enumerator.MoveNext() + 0x1f at System.Collections.Generic.Dictionary2.Enumerator.MoveNext() + 0x34
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() + 0x6e at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1, Int32&) + 0xe8
at BlueMuse!+0x75e488
at BlueMuse.MuseManagement.Muse.<EEGChannel_ValueChanged>d__117.MoveNext() + 0x653
2025-02-06 11:05:58.906 [Error] Exception during toggle stream (start=False). Exception message: A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E).
System.InvalidOperationException: A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E)
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 BlueMuse.MuseManagement.Muse.d__102.MoveNext() + 0xd6
--- 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.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() + 0xf
at BlueMuse.MuseManagement.Muse.d__95.MoveNext() + 0x140