mpickering / eventlog2html

Visualise eventlog events as a static webpage
Other
69 stars 15 forks source link

RangeError: Maximum call stack size exceeded #166

Open adamgundry opened 1 year ago

adamgundry commented 1 year ago

When analysing a large eventlog (~425M) generated with -hi profiling, I'm seeing no Detailed table in Chrome 110.0.5481.77, and the console contains "RangeError: Maximum call stack size exceeded". Firefox 109.0.1 seems to load the table successfully though (all 1276 pages of it). I'm guessing this is an issue in the underlying table component?

Uncaught RangeError: Maximum call stack size exceeded
    at Function.oe [as find] (....eventlog.html:38:6281)
    at w.fn.init.find (....eventlog.html:38:24400)
    at HTMLTableElement.<anonymous> (....eventlog.html:59:3279)
    at Function.each (....eventlog.html:38:2573)
    at w.fn.init.each (....eventlog.html:38:1240)
    at o.fn.fancyTable (....eventlog.html:59:3122)
    at HTMLDocument.<anonymous> (....eventlog.html:3608:152286)
    at l (....eventlog.html:38:29375)
    at c (....eventlog.html:38:29677)

eventlog2html version: 0.9.2 GHC version: 9.4.4

FinleyMcIlwaine commented 1 year ago

I am seeing the same thing on a 392MB eventlog generated with -hi profiling. Specifically, profiling Haddock on the Adga codebase.

Building Haddock with the "default" (from ghcup) GHC 9.4.4 and doing a profile results in no issues. Doing the profile with a Haddock built by an IPE-enabled (default+ipe hadrian flavour) GHC 9.4.4 results in this issue. Firefox does load it successfully.

eventlog2html version: 0.10.0

jberryman commented 1 year ago

I'm getting this too, confirm firefox works for me

TeofilC commented 1 year ago

It looks like this error is being generated by the fancyTable js code. Maybe we could replace fancyTable with a different implementation that doesn't have this issue. That's probably easier than trying to patch fancyTable

jberryman commented 1 year ago

Seems like a WONTFIX in fancyTable : https://github.com/myspace-nu/jquery.fancyTable/issues/31 https://github.com/myspace-nu/jquery.fancyTable/issues/46