Here is the use scenario.
I have subscribed to a collection that only publishes certain fields from that collection. It is to cut down on network traffic.
If an insert is done on that collection with more fields than the publish is publishing to subscription, I get a crash loop in my WebApp.
I have also attempted to do this through a Meteor.method to see if I could work around this issue. It seems to not matter where this is coming from. Same issue occurs.
Anyone run into this?
I tried this from another WebClient as well and it will remotely crash the WebApp as well.
My guess is minimongo is expecting arrays or objects of certain length based on the initial subscription. When you insert something new into database then it freaks out, basically.
More info available:
This seems to be happening when having reactive data displayed. This is angular2 app, btw. Also, I tried to just insert the items being published. This also crashed the app. If I DO NOT restrict the amount of fields being published, this error does not occur.
Exception in queued task: TypeError: Cannot read property 'splice' of null at MongoCursorObserver._addAt (http://localhost:3000/packages/urigo_angular2-meteor.js?hash=7d95b1ebce5a649c724785bbd87a1b915643048e:264:31) at Object.addedAt (http://localhost:3000/packages/urigo_angular2-meteor.js?hash=7d95b1ebce5a649c724785bbd87a1b915643048e:236:47) at addedBefore (http://localhost:3000/packages/minimongo.js?hash=88217d643bc16fdf3505c6d4b2b8f5ddc400c49a:3699:28) at Object.addedBefore (http://localhost:3000/packages/minimongo.js?hash=88217d643bc16fdf3505c6d4b2b8f5ddc400c49a:3636:56) at http://localhost:3000/packages/minimongo.js?hash=88217d643bc16fdf3505c6d4b2b8f5ddc400c49a:410:13 at runTask (http://localhost:3000/packages/meteor.js?hash=ae8b8affa9680bf9720bd8f7fa112f13a62f71c3:721:11) at flush (http://localhost:3000/packages/meteor.js?hash=ae8b8affa9680bf9720bd8f7fa112f13a62f71c3:749:10) at drain (http://localhost:3000/packages/meteor.js?hash=ae8b8affa9680bf9720bd8f7fa112f13a62f71c3:757:12) at LocalCollection.insert (http://localhost:3000/packages/minimongo.js?hash=88217d643bc16fdf3505c6d4b2b8f5ddc400c49a:619:22) at Object.update (http://localhost:3000/packages/mongo.js?hash=ed0b13aca2f180af120dd0cfdba64ac79e2a624f:241:30)