[MCAKF] 16:18:13 INFO: Completed initial scan of sendreceive folder “XXXXXX” (mx25c-efbjl)
Panic at 2018-09-24T16:18:13+02:00
panic: runtime error: index out of range
The error occurs when a file without a block list gets pulled:
key := string(fi.Blocks[0].Hash)
However on incoming indexes and when creating files in the scanner, we check that the block list is non-empty. So I am currently at a loss as to how this panic might happen.
Can you please start Syncthing with model and db debug facilities enabled (assume you use synctrayzor, there’s a setting for that somewhere).
The env var is STTRACE and the value db,model. I don’t know about env vars on windows, searching for it brought up a thread of yours with info on it: Windows or Mac and GOMAXPROCS
Thanks a lot for your reports!
The offending file entry is AppData\Local\Microsoft\Windows\WebCache\WebCacheV01.dat. Meaning it somehow happened that it is present in the db without a block list. It would be interesting to see what’s in the db, unfortunately you can’t run rest calls, as it crashes immediately. Could you upload your database somewhere and make it available to me?
Edit: Actually it’s probably a lot easier if I create a debug build for you to run which will print the relevant information to the log.
@Samuel_Bruyere Please keep a copy of your current config and db around. As a workaround, remove the folder with ID “mx25c-efbjl” from your config and then after starting Syncthing add it again - the error should be gone then (if it’s not, there’s an opportunity for more investigations ).