After more troubleshooting, I’ve found I can duplicate the “RangeError: Maximum call stack size exceeded” error (that’s the error in chrome…firefox is different) by pasting this filter into the advanced search of tiddlywiki.com:
[{$:/core}splitregexp[]count[]]
In @Springer’s wiki, the wikification of $:/plugins/kookma/shiraz
effectively results in the following filter being evaluated: [{$:/plugins/kookma/shiraz}splitregexp[]]
. I don’t know the exact reason why that happens, but I think it is reasonable to suggest that wikification of a plugin tiddler is a bad idea and should be avoided.
@Springer, IMO, your view template should only wikify the text of the tiddler if either the type is empty or the type is text/vnd.tiddlywiki
. That should reduce the chance for surprises.
This line of code is where the crash happens.
Array.prototype.push.apply(result,title.split(regExp));
In @Springer’s case, title
above is the 135KB contents of the Shiraz plugin. The call to split will split on every character, so there will be 135K arguments passed to push
. That is too many and it causes the crash.