#19 √ invalid
Kiba

TTF load fails after many loads

Reported by Kiba | July 23rd, 2008 @ 12:50 PM

TTF crash when you load a font too many time.

An example is included in the file. You will need to modify the font's pathname to get it working.

Comments and changes to this ticket

  • John Croisant

    John Croisant July 23rd, 2008 @ 04:45 PM

    • → Tag changed from “@bug ttf” to “!lowpriority @bug ttf”
    • → State changed from “new” to “open”
    • → Title changed from “TTF Crash” to “TTF load fails after many loads”

    It successfully loads 1424 times on my machine, then raises an error:

    ./ttf_load_crash.rb:9:in `new': could not load font: Couldn't open
    /home/jacius /rubygame/samples/FreeSans.ttf (Rubygame::SDLError)
    

    Is this similar to what happens to you, kiba?

  • Kiba
  • John Croisant

    John Croisant July 23rd, 2008 @ 08:18 PM

    • → Tag changed from “!lowpriority @bug ttf” to “!wontfix @bug ttf”
    • → State changed from “open” to “invalid”

    Okay. Then, this issue is not a bug in Rubygame, but rather an issue with SDL_ttf. Apparently, it is due to the system limit of the number of open files allowed.

    My recommendation is not to load the font so many times.

    If it really bothers you a lot, you should report it to SDL_ttf. They might (if you are very lucky) decide that it's worth investigating.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Flexible library for making games with the Ruby language.

rubygame.sourceforge.net

Shared Ticket Bins

People watching this ticket

Attachments

You can update this ticket by sending an email to from your email client. (help)