Giter VIP home page Giter VIP logo

Comments (4)

pbnjay avatar pbnjay commented on July 16, 2024

What version of lollipops are you using? v1.5.1 release download or development master?
What Operating System are you using?

Also, please paste all of the output from the command, there should be some logging lines above the Drawing diagram to out.png that may also help. I suspect this issue is caused by a missing font which should have been displayed as an error.

from lollipops.

vwongjun avatar vwongjun commented on July 16, 2024

I'm using lollipops-v1.5.1-mac64 release download, my OS is MacOSX 10.10.5 but I have also been trying to produce a .png output on Ubuntu 18.04.3 and I have the same error.

Here is the complete output from the command I ran on MacOSX:

$ ./lollipops -o=out.png -labels OTOF R1495Ter Gly887Arg
ERROR: Unable to find Arial.ttf - Which is required for accurate font sizing.
       Please use -f=/path/to/arial.ttf or the TrueType (.ttf) font of your choice.
HGNC Symbol:  OTOF
Uniprot/SwissProt Accession:  Q9HC10
Drawing diagram to out.png
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1c8 pc=0x1265d61]

goroutine 1 [running]:
github.com/golang/freetype/truetype.(*Font).Bounds(0x0, 0xc000000280, 0x200, 0xc00016a000)
	/Users/jeremy/src/github.com/golang/freetype/truetype/truetype.go:364 +0x11
github.com/golang/freetype/truetype.NewFace(0x0, 0xc0000cb820, 0x13691a0, 0x156e580)
	/Users/jeremy/src/github.com/golang/freetype/truetype/face.go:198 +0x2dd
github.com/pbnjay/lollipops/drawing.(*diagram).png(0xc00033e180, 0x1368b20, 0xc00000e028)
	/Users/jeremy/src/github.com/pbnjay/lollipops/drawing/png.go:72 +0x3af
github.com/pbnjay/lollipops/drawing.(*Settings).DrawPNG(0x154ab80, 0x1368b20, 0xc00000e028, 0x4052000000000000, 0xc000096160, 0x2, 0x2, 0xc00033e0c0)
	/Users/jeremy/src/github.com/pbnjay/lollipops/drawing/png.go:58 +0x12f
github.com/pbnjay/lollipops/drawing.DrawPNG(0x1368b20, 0xc00000e028, 0x4052000000000000, 0xc000096160, 0x2, 0x2, 0xc00033e0c0)
	/Users/jeremy/src/github.com/pbnjay/lollipops/drawing/png.go:37 +0x83
main.main()
	/Users/jeremy/src/github.com/pbnjay/lollipops/main.go:226 +0x7ef

from lollipops.

pbnjay avatar pbnjay commented on July 16, 2024

As I suspected, yes please follow the directions at the top of the output:

   Please use -f=/path/to/arial.ttf or the TrueType (.ttf) font of your choice.

I've pushed a new release which makes this a fatal error, since PNG output needs the font to work:
https://github.com/joiningdata/lollipops/releases/latest

from lollipops.

vwongjun avatar vwongjun commented on July 16, 2024

Thank you for your help.

from lollipops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.