slack-poker-bot icon indicating copy to clipboard operation
slack-poker-bot copied to clipboard

Random crash while idle

Open jabbink opened this issue 9 years ago • 5 comments

Sorry for lack of information, but sometimes, while being idle for some hours, the bot just closes; often without an error, sometimes with this error:

/home/poker/slack-poker-bot/node_modules/rx/dist/rx.js:579
    throw e;
          ^
TypeError: undefined is not a function
    at AnonymousObserver._onNext (/home/poker/slack-poker-bot/src/player-interaction.js:102:33)
    at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.next (/home/poker/slack-poker-bot/node_modules/rx/dist/rx.js:1778:12)
    at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/home/poker/slack-poker-bot/node_modules/rx/dist/rx.js:1710:35)
    at AnonymousObserver.tryCatcher (/home/poker/slack-poker-bot/node_modules/rx/dist/rx.js:567:29)
    at InnerObserver.onNext (/home/poker/slack-poker-bot/node_modules/rx/dist/rx.js:4154:41)
    at InnerObserver.tryCatcher (/home/poker/slack-poker-bot/node_modules/rx/dist/rx.js:567:29)
    at AutoDetachObserverPrototype.next (/home/poker/slack-poker-bot/node_modules/rx/dist/rx.js:5274:51)
    at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/home/poker/slack-poker-bot/node_modules/rx/dist/rx.js:1710:35)
    at AnonymousObserver._onNext (/home/poker/slack-poker-bot/node_modules/rx/dist/rx.js:5079:13)
    at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.next (/home/poker/slack-poker-bot/node_modules/rx/dist/rx.js:1778:12)

Oh god, I love Rx, those stacktraces are always so useful.

jabbink avatar Sep 15 '15 08:09 jabbink

Ugh, maybe somewhere in here? That's bizarre.

let timeExpired = rx.Observable.timer(0, 1000, scheduler)
  .take(timeout + 1)
  .do((x) => timeoutMessage.updateMessage(formatMessage(`${timeout - x}`)))
  .publishLast();

CharlieHess avatar Sep 18 '15 23:09 CharlieHess

Mine is also raising exceptions while idle.

Error: Uncaught, unspecified "error" event.
    at Error (native)
    at Client.emit (events.js:87:13)
    at Client._onLogin (/home/austin/slack-poker-bot/node_modules/slack-client/src/client.js:74:14)
    at /home/austin/slack-poker-bot/node_modules/slack-client/src/client.js:2:59
    at IncomingMessage. (/home/austin/slack-poker-bot/node_modules/slack-client/src/client.js:672:22)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickDomainCallback (node.js:381:11)

I am on c206214ff74c60bca4158045a3925bf32098e31f with node 0.12 on Ubuntu.

image

Hope this helps!

austinpray avatar Oct 07 '15 00:10 austinpray

Not noticing this anymore - are you guys still affected?

mikekhristo avatar Jan 26 '16 05:01 mikekhristo

I'm still affected by this bug

dkindler avatar Feb 01 '16 14:02 dkindler