Firefox - crashes with excessive thread activity #950
Description
- Version: ipfs 0.25.1 (output of npm list | grep ipfs)
- Platform: Mac OSX 10.11.6 and 10.12.6
- Subsystem: JS - https://unpkg.com/ipfs-iiif-db/dist/browser.js - but unsure what part
Type: Bug
Severity: Severe
Description:
The most serious bug - that makes the system unusable - is the extreme thread usage on Firefox. Firefox normally runs with about 60 threads (according to Mac Activity Monitor)
As soon as I open a page which starts IPFS/IIIF it adds about another 40 threads, BUT the Idle Wake Ups starts hitting the 10’s of thousands (three orders of magnitude more than anything else on the box). Load Average (as reported by “top” or “uptime" starts rising and quickly exceeds 100, by which time the machine is running too slow to do much more than kill Firefox.
Is anyone else running js-ipfs in browser, are you seeing this especially with iiif ?
Note - on Chrome the behavior is different - there aren't as many wake ups, but CPU load grows (slower) until it hits a point where Chrome gives the "Aw Snap! Something went wrong while displaying this webpage." error.