Closed qdot closed 5 years ago
Seems to only be happening with Lovense devices. Using
https://nodejs.org/en/docs/guides/simple-profiling/
Doesn't show much, but connecting to a Launch doesn't cause the spike. However, I do get
(node:62028) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 write listeners added. Use emitter.setMaxListeners() to increase limit
which is not good.
We were handling notifications completely incorrectly on all platforms, but Mac was were it really cropped up. Changed to using notification events correctly, things now work on all platforms.
STR:
Expected:
Things are ok
Actual:
Macbook pro tries to light itself on fire, node process shows 160% CPU utilization