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

Crash in canSend #17

Closed
qypea opened this issue Aug 21, 2018 · 1 comment
Closed

Crash in canSend #17

qypea opened this issue Aug 21, 2018 · 1 comment

Comments

@qypea
Copy link

qypea commented Aug 21, 2018

Yesterday my ssb pub was crashing repeatedly, with the following error. I poked around a little trying to figure out the root cause and settled on checking if state was valid in this function. Not sure if that's the preferred solution but it did stop the crash and get my pub running better again. Let me know if there's anything I can do to help

/home/pi/easy-ssb-pub/node_modules/epidemic-broadcast-trees/stream.js:84
      state.msgs.length || state.notes
           ^
TypeError: Cannot read property 'msgs' of undefined
    at EBTStream.canSend (/home/pi/easy-ssb-pub/node_modules/epidemic-broadcast-
    at EBTStream.resume (/home/pi/easy-ssb-pub/node_modules/epidemic-broadcast-t
    at Object.update (/home/pi/easy-ssb-pub/node_modules/epidemic-broadcast-tree
    at Timeout._onTimeout (/home/pi/easy-ssb-pub/node_modules/epidemic-broadcast
    at ontimeout (timers.js:365:14)
    at Timer.unrefdHandle (timers.js:466:3)
qypea added a commit to qypea/epidemic-broadcast-trees that referenced this issue Aug 21, 2018
@qypea
Copy link
Author

qypea commented Aug 22, 2018

Initial results with 6.3.4 dominictarr@4389256 look good. Thanks for chasing this one down

@qypea qypea closed this as completed Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant