Hi Everyone,
We are getting ‘RangeError: Maximum call stack size exceeded’ error once in a while when we call a method that inserts and updates mongo documents. This error causes our App server to crash.
Has anyone encountered this error before? Any suggestions on how to trace it down and resolve it?
Meteor v1.4.2.3
Below is the stack trace
stack:
[ 'RangeError: Maximum call stack size exceeded',
'---------------------------------------------',
' at Object.setImmediate [as _setImmediate] (packages/meteor.js:323:14)',
' at Object._.extend.defer (packages/meteor.js:514:12)',
' at /bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:487:14',
' at Object.Meteor._noYieldsAllowed (packages/meteor.js:671:12)',
' at OplogObserveDriver._fetchModifiedDocuments (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:483:12)',
' at /bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:645:18',
' at Object.Meteor._noYieldsAllowed (packages/meteor.js:671:12)',
' at OplogObserveDriver._handleOplogEntrySteadyOrFetching (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:575:12)',
' at OplogObserveDriver.proto._handleOplogEntrySteadyOrFetching (packages/meteorhacks_kadira.js:2913:53)',
'---------------------------------------------',
' at Object.setImmediate [as _setImmediate] (packages/meteor.js:323:14)',
' at Object._.extend.defer (packages/meteor.js:514:12)',
' at OplogHandle._maybeStartWorker (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_tailing.js:253:12)',
' at /bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_tailing.js:242:14',
' at loop (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/mongo_driver.js:1146:9)',
' at [object Object]._.extend.withValue (packages/meteor.js:1122:17)',
' at packages/meteor.js:445:45',
' at runWithEnvironment (packages/meteor.js:1176:24)',
'---------------------------------------------',
' at handleOperationCallback (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:454:24)',
' at /bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:490:9',
' at authenticateStragglers (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:429:16)',
' at [object Object].messageHandler (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:463:5)',
' at Socket.<anonymous> (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:309:22)',
' at emitOne (events.js:77:13)',
' at Socket.emit (events.js:169:7)',
' at readableAddChunk (_stream_readable.js:153:18)',
' at Socket.Readable.push (_stream_readable.js:111:10)' ] }
===
Uncaught Exception encountered:
RangeError: Maximum call stack size exceeded
---------------------------------------------
at Object.setImmediate [as _setImmediate] (packages/meteor.js:323:14)
at Object._.extend.defer (packages/meteor.js:514:12)
at /bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:487:14
at Object.Meteor._noYieldsAllowed (packages/meteor.js:671:12)
at OplogObserveDriver._fetchModifiedDocuments (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:483:12)
at /bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:645:18
at Object.Meteor._noYieldsAllowed (packages/meteor.js:671:12)
at OplogObserveDriver._handleOplogEntrySteadyOrFetching (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:575:12)
at OplogObserveDriver.proto._handleOplogEntrySteadyOrFetching (packages/meteorhacks_kadira.js:2913:53)
---------------------------------------------
at Object.setImmediate [as _setImmediate] (packages/meteor.js:323:14)
at Object._.extend.defer (packages/meteor.js:514:12)
at OplogHandle._maybeStartWorker (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_tailing.js:253:12)
at /bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_tailing.js:242:14
at loop (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/mongo_driver.js:1146:9)
at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
at packages/meteor.js:445:45
at runWithEnvironment (packages/meteor.js:1176:24)
---------------------------------------------
at handleOperationCallback (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:454:24)
at /bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:490:9
at authenticateStragglers (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:429:16)
at [object Object].messageHandler (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:463:5)
at Socket.<anonymous> (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:309:22)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
---
Trace
at process.<anonymous> (/bundle/bundle/programs/server/app/meteor:/?app/imports/startup/server/logger.js:43:13)
at emitOne (events.js:82:20)
at process.emit (events.js:169:7)
at process.emit (/bundle/bundle/programs/server/npm/node_modules/longjohn/node_modules/source-map-support/source-map-support.js:387:21)
at process._fatalException (node.js:224:26)
---------------------------------------------
at meteorInstall.imports.startup.server.logger.js (/bundle/bundle/programs/server/app/meteor:/?app/imports/startup/server/logger.js:38:11)
at fileEvaluate (packages/modules-runtime.js:181:9)
at Module.require (packages/modules-runtime.js:106:16)
at Module.Mp.import (/bundle/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime.js:70:16)
at meteorInstall.imports.startup.server.index.js (/bundle/bundle/programs/server/app/meteor:/?app/imports/startup/server/index.js:1:1)
at fileEvaluate (packages/modules-runtime.js:181:9)
at Module.require (packages/modules-runtime.js:106:16)
at Module.Mp.import (/bundle/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime.js:70:16)
at meteorInstall.server.main.js (/bundle/bundle/programs/server/app/meteor:/?app/server/main.js:1:8)
RangeError: Maximum call stack size exceeded
---------------------------------------------
at Object.setImmediate [as _setImmediate] (packages/meteor.js:323:14)
at Object._.extend.defer (packages/meteor.js:514:12)
at /bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:487:14
at Object.Meteor._noYieldsAllowed (packages/meteor.js:671:12)
at OplogObserveDriver._fetchModifiedDocuments (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:483:12)
at /bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:645:18
at Object.Meteor._noYieldsAllowed (packages/meteor.js:671:12)
at OplogObserveDriver._handleOplogEntrySteadyOrFetching (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_observe_driver.js:575:12)
at OplogObserveDriver.proto._handleOplogEntrySteadyOrFetching (packages/meteorhacks_kadira.js:2913:53)
---------------------------------------------
at Object.setImmediate [as _setImmediate] (packages/meteor.js:323:14)
at Object._.extend.defer (packages/meteor.js:514:12)
at OplogHandle._maybeStartWorker (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_tailing.js:253:12)
at /bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/oplog_tailing.js:242:14
at loop (/bundle/bundle/programs/server/packages/meteor:/?app/packages/mongo/mongo_driver.js:1146:9)
at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
at packages/meteor.js:445:45
at runWithEnvironment (packages/meteor.js:1176:24)
---------------------------------------------
at handleOperationCallback (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:454:24)
at /bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:490:9
at authenticateStragglers (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:429:16)
at [object Object].messageHandler (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:463:5)
at Socket.<anonymous> (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:309:22)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)