Meteor throws exception: Exception from Tracker re

2019-08-26 02:37发布

问题:

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.