blevesearch / bleve-bench

A utility for benchmarking bleve performance under various configurations and workloads.
Apache License 2.0
15 stars 8 forks source link

panic: Failed to locate a font file NimbusRomNo9L-Regu.ttf for font name Times-Roman #6

Open mschoch opened 9 years ago

mschoch commented 9 years ago

panic: Failed to locate a font file NimbusRomNo9L-Regu.ttf for font name Times-Roman

goroutine 1 [running]: main.doPlot(0xc8222530a8, 0x1, 0x1, 0x48e7100, 0x11, 0x48637d0, 0x4, 0x48682b8, 0x4, 0xc822bba160, ...) /Users/mschoch/go/src/github.com/blevesearch/bleve-bench/cmd/bleve-bench/plot.go:30 +0x91 main.main() /Users/mschoch/go/src/github.com/blevesearch/bleve-bench/cmd/bleve-bench/index.go:72 +0x57b

goroutine 17 [syscall, locked to thread]: runtime.goexit() /Users/mschoch/Documents/research/gosrc/src/runtime/asm_amd64.s:1696 +0x1

goroutine 19 [select]: github.com/blevesearch/bleve/index.AnalysisWorker(0xc820060120, 0xc820060180) /Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:65 +0x14d created by github.com/blevesearch/bleve/index.NewAnalysisQueue /Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:57 +0xf2

goroutine 20 [select]: github.com/blevesearch/bleve/index.AnalysisWorker(0xc820060120, 0xc820060180) /Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:65 +0x14d created by github.com/blevesearch/bleve/index.NewAnalysisQueue /Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:57 +0xf2

goroutine 21 [select]: github.com/blevesearch/bleve/index.AnalysisWorker(0xc820060120, 0xc820060180) /Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:65 +0x14d created by github.com/blevesearch/bleve/index.NewAnalysisQueue /Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:57 +0xf2

goroutine 22 [select]: github.com/blevesearch/bleve/index.AnalysisWorker(0xc820060120, 0xc820060180) /Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:65 +0x14d created by github.com/blevesearch/bleve/index.NewAnalysisQueue /Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:57 +0xf2

goroutine 34 [runnable, locked to thread]: runtime.goexit() /Users/mschoch/Documents/research/gosrc/src/runtime/asm_amd64.s:1696 +0x1

goroutine 51 [syscall, locked to thread]: runtime.goexit() /Users/mschoch/Documents/research/gosrc/src/runtime/asm_amd64.s:1696 +0x1

goroutine 52 [syscall, locked to thread]: runtime.goexit() /Users/mschoch/Documents/research/gosrc/src/runtime/asm_amd64.s:1696 +0x1

mschoch commented 9 years ago

@nimishzynga can we do 3 things:

  1. Make generation of the plots optional, defaulted to off? They are causing problems and many uses don't need the plots.
  2. Change the code so that we don't panic, instead we should log the error message and exit cleanly, this allows the underlying KV stores to close properly, otherwise they may die in some unknown state.
  3. Document a fix for this font problem so that people who do want the plots can generate them.

thanks

mschoch commented 9 years ago

OK @nimishzynga I've pushed quick fix for 1 and 2 above. Still need part 3.

nimishzynga commented 9 years ago

Plotinum looks for fonts based on the path at which the go get command installs it. If it is moved it after go getting it then they won't be found. (https://groups.google.com/forum/#!topic/golang-nuts/2n8CQZjUYD8). @mschoch should I use different package for plotting the graph or if the above error message is returned to user ? BTW, using dygraph is much easier then plotinum.

mschoch commented 9 years ago

I dont know, it does seem to work for me in clean gopath, but I can't imagine I ever moved anything in my main gopath.

In general I prefer not having the plotting so tightly coupled to the testing, but I don't know how dygraph works, so I cant say if thats better or worse.