Search code examples
goalpine-linuxpprof

Invalid golang profile output format


I've recently started to try out the pprof tools from golang. I have followed the link https://golang.org/pkg/net/http/pprof/ to add a new http server to my service so the profile is able to be accessed. All works fine, but when i try to generate a pdf or png output format, the text are all boxes as shown in the below image: enter image description here Is there any unicode libary that i need to install? My service is deployed using docker alpine image


Solution

  • This is a common symptom of missing fonts.

    Try installing the font-noto package:

    apk add font-noto

    For more information and hints about Alpine Linux Fonts, visit this Alpine Linux wiki page.