App crashes when columnSummary is enabled in PRO 1.4.0 (but PRO 1.3.2 works fine)

Tags: #<Tag:0x00007efc623ccc00>

Hi,

I have been developing with v1.3.2 which I found a bug a few months ago (https://github.com/handsontable/handsontable/issues/3514). Since the bug is fixed, I decided to upgrade to 1.4.0 today.

After I upgrade to 1.4.0 I notice that when I enable the columnSummary feature on a large data (100+ columns, about 50 rows) grid, the app freezes and crash after a minute or so.

this is the screenshot of the app initialization using v1.3.2, just to illustrate the difference, i add a console.log message in the afterInit, afterChangesObserved, afterRender hooks



and this is v1.4.0

notice that in v1.3.2 after init, there are 94 columns’ total being calculated and triggers afterChangeObserved callback.

but with v1.4.0, the browser the column summary never gets triggered, after a minute or so, the app crashes. If I disabled the columnSummary, the app renders without any problem.

So far this is my observation, without thorough understanding of the internal of Handsontable and what changes are made between 1.3.2 and 1.4.0, it is really difficult to know what is the root cause of this problem. I will try clean up my app and post a demo in the near future. Meanwhile, if you can give me anything related I would be appreciated.

Thanks

Hi @arif.akther
If you could create a demo to illustrate the issue it will be so much easier for our devs to check what is wrong.

Hi,

I extracted this part of my angular app and put it in jsFiddle, the grid will initialize without angular just fine. Try switch the external source to v1.4.0 and up, it will most likely crash.

http://jsfiddle.net/j99L5t33/27/

Thanks,

@arif.akther
Did you tried to simplify the example? When i’m opening this demo I got few console.logs
Also please check our release notes: https://docs.handsontable.com/pro/1.7.1/tutorial-release-notes.html there wasn’t any backward incompatible changes between 1.3.2. and 1.4.0. but maybe it will provide any clues.

Hi,

I simplified my demo and narrowed the cause of the problem down to be setting columnSorting: true. And then I disabled columnSorting in my original demo and confirmed that enabling columnSorting crashes my app during grid initialization after v1.4.0.

simplified version:
http://jsfiddle.net/wuwyg0hb/1/

  1. using v.1.3.2, with columnSorting enabled
  2. using v.1.3.2 with columnSorting disabled
  3. using 1.4.0 with columnSorting disabled
  4. using 1.4.0 with columnSorting enabled
    app crashes

Hi @arif.akther
glad you found a cause of the following issue.

Thanks for keeping me updated and hope you won’t face other issues in the future, but if you would feel free to open a new issue.

Hi,

When do you think this issue will be fixed? Meanwhile, is there any workaround for this issue?

Thanks

Hi @arif.akther
surely it will be good to track this issue: https://github.com/handsontable/handsontable/issues/3597 as it refers to the same case. However there’s no fix date for this issue yet.