These are chat archives for anacrolix/torrent

18th
Feb 2018
Matt Joiner
@anacrolix
Feb 18 2018 00:21
Thanks, I'll check it out
deranjer
@deranjer
Feb 18 2018 04:14
@anacrolix Interesting.. if I set the max connections to anything but zero it gets further but still panics, it prints out the log line after that and writes to the database, but still panics.
?[36mINFO?[0m[0049] Matched for stopping torrents                 ?[36mselection?[0m=fe6ef41ad65f5adaf948ccd44853f641f512a6d5
Running Command... oldMax=singleTorrent.SetMaxEstablishedConns(50)
?[36mINFO?[0m[0049] Forcing connections to zero for torrent       ?[36moldMaxConnections?[0m=80 ?[36mtorrent?[0m="The.Blacklist.S05E07.HDTV.x264-SVA[rarbg]"
panic: -1

goroutine 13372 [running]:
github.com/anacrolix/torrent.(*Torrent).assertNoPendingRequests(0xc0421ee000)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1257 +0xf3
github.com/anacrolix/torrent.(*Torrent).deleteConnection(0xc0421ee000, 0xc042208780, 0xc0429e7ed0)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1249 +0xdc
github.com/anacrolix/torrent.(*Torrent).dropConnection(0xc0421ee000, 0xc042208780)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1265 +0x64
github.com/anacrolix/torrent.(*Client).runHandshookConn(0xc042298000, 0xc042208780, 0xc0421ee000, 0x1)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/client.go:885 +0x366
github.com/anacrolix/torrent.(*Client).outgoingConnection(0xc042298000, 0xc0421ee000, 0xc0425c35c0, 0x13, 0xc86fbb, 0x2)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/client.go:732 +0x1df
created by github.com/anacrolix/torrent.(*Torrent).initiateConn
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1737 +0x2bf
panic: -1

goroutine 13368 [running]:
github.com/anacrolix/torrent.(*Torrent).assertNoPendingRequests(0xc0421ee000)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1257 +0xf3
github.com/anacrolix/torrent.(*Torrent).deleteConnection(0xc0421ee000, 0xc04277c280, 0xc0424afed0)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1249 +0xdc
github.com/anacrolix/torrent.(*Torrent).dropConnection(0xc0421ee000, 0xc04277c280)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1265 +0x64
github.com/anacrolix/torrent.(*Client).runHandshookConn(0xc042298000, 0xc04277c280, 0xc0421ee000, 0x1)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/client.go:885 +0x366
github.com/anacrolix/torrent.(*Client).outgoingConnection(0xc042298000, 0xc0421ee000, 0xc0425c34c0, 0x14, 0xc86fbb, 0x2)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/client.go:732 +0x1df
created by github.com/anacrolix/torrent.(*Torrent).initiateConn
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1737 +0x2bf
panic: -1

goroutine 13486 [running]:
github.com/anacrolix/torrent.(*Torrent).assertNoPendingRequests(0xc0421ee000)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1257 +0xf3
github.com/anacrolix/torrent.(*Torrent).deleteConnection(0xc0421ee000, 0xc04277c780, 0xc042a81ed0)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1249 +0xdc
github.com/anacrolix/torrent.(*Torrent).dropConnection(0xc0421ee000, 0xc04277c780)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1265 +0x64
github.com/anacrolix/torrent.(*Client).runHandshookConn(0xc042298000, 0xc04277c780, 0xc0421ee000, 0x1)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/client.go:885 +0x366
github.com/anacrolix/torrent.(*Client).outgoingConnection(0xc042298000, 0xc0421ee000, 0xc0425c3a40, 0x13, 0xc86fbb, 0x2)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/client.go:732 +0x1df
created by github.com/anacrolix/torrent.(*Torrent).initiateConn
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1737 +0x2bf
exit status 2
Denis
@elgatito
Feb 18 2018 07:09
@anacrolix new log added to that issue - http://ix.io/LBP (more time)
can be grepped by "1f54ab"
first we download first N pieces (that is a buffering in our case), then we pass reader to Kodi and start File.Download(). Everything after 22:38:32.235 is after buffering is finished and we download the whole file
Denis
@elgatito
Feb 18 2018 07:15
22:39:14.490 T:545804804320  NOTICE: [plugin.video.elementum] DEBU  bittorrent   ▶ progressEvent    1f54ab: 5.1 MB/31 kB | Downloading (8.37%)
22:39:14.494 T:545804804320  NOTICE: [plugin.video.elementum] DEBU  bittorrent   ▶ progressEvent    1f54ab: 3.5 MB/27 kB | Downloading (8.37%)
22:39:14.496 T:545804804320  NOTICE: [plugin.video.elementum] DEBU  bittorrent   ▶ progressEvent    1f54ab: 2.0 MB/26 kB | Downloading (8.37%)
22:39:14.497 T:545804804320  NOTICE: [plugin.video.elementum] DEBU  bittorrent   ▶ progressEvent    1f54ab: 366 kB/15 kB | Downloading (8.37%)
22:39:15.235 T:545804804320  NOTICE: [plugin.video.elementum] DEBU  bittorrent   ▶ progressEvent    1f54ab: 4.1 MB/27 kB | Downloading (8.80%)
interesting timestamps, that is a 1 second timer
can it be Torrent.Stats() is locked and we wait for it?
Denis
@elgatito
Feb 18 2018 19:39
if anyone interested, i've updated my xgo docker images, now it has go 1.9.3, 1.9.4, 1.10 , so docker pull elgatito/xgo-latest will get the 1.10
tested 1.10 and it's compiling cgo fine. looks like no problems that we've seen with 1.9.4
Denis
@elgatito
Feb 18 2018 19:54
huh...
Could not add torrent /storage/.kodi/temp/elementum/e6e28f02d7cbdefaa3843d49a5127fa07d94801e.torrent: &bencode.SyntaxError{Offset:265, What:(*strconv.NumError)(0x11f02cc0)}