SGF library upload not working

Upload of SGF to personal library doesn’t seem to be working

  • received some SGF from someone who has same issue by email
  • loading in library gives an empty game (board & player names display, but no moves). Loading in local editor displays them correctly (doesn’t look like corrupt SGF)
  • downloading an OGS game then uploading to SGF Library gives same result

Is it a generalised issue?

I’ve downloaded a recent game from doge_bot_1 20058 vs. doge_bot_1 and successfully uploaded it to my library, so I don’t think the functionality has stopped working entirely.

Do you want to try to do the same with that game as a test?

There are some things in sgfs that need to be cleaned up if OGS isn’t correctly parsing them. This can sometimes be done by opening the sgf in another editor like sabaki and then saving it again. Other times one might need to look at the file in a text editor. Some hints can come from opening the browser console and seeing if there’s any error messages on the blank game page for example.

If you want to share the file(s), either here or in a private message I can have a look and let you know if I can get it to upload. I’ll also try to write down why it wasn’t uploading and maybe I can submit an issue to github.

1 Like

Yes, the doge upload worked. I had tried a resaving locally in a different editor and that hadn’t helped, but downloading one of my games and uploading did work. I see that although problem games don’t display, downloading from the OGS will preserve so you should be able to see the raw SGF from here Takabe Dohei vs. Honinbo Shusai

Looking in a text editor, it looks like the bracketing structure is different from an example downloaded from OGS, as is the use of return lines - so you’re right. This is file specific. I’m not familiar with the SGF spec, but it seems legit given I can display in another editor… I suspect this is about the use of ( bracket

Example file here for simplicity:

(;CA[utf-8]GM[1]AP[WGo.js:2]SZ[19]FF[4]DT[1912-10-02]PB[Takabe Dohei]BR[5p]PW[Honinbo Shusai]
WR[8p]KM[0]HA[0]RE[W+]MULTIGOGM[1]
;B[cp];W[oq];B[dc];W[eq];B[qd];W[ce];B[od];W[qp];B[do];W[ck];B[ed];W[dg];B[qj];W[jc]
;B[lc];W[fc];B[cd];W[de];B[bd];W[qm];B[dq];W[iq];B[gq];W[ep];B[hp];W[ip];B[ho];W[fn]
;B[eo];W[fo];B[fp];W[dr];B[cr];W[oi];B[pk];W[qi];B[ri];W[qh];B[hr];W[nc];B[oc];W[ol]
;B[ok];W[rk];B[rj];W[qk];B[oj];W[nl];B[mj];W[pi];B[pj];W[mi];B[li];W[ni];B[mk];W[lh]
;B[kh];W[ki];B[lj];W[jh];B[kg];W[lg];B[kf];W[lf];B[ke];W[nf];B[hc];W[nd];B[kc];W[qe]
;B[re];W[rf];B[pe];W[qf];B[jb];W[gf];B[fd];W[ji];B[jk];W[km];B[ll];W[hn];B[lm];W[io]
;B[fr];W[ik];B[il];W[ij];B[kn];W[jm];B[im];W[jn];B[in];W[ko];B[jl];W[gl];B[ln];W[mp]
;B[nn];W[pl];B[gm];W[fm];B[gn];W[cn];B[oo];W[pp];B[jr];W[nb];B[qb];W[ir];B[is];W[kr]
;B[ne];W[me];B[of];W[oe];B[pn];W[qn];B[ne];W[rd];B[rc];W[oe];B[lr];W[jq];B[ne];W[se]
;B[ng];W[oe];B[pg];W[ne];B[pf];W[mg];B[qg];W[rh];B[rg];W[sg];B[ob];W[le];B[fl];W[jd]
;B[kd];W[ib];B[ie];W[kb];B[lb];W[ja];B[ic];W[gc];B[gd];W[hb];B[fb];W[gb];B[eb];W[la]
;B[id];W[if];B[ig];W[hf];B[jf];W[dp];B[er];W[hl];B[hm];W[el];B[ks];W[js];B[fk];W[gj]
;B[jr];W[jb];B[je];W[js];B[ek];W[dk];B[jr];W[cq];B[fq];W[js];B[ma];W[hs];B[mb];W[jg])

So there’s always a number of things it could be, but I recalled the sgf parser having issues with results so just taking out the result works. (or if one wanted to amend it W+R or something it should also work).

E.g.

2 Likes

Brilliant! That is indeed what it is. I’m surprised the parser has an issue with something so specific!

I’ve modified the SGF’s, full set now uploads, ready for a bit of study ahead of my lesson with @Yoonyoung tomorrow :slight_smile:

Thanks again for taking a look.

3 Likes