mimic-sussex / sema

Sema – A Playground for Live Coding Music and Machine Learning
https://sema.codes
MIT License
151 stars 51 forks source link

Tutorial – Uncaught (in promise) Error: Error removing Learner from Engine: #269

Open frantic0 opened 3 years ago

frantic0 commented 3 years ago

Some tutorial layouts do not have the 'id' property on the data property. This is a mandatory feature.

frantic0 commented 3 years ago

More diagnostics after testing different scenarios

  1. When transitioning between tutorials with Learners, there is ONE occurrence of the error. There is also anomalous behaviour creating two Learners after the transition.

  2. When reloading the page in tutorial with a learner, there are TWO occurrences of the error.

  3. When transitioning from a playground with a learner to a tutorial with a learner

frantic0 commented 3 years ago

One problem is that svelte-grid is refreshing the items collection more than once.

There are instances of asynchronously initialized Learners colliding, and the signal engine isn't managing them well.

The first action should be to eliminate artefacts introduced by svelte-grid items collection refreshing to understand the bug better.

Alternative might include re-utilizing the Learners by detaching them from Learner Editor