-
Notifications
You must be signed in to change notification settings - Fork 114
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
Error with torrent: error persisting piece: InvalidStateError #135
Comments
Second report I've had of this problem: https://www.reddit.com/r/JSTorrent/comments/4esuus/issues_arising_with_magnet_links_for_win10/ Antivirus is obviously not an issue in your case (which I suspected with windows) I haven't seen this in my own testing, and I download 3+GB torrents many times without error (ASUS chromebook flip which is ARM, and now an HP celeron chromebox) From usage statistics I am seeing this happen with some regularity though. https://bugs.chromium.org/p/chromium/issues/detail?id=404301 this could be the problem. I am writing blobs, perhaps I don't need to I can just write ArrayBuffers directly. CB2 has 2GB RAM right? |
I am using Toshiba Chromebook 2 CB30-B-104 which has 4GB RAM. Chrome OS Version: 49.0.2623.112 (64-bit) There are no other extensions running to interfere. I also made sure to keep the system awake at all times and never left it. Not sure if this is an issue also, but I can never reach a download speed above 4MB/s, even though I can download at 16MB/s on other machines on my network. Speedtest.net on this chromebook tests at 152Mbps and can download from other websites at this full speed if server allows. Just tested and torrent stopped after 656MB of writing. (Now Resumed) No stop, torrent continued to download until complete which was a further 1420MB, however, total download is recorded as 3.508GB whereas total size showed 3.135GB? Chrome OS shows total file size of 3.1GB. I'll be happy to test the app with updates to code should you require me to verify a fix. Or if you have any instruction for further testing, let me know. This is what I can see from the messages pane: Warn1513 previous messages not shown |
Hmm so the idea I had didn't work out. You still can't write ArrayBuffer to FileWriter. Dang. Can you keep the DiskIO tab open? Do you see that list getting really large? This can happen if the download is happening faster than it can write it to the disk. That could perhaps result in the problem. If you open chrome://blob-internals in a tab, if you see a bunch of JSTorrent stuff there, that could also indicate a problem (you'll need to refresh) Really appreciate your helping with this. We'll get it! |
It's my pleasure! Helping towards a fix for the benefit of myself and others is always a great feeling. I just watched the DiskIO Tab until the first InvalidState Error. There were never more than 5 lines at one time. Here's a paste of the blob tab during torrent download: 06138bff-43d1-4b55-aa55-0e6204127ae4 |
Interesting. There are a lot of 4mb blobs there. Do those stay around even
|
I made an update to the free version to add some more information that should help me debug. (ver 2.4.4 Also I forgot to ask, are you running the app from the store ? or from github? |
This might be the problem: https://bugs.chromium.org/p/chromium/issues/detail?id=375297 |
Those blobs disappear when torrent stops. I use the paid store version as I wanted to contribute. Will give 2.4.4 a test and feed back. Thank you |
Makes sense they disappear after it stops, I clear them out at stop time anyway. |
Using 2.4.4 I got the invalidstate error again. It seemed to progress a little further before doing so but still got it. Didn't see any 4mb blobs on chrome://blob-internals/ like the last time though. will test your 2.4.5 now. Messages from 2.4.4: Warn 40 previous messages not shown |
Can you email me the .torrent / magnet link graehlarts@gmail.com so I can test if I get the problem here? .. could be torrent specific somehow? Update can take up to an hour to get to you. You can manually install by downloading the zip file and going to chrome://extensions and clicking on the check mark for developer and then load unpacked extension |
Tried this with many torrents and received the same error. However, will email the one that I last tested and got the error with. I will go ahead and grab that zip. Thanks. |
I have another idea, keep a look at the "Pieces" tab and let me know if that list gets bigger than say... 20 items. It may be that once that list gets big enough, it runs out of memory and causes the error. |
Whatever you did for 2.4.5, problem solved. 2 torrents downloaded successfully without error. Will try a few more to confirm for definite but seems to be fixed. Well done. Thank You. |
That sucks, because I didn't fix anything :-\ I'm still not able to On Sun, Apr 24, 2016 at 2:25 PM, sutty5 notifications@github.com wrote:
|
Well I did change one thing, but not something that I think should fix it. But maybe it did... |
Unfortunately my Chromebook has been kidnapped from me by my partner. I will run some more downloads tomorrow. And if there are any more logs or tests I can do. I'll be happy to do so. Thank you. |
I am having the same issue. It doesn't seem to be writing very much data to the disk, yet it downloads much more data than the file size. I have the same errors as mentioned here, so I won't repeat them. This is my system: HP Chromebook 14 (4G RAM) x86_64 Intel(R) Celeron(R) 2955U @ 1.40GHz GenuineIntel GNU/Linux Version 49.0.2623.112 (64-bit) JSTorrent 2.4.3 |
Can you update to the latest version? 2.4.3 is pretty old. |
I just updated to the 2.4.8 from GitHub. I'll keep you posted. On Sun, May 8, 2016 at 3:52 PM, Kyle Graehl notifications@github.com
|
The first torrent I tried with 2.4.8 was successful and the download to checkBroken On Sun, May 8, 2016 at 3:59 PM, Spencer Butler <spencerunderground@gmail.com
|
Thanks for letting me know. I'll look into it tomorrow I may have an idea
|
Let me also add, I've used this software for a couple of years (very On Sun, May 8, 2016 at 9:50 PM, Kyle Graehl notifications@github.com
|
I committed some code that should address the problem. I wasn't handling the onSuspend event. If you're running from github, try updating again. |
Today I moved to an Internet location with much faster speeds and had 0 On Mon, May 9, 2016 at 6:25 PM, Kyle Graehl notifications@github.com
|
I've also noticed with the 2.4.8 and now the 2.4.9 releases there is no way On Mon, May 9, 2016 at 7:20 PM, Spencer Butler <spencerunderground@gmail.com
|
Oops! Thanks I'll get right on that On Mon, May 9, 2016 at 7:32 PM, spencerunderground <notifications@github.com
|
Committed a change to fix the context menus. |
Thanks for fixing the menus. I am back on my very slow Internet connection On Tue, May 10, 2016 at 10:31 AM, Kyle Graehl notifications@github.com
|
Wow! That's a slow connection! On Tue, May 10, 2016 at 6:01 PM, spencerunderground <
|
It is pretty volatile. Now and again I'll get up to 100kB/s but typically On Tue, May 10, 2016 at 7:24 PM, Kyle Graehl notifications@github.com
|
Hi, same error here. But i found out the reason. Torrent destination was disk with FAT32 and downloaded file reached 4GB limit per file. |
Unsure what causes this issue or if it is just isolated to the Toshiba Chromebook 2, but the error above happens with every torrent I download.
I have optimised everything I can. i.e. used the fastest SD Card I have (150MBps), closed any other application. minimised allowed peer connections. But I still get this error multiple times during a torrent download and I have to restart the download each time until it is complete. My internet connection is 150Mbps down and 12Mbps up.
Frequency, downloading a 3.2GB torrent takes roughly 1 hour as long as I restart the download as soon as it stops. For this 3.2GB torrent, it stopped around 6 times before complete.
For smaller torrents, this still occurs. i.e. a 1GB torent will download within 20 minutes but might stop 2 or 3 times.
The error is the same each time, for any torrent.
The text was updated successfully, but these errors were encountered: