{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/8950","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/8950/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/8950/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/8950/events","html_url":"https://github.com/meteor/meteor/issues/8950","id":245987927,"node_id":"MDU6SXNzdWUyNDU5ODc5Mjc=","number":8950,"title":"Error: expected to be _runningOrRunScheduled","user":{"login":"derwaldgeist","id":3984535,"node_id":"MDQ6VXNlcjM5ODQ1MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3984535?v=4","gravatar_id":"","url":"https://api.github.com/users/derwaldgeist","html_url":"https://github.com/derwaldgeist","followers_url":"https://api.github.com/users/derwaldgeist/followers","following_url":"https://api.github.com/users/derwaldgeist/following{/other_user}","gists_url":"https://api.github.com/users/derwaldgeist/gists{/gist_id}","starred_url":"https://api.github.com/users/derwaldgeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derwaldgeist/subscriptions","organizations_url":"https://api.github.com/users/derwaldgeist/orgs","repos_url":"https://api.github.com/users/derwaldgeist/repos","events_url":"https://api.github.com/users/derwaldgeist/events{/privacy}","received_events_url":"https://api.github.com/users/derwaldgeist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-07-27T09:58:34Z","updated_at":"2018-07-19T18:39:45Z","closed_at":"2017-12-01T18:27:30Z","author_association":"NONE","body":"I am trying to debug this for hours now but cannot find the root cause. Since I upgraded my app from 1.2 to 1.5.1, I am experiencing weird server crashes that occur when I try to call the `update()` method of the `Meteor.users` collection.\r\n\r\nI have several Meteor methods that call this `update()` method. Some work as expected, but some cause the server to crash and restart. The only output I get on the console is this:\r\n\r\n```\r\nW20170727-11:45:53.635(2)? (STDERR) /Users/waldgeist/.meteor/packages/meteor-tool/.1.5.1.7d6ojz++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280\r\nW20170727-11:45:53.636(2)? (STDERR) \t\t\t\t\t\tthrow(ex);\r\nW20170727-11:45:53.636(2)? (STDERR) \t\t\t\t\t\t^\r\nW20170727-11:45:53.637(2)? (STDERR) \r\nW20170727-11:45:53.637(2)? (STDERR) Error: expected to be _runningOrRunScheduled\r\nW20170727-11:45:53.638(2)? (STDERR)     at [object Object]._.extend._run (packages/meteor.js:797:13)\r\nW20170727-11:45:53.638(2)? (STDERR)     at packages/meteor.js:789:14\r\n```\r\n\r\nThis happens in this line:\r\nhttps://github.com/meteor/meteor/blob/87681c8f166641c6c3e34958032a5a070aa2d11a/packages/meteor/fiber_helpers.js#L133\r\n\r\nI tried to analyse my code and even analysed the call stack in node-inspector. However, I cannot see any differences in the way my Meteor methods are structured and how they call the `update()` method; they seem to be structurally identical and also the call stack is very similar.\r\n\r\nDoes anybody here know what this error message means and how a state could occur where the \"_runningOrRunScheduled\" flag is not set correctly?"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/406374882","html_url":"https://github.com/meteor/meteor/issues/8950#issuecomment-406374882","issue_url":"https://api.github.com/repos/meteor/meteor/issues/8950","id":406374882,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjM3NDg4Mg==","user":{"login":"derwaldgeist","id":3984535,"node_id":"MDQ6VXNlcjM5ODQ1MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3984535?v=4","gravatar_id":"","url":"https://api.github.com/users/derwaldgeist","html_url":"https://github.com/derwaldgeist","followers_url":"https://api.github.com/users/derwaldgeist/followers","following_url":"https://api.github.com/users/derwaldgeist/following{/other_user}","gists_url":"https://api.github.com/users/derwaldgeist/gists{/gist_id}","starred_url":"https://api.github.com/users/derwaldgeist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derwaldgeist/subscriptions","organizations_url":"https://api.github.com/users/derwaldgeist/orgs","repos_url":"https://api.github.com/users/derwaldgeist/repos","events_url":"https://api.github.com/users/derwaldgeist/events{/privacy}","received_events_url":"https://api.github.com/users/derwaldgeist/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T18:39:45Z","updated_at":"2018-07-19T18:39:45Z","author_association":"NONE","body":"Nailed it down further. The problem occurs if I call Meteor.user() inside the Meteor method, which also does a lot of database operations."}}
{"actor":{"display_login":"derwaldgeist"}}