Comments (4)
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.
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.
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.
Thank you for your help.
from lollipops.
Related Issues (20)
- an error occurs when using -legend HOT 1
- Not working with Big Sur Mac m1 HOT 2
- Get https://pfam.xfam.org/protein/P04637/graphic: x509: certificate signed by unknown authority HOT 1
- Pfam certification error HOT 1
- Unable to load arial.ttf HOT 2
- uniprot error: 400 Bad Request HOT 6
- integer divide by zero using the -U option HOT 4
- error: no font loaded - cannot make PNG! HOT 1
- Uniprot ID of gene isoform HOT 4
- update Pfam links HOT 1
- Examples fail, uniprot error: 400 Bad Request. Error in UniProt ID lookup? HOT 12
- Lollipops go function shows "undefined: data.GetGraphicData"
- ./main.go:218:8: undefined: createOutput HOT 1
- panic: runtime error: index out of range [2] with length 0 HOT 3
- Avoiding Overlapping Text/ Changing Height of plot HOT 2
- pfam error: 403 forbidden
- Pfam vs InterPro: TP53 HOT 1
- canβt be opened because Apple cannot check it for malicious software HOT 1
- can not find the output file HOT 1
- invalid character '<' looking for beginning of value HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lollipops.