Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3 ElmerPost segfaults due to accessing null pointer

open
nobody
5
2012-12-11
2009-01-25
Anonymous
No

ElmerPost segfaults

I was following the 1st tutorial at
http://www.nic.funet.fi/pub/sci/physics/elmer/ElmerTutorials.pdf

In ElmerPost, bring up a colorscale, and set the Colorscale Style to vertical. This will result in a segfault.

The problem is at elmerpost/src/visuals/colscale.c at line 170. The call to "XTextWidth( CurrentXFont,..." segfaults since CurrentXFont is a null pointer.

Choosing a font before changing the colorscale to vertical works around this problem.

Discussion

  • Hi,

    OK thanks for the report, i'll look into it.
    Regards, Juha