Page 1 of 1

Undo/Redo freeze sometimes

Posted: Wed Nov 10, 2021 9:38 am
by takafumi ohtake

When I'm using undo/redo feature of bryntum gantt, I face an error sometimes then undo/redo doesn't work anymore.

An error is shown in browser's console.

gantt.module.js?454302:13 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'get')
    at _0x305c19.equality (gantt.module.js?454302:13)
    at EngineTransaction.onQuarkCalculationCompleted (gantt.module.js?454302:13)
    at EngineTransaction.calculateTransitionsStackGen (gantt.module.js?454302:13)
    at Generator.next (<anonymous>)
    at EngineTransaction.calculateTransitions (gantt.module.js?454302:13)
    at Generator.next (<anonymous>)
    at runGeneratorAsyncWithEffect (gantt.module.js?454302:13)
    at gantt.module.js?454302:13

It's reproduced at your demo site.

Freeze-undo-redo.mp4
(1.69 MiB) Downloaded 84 times

I think this is a bug of bryntum gantt.
I hope it will be fixed.


Re: Undo/Redo freeze sometimes

Posted: Wed Nov 10, 2021 10:21 am
by alex.l

Reproduced, here is a ticket: https://github.com/bryntum/support/issues/3698
Looks like a race condition bug, it should finish calculations on background, so we will maybe block those buttons before all done.
Thanks you for clear instructions!


Re: Undo/Redo freeze sometimes

Posted: Wed Nov 30, 2022 9:00 am
by nickolay

@takafumi Hi, can you please try to reproduce this issue in the latest online examples? https://bryntum.com/products/gantt/examples/advanced/

Looks like it has been already fixed.


Re: Undo/Redo freeze sometimes

Posted: Wed Nov 30, 2022 9:35 am
by takafumi ohtake

Hi nickolay,

Thank you for letting me know.
I checked it.
Yes. I couldn't reproduce the issue in the demo site and our product anymore.

Thank you for fixing it😄