Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random crash while idle #50

Open
jabbink opened this issue Sep 15, 2015 · 5 comments
Open

Random crash while idle #50

jabbink opened this issue Sep 15, 2015 · 5 comments
Labels

Comments

@jabbink
Copy link

jabbink commented Sep 15, 2015

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.

@CharlieHess
Copy link
Owner

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();

@austinpray
Copy link

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 c206214 with node 0.12 on Ubuntu.

image

Hope this helps!

@mikekhristo
Copy link

Not noticing this anymore - are you guys still affected?

@dkindler
Copy link

dkindler commented Feb 1, 2016

I'm still affected by this bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants
@dkindler @mikekhristo @CharlieHess @austinpray @jabbink and others