Meteor throws exception: Exception from Tracker recompute function: too much recursion

守給你的承諾、 提交于 2020-01-06 14:00:42

问题


I have a recursive template in a Meteor application that builds tree structure with unlimited levels. The template works ok with small trees but when I test application on real data with many tree levels then I get the following two exceptions in console and no part of the tree gets rendered:

> Exception from Tracker recompute function: Node was not found
> meteor....3d493c5 (line 883)
> 
> Exception from Tracker recompute function: too much recursion
> _.forEach@http://localhost:3000/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:156:7
> ClassHandler<.parseValue@http://localhost:3000/packages/blaze.js?77c0809654ee3a10dcd5a4f961fb1437e7957d33:1115:5
> DiffingAttributeHandler<.update@http://localhost:3000/packages/blaze.js?77c0809654ee3a10dcd5a4f961fb1437e7957d33:1084:9
> etc. This is a very long stack

I'm not sure what "Node was not found" exception is about. I added it to the post because it seems to be related to the next one, which makes more sense. Is there a way to fix this?

UPDATE:

The amount of levels is actually not very large - the deepest branch is less than 10 levels. Also, I just noticed that the tree does get rendered in Chrome. The browser I see bug in is IceWeasel/Firefox 32.1.0 on Debian Linux.

来源:https://stackoverflow.com/questions/27364206/meteor-throws-exception-exception-from-tracker-recompute-function-too-much-rec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!