I'm facing a weird problem working on JSFML.
While experimenting with Fonts and Texts, I hit on sudden access violations in the C++ part that appeared very random. With the help of a disassembler, I could trace back the problem and it definitely occurs in some subsequent (2 further call levels, can't find it exactly) code invoked by FT_Load_Char. Indeed, I can reproduce the problem by making it load a new glyph every frame, after a while it would crash. However, this only happens from within a Java VM, I cannot reproduce it in a pure C++ program.
The glyph which it fails to load seems to be arbitrary. Trying to read any glyph from FreeSerif crashes instantly, but it works fine with FreeMono up to a certain point. This never seems to happen with the SFML default font, which is probably why I never noticed it so far.
I noticed that under Windows (building with MinGW), freetype is linked statically into SFML. Which version is it exactly? I would like to examine the freetype sources further to find exactly the line of code that causes the access violation. Are there any known problems or things to know about freetype that might be involved here?
I will also try to reproduce this problem on Linux tomorrow.