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

Cannot read property 'peerPieces' of undefined #919

Open
dcposch opened this issue Sep 18, 2016 · 2 comments
Open

Cannot read property 'peerPieces' of undefined #919

dcposch opened this issue Sep 18, 2016 · 2 comments
Labels

Comments

@dcposch
Copy link
Contributor

@dcposch dcposch commented Sep 18, 2016

  • WebTorrent version: 0.96
  • Electron version: 1.4.0

From the desktop app telemetry:

Processes: webtorrent, platforms: win32, versions: 0.15.0
TypeError: Cannot read property 'peerPieces' of undefined
    at RarityMap.recalculate (...\node_modules\webtorrent\lib\rarity-map.js:107:30)
    at Torrent.RarityMap.self._onWire (...\node_modules\webtorrent\lib\rarity-map.js:15:10)
    at emitTwo (events.js:106:13)
    at Torrent.emit (events.js:191:7)
    at Torrent._onWire (...\node_modules\webtorrent\lib\torrent.js:1011:8)
    at Peer.onHandshake (...\node_modules\webtorrent\lib\peer.js:180:14)
    at Wire.onHandshake (...\node_modules\webtorrent\lib\tcp-pool.js:110:12)
    at Wire.g (events.js:286:16)
    at emitThree (events.js:121:20)
    at Wire.emit (events.js:194:7)
@dcposch

This comment has been minimized.

Copy link
Contributor Author

@dcposch dcposch commented Sep 18, 2016

@feross This error looks like it's new in the desktop app 0.15, so maybe it was introduced in a recent version of the library? (Or maybe we just happened to not run into it before.)

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Sep 18, 2016

Yeah, I was just about to open an issue for this too. Weird that it just started happening.

@stale stale bot added the stale label May 3, 2018
@webtorrent webtorrent deleted a comment from stale bot May 4, 2018
@stale stale bot removed the stale label May 4, 2018
@stale stale bot removed the stale label May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.