Skip to content

neutral-ception (issues with recursive polling) #497

Description

@carmichaelong

Generally, need to review recursive polling and clean up some of the logic (e.g., clear previous timeouts, ensure a delay, add a flag for current polling)

One specific case: Intermittent issue (more often with weaker wi-fi) when loading Session page, it will continue to load the same neutral trial over and over again (with a new entry each time).

GUI populating infinite neutral trials:
Image

Call stack:

[Vue warn]: Duplicate keys detected: '7aff1a9a-8040-40bd-947d-b71f1e109455'. This may cause an update error.

found in

---> <Session> at src/components/pages/Session.vue
       <VMain>
         <VApp>
           <App> at src/App.vue
             <Root> 10 vue.runtime.esm.js:4625:1
    VueJS 28
        warn
        checkDuplicateKeys
        updateChildren
        patchVnode
        updateChildren
        patchVnode
        updateChildren
        patchVnode
        updateChildren
        patchVnode
        updateChildren
        patchVnode
        updateChildren
        patchVnode
        patch
        _update
        updateComponent
        get
        run
        flushSchedulerQueue
        nextTick
        flushCallbacks
    (Async: promise callback)
        timerFunc
        nextTick
        queueWatcher
        update
        notify
        mutator
    addTrial data.js:275
    wrappedMutationHandler vuex.esm.js:844
    commitIterator vuex.esm.js:466
    commit vuex.esm.js:465
    _withCommit vuex.esm.js:624
    commit vuex.esm.js:464
    boundCommit vuex.esm.js:409
    commit vuex.esm.js:796
    mappedMutation vuex.esm.js:995
    trialsPoll Session.vue:1831
    trialsPoll Session.vue:1828
    startTrialsPoll Session.vue:1822
    trialsPoll Session.vue:1840
    startTrialsPoll Session.vue:1822
    trialsPoll Session.vue:1840
    startTrialsPoll Session.vue:1822
    trialsPoll Session.vue:1840
    startTrialsPoll Session.vue:1822
    trialsPoll Session.vue:1840
    startTrialsPoll Session.vue:1822
    trialsPoll Session.vue:1840

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions