On Tue, 2005-01-18 at 04:18, Bill Kendrick wrote:
> On Tue, Jan 18, 2005 at 01:04:13AM -0800, Bill Kendrick wrote:
> >   5.329    (without)
> 
> Oh, well, now I can see why.  If I actually go in and CLICK the 'Text' tool,
> I see that I've only got 5 fonts available, not the tons I had before. :^)
> 
> What's up?

That's... odd. I get them all. If I choose the text tool
very quickly, I get the progress bar and have to wait.
If I do something else for 20 seconds, then I can use the
text tool without waiting.

Try adding -lpthread to the gcc args. For me, this seems to
make Tux Paint more stable. I don't know why, but perhaps it
is required to make glibc thread-safe. You might also try
defining _THREAD_SAFE or _REENTRANT.

I examined the libSDL_ttf source. It looks as if it's mostly
thread-safe, with 1 or 2 exceptions: TTF_Init, which Tux Paint
called before starting the font loader thread, is unsafe. (OK)
Depending on the way libSDL is compiled, the error handling
may corrupt some SDL error messages -- but this should not lead
to a crash. (it might, except that libSDL_ttf expands all %
sequences itself via snprintf before passing them to libSDL)


_______________________________________________
Tuxpaint-dev mailing list
[email protected]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to