plugin.video.pulsar icon indicating copy to clipboard operation
plugin.video.pulsar copied to clipboard

RPi freezing when buffering/streaming (Please add Peer/Seeder number limit)

Open jijijaco opened this issue 10 years ago • 10 comments

I'm using Openelec 4.2.1, Pulsar 0.2, on a RPi model B first gen (256mb ram). My issue is : when I play a video with high peer/seed, Pulsar is freezing after a few seconds/minutes.

My explanation of the issue : The number of IN/OUT connections is too high for my RPi. I've already encountered this problem using Transmission Bittorent.

My solution : Could you add a limit on the number of connections for which a parameter would be available in config such as the speed limit. Once the limit is reached, new connections shall be refused.

For transmission bittorent I had to limit the number of connection around 50 maximum. Limiting the speed doesn't help at all.

Thank you for the great work.

jijijaco avatar Oct 24 '14 07:10 jijijaco

Raspberry Pi B+ 512MB Overclocked turbo. Usb3 storage. Same problem happening. Video 1-2 mins play and freeze auto stop without error. My internet speed is high. I think pulsar issue or cpu usage high.

BTopbas avatar Oct 25 '14 16:10 BTopbas

Ideally you shouldn't have to worry about such things, me thinks. That's why I'll add a fix for that to make it automatic when on RPi.

steeve avatar Oct 26 '14 11:10 steeve

Ok, I've updated the code to set a global connection limit to 50 on single core arm cpus I will go in the next update

steeve avatar Oct 26 '14 12:10 steeve

Nice! Thank you very much for considering it. What would be ideal I think is to have this limit set in a config file. So we could tweak it if needed. In a config file this would need an advance level to find it and change it. The provider time out value would sit there as well so that people may relax the timeout if they have a slow connection... For example you could have one config file per architecture... My peny for your great work.

jijijaco avatar Oct 26 '14 14:10 jijijaco

Steeve, it would be awesome if you could make that an option for any os as the 500+ connections i get totally kills my router

ghost avatar Oct 26 '14 17:10 ghost

Hi, Currently running pulsar 0.2.0 on Raspberry Pi B + (RaspBMC Gotham)

Although I have trouble with Movies "closing" after about 20 seconds when streaming using xbmctorrent the problem does not occur using Pulsar 0.2.0,

Its been advised that you will be implementing a 50 seed limit on single core rasp pi etc might I suggest an Option / setting for the application of this.

Download speeds are obviously fast with increased seed number so some people (myself) may want to keep it the way it is.

On another note, your add-on is ridiculously well executed and you should be very proud good sir.

joeldwine avatar Nov 04 '14 13:11 joeldwine

Step one vi /storage/.xbmc/userdata/advancedsettings.xml

Step 2, insert these lines:

25165824 1 false

Step 3: Reboot

Step 4: Test and report back. :-)

JoostV avatar Nov 10 '14 07:11 JoostV

See http://forum.kodi.tv/showthread.php?pid=1832403#pid1832403 for correct xml

JoostV avatar Nov 10 '14 07:11 JoostV

The proposed xml (and generally using Kodi's cache) produces artifats when playing back the video. Disabling caching solves the problem for me.

See XML: http://forum.kodi.tv/showthread.php?tid=200957&pid=2029332#pid2029332

Petrakeas avatar Jun 15 '15 13:06 Petrakeas

My router seems to die on me when using Pulsar on a RaspPi 2.

Was the connection limit of 50 implemented? I can't seem to find it in the source? Would it be possible to make this configurable?

mortenbock avatar Nov 05 '15 19:11 mortenbock