Our state of the art Gantt chart


Post by SIM-LTD »

Hi,

We cannot run the new release Gantt 1.1.5 since the is a crash whenever the metho "removeAll()" is used.

Indeed, we just installed the new release and when running the application the Gantt crashes.
We have highlighted that the crash occurs when
gantt.taskStore.removeAll();
is call.

We have to get back to the previous release 1.1.4.

To reproduce it simply go to the online demo ( https://www.bryntum.com/examples/gantt/baselines/ ) and add the code line below, in order to clear up the taskStore (look at the screenshot) :
   gantt.taskStore.removeAll();
Once the crash occurs the Gantt cannot be displayed.
Attachments
Capture d’écran 2019-09-09 à 16.23.09.png
Capture d’écran 2019-09-09 à 16.23.09.png (149.16 KiB) Viewed 1463 times
Capture d’écran 2019-09-09 à 17.26.52.png
Capture d’écran 2019-09-09 à 17.26.52.png (196.77 KiB) Viewed 1463 times

Post by mats »

Works fine for me! Try clearing your cache?

Post by SIM-LTD »

Hi

Sorry to insist (you're getting to know us a bit :) ) BUT no matter the Browser (cache cleared up); But once the method "removeAll" is used there is this issue.

As you could see our previous screenshot and the new one herewith, there is an issue with the method "slice"
We tried with all browser and simply added the code "gantt.taskStore.removeAll()" the issue is still happening.

Maybe you still have the Gantt 1.1.4, for which there is no problem at all!
BUT with Gantt 1.1.5 it crashes.
Attachments
Capture d’écran 2019-09-09 à 17.52.58.png
Capture d’écran 2019-09-09 à 17.52.58.png (208.71 KiB) Viewed 1460 times
Capture d’écran 2019-09-09 à 17.54.34.png
Capture d’écran 2019-09-09 à 17.54.34.png (194.08 KiB) Viewed 1460 times

Post by mats »

Calling removeAll immediately after load makes no sense. Try doing it on the console after the data has loaded, it works fine no? We'll investigate this still under https://app.assembla.com/spaces/bryntum/tickets/9200-crash-if-calling-removeall-after-gantt-creation/details#

Post by SIM-LTD »

Hi

It may not make sense if you think small (if you deal with one Gantt) :D
But think this way: Let's image you have a list of Gantt (listed in a Combo) when you select one Gantt it appears and it's loaded.
Then you can select one Gantt and a few seconds later you can select another Gantt. This makes more sense, isn't it!

The point is with the previous Release 1.1.4 (and all the previous one) we did not have any issue at all.

The issue pops up in this last release 1.1.5 when trying to load the Gantt by clearing it before, the overall GanttChart crashes.

As the screenshot shows, there is an issue either in the method :
1) ProjectModel.clear() (we do not use this in our source) but we have gantt.taskStore.data = []
OR
2) taskStore.removeAll()

We may have pointed out the wrong method, but for sure one of this method got an issue in that new release, given that the error message mentions clearly
..cannot read property 'slice' of undefined..
(The first screenshot come from your online demo. the Second comes from our dev)

Maybe if you could just have a glance at these 2 methods you'll find something that has been changed in that release which is causing this issue. (We just wanna help :D )
Attachments
Capture d’écran 2019-09-09 à 17.52.58.png
Capture d’écran 2019-09-09 à 17.52.58.png (208.71 KiB) Viewed 1455 times
Capture d’écran 2019-09-09 à 16.23.09.png
Capture d’écran 2019-09-09 à 16.23.09.png (149.16 KiB) Viewed 1455 times

Post by SIM-LTD »

Hi

Just want to let you know that the nightlies Build release Sept. 15th. fixed the issue

Thank you for your understanding.

Post Reply