-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ipfs-js can crash Firefox 57 #1089
Comments
I've also reported this to Mozilla as https://bugzilla.mozilla.org/show_bug.cgi?id=1418736 |
It also crashes the latest version of Chrome |
I can confirm it crashes in Firefox 57 and Chromium 62. To test, just open: https://cdn.rawgit.com/ipfs/js-ipfs/93cc2739/examples/browser-script-tag/index.html |
I also had this problem with both 0.25.0 and later 0.26.0 on Vivaldi (1.13.1008.32 (Stable channel) (64-bit)) running on debian stretch, now it only connects to 7 peers as earlier i had 10-12, can this be a connection problem? |
Is this a duplicate of #950 maybe? I'll have to check the thread counts somehow. |
@interfect its a duplicate of something that was prematurely closed IMHO. |
@interfect v0.27.0 just got released which packs a lot of perf and mem improvements plus it disables WebRTC by default, you should not see any more crashes of this time. We are working towards a solution in which using WebRTC doesn't mean that a browser will run out of memory, you can track that conversation here: #1088 (comment) Meanwhile, if you want to enable WebRTC again or try a new Relayed transport (websocket-star), check out the FAQ https://github.com/ipfs/js-ipfs#faq |
@diasdavid - I'm just testing the websocket-star interface, previously we had to do EXPERIMENTAL: { pubsub: true } in order to make YJS work, I'm not sure if that was tied to the WebRTC transport, should we leave that true for websocket-star or remove it? |
@diasdavid That is really awesome, I will try the new WebRTC transport |
@mitra42 yes, you should keep the PubSub flag to true. PubSub is experimental for the whole IPFS protocol, both go-ipfs and js-ipfs and so it is hidden behind a flag. PubSub is transport agnostic (as in all things libp2p). @kevinsimper let me know how it works for you! :) |
"Yes you should' means which choice ( it was an a,b choice, not yes/no) :-) a: Leave true or b: Remove If pubsub is transport agnostic, I would assume that we still need it for YJS ? |
Updated my comment. Yes, you should keep the PubSub flag to true. |
Great - and that looks to have cracked the problem for our apps (Yjs). I left it running for an hour or so though I did have a browser crash, but not 100% certain it was IPFS (it might have been something else I was testing) so re-running to make sure . |
Excellent! I'm closing this issue then. Thank you for testing it out! :) |
https://unpkg.com/ipfs/dist/index.min.js
as of right now)4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
)Type: Bug
Severity: Critical (though maybe Mozilla's problem)
Description: Opening a tab that starts up an ipfs-js instance and leaving it for a few minutes will crash that tab (and all the other tabs in the browser).
Steps to reproduce the error:
http-server
). EDIT: You can also just go to https://ipfs.io/ipfs/QmYjSUG7bUaNDYybSdvcq5JZ1jUNdoNdCn4rC1rQCvge8u/Open the console (Ctrl+Shift+K).Not necessary.The text was updated successfully, but these errors were encountered: