Aloshi / EmulationStation

A flexible emulator front-end supporting keyboardless navigation and custom system themes.
MIT License
2.08k stars 905 forks source link

Error - font size exceeded texture size! #81

Closed nerdwad closed 11 years ago

nerdwad commented 11 years ago

I'm getting this error in es_log.txt. Did a search and couldn't find a reason or solution. Any help would be appreciated :)

Thanks!

Aloshi commented 11 years ago

This error happens when the rasterized font is so big it won't fit in to a single OpenGL texture. Try lowering the theme font size. Reasonable font sizes (I think around 0.1-0.15) should work fine, but it's also possible that your monitor/TV is really big compared to what I've tested on. :smile:

nerdwad commented 11 years ago

Hmmm.. weird.. I haven't changed anything since I rebuilt the Pi the other day, default install, using the same monitor as before (19" 16:9 LCD). It's weird because it prevents me from launching games. I'll mess with the font size/theme and see what I come up with. thanks! :smile:

nerdwad commented 11 years ago

What's the easiest way to change the overall font size? Do I need to modify the code and re-compile?

HorstBaerbel commented 11 years ago

Check you CPU/GPU memory split. You might need to give the GPU a little more of your RAM...

nerdwad commented 11 years ago

Memory split it set to 192, has always worked wit this in the past. Still having the same problem, ES loads fine, game list comes up with descriptions and box art, but when a game is selected the screen flashes then returns to the gamelist.

Aloshi commented 11 years ago

Hmm, that error shouldn't stop you from launching games (worst case, I think you'd get messed up text). Have you tried launching the emulator by hand?

jlpubarch commented 11 years ago

First off, thank you for this awesome build! I've been tinkering with it for days now, lots of fun.

I seem to be having the same problem. On Pi B with 256/256 memory split, the provided true type font (sorry, forgot name) never rasterizes, always defaults to system font. I'm working on a ~37" HDTV @ 1920x1080. I'll tinker with the theme font size tonight but wanted to chime in as well.

Thanks again :)

nerdwad commented 11 years ago

Sorry if a stupid question.. but how would I launch the emulator by hand? I'm thinking this may not be related to ES.

Aloshi commented 11 years ago

Check ~/.emulationstation/es_systems.cfg for the "COMMAND=" bit. Just manually fill in the "%ROM%" part.

nerdwad commented 11 years ago

I ran the following: /home/pi/RetroPie/supplementary/runcommand/runcommand.sh 1 "retroarch -L /home/pi/RetroPie/emulatorcores/fceu-next/fceumm-code/fceumm_libretro.so --config /home/pi/RetroPie/configs/all/retroarch.cfg --appendconfig /home/pi/RetroPie/configs/nes/retroarch.cfg %ROM%"

and replaced %ROM% with the full path to the .NES file and nothing happens.. is there a log I can tail?

Aloshi commented 11 years ago

Try just the retroarch -L /home/pi/RetroPie/emulatorcores/fceu-next/fceumm-code/fceumm_libretro.so --config /home/pi/RetroPie/configs/all/retroarch.cfg --appendconfig /home/pi/RetroPie/configs/nes/retroarch.cfg %ROM% part, you should get more helpful output (since it won't be filtered through the runcommand script).

nerdwad commented 11 years ago

I get RetroArch errors about cannot find shared object and failed to load dynamic library. I'm thinking the NES emulator isn't installed, so I re-ran the retropie-setup script and installed the NES emulator but it didn't do anything, just immediately said "finished". So it doesn't look like it's related to ES. Sorry to have opened the issue here.

Aloshi commented 11 years ago

No problem. You might want to manually inspect the RetroPie/emulatorcores/fceu-next directory - the libretro core might be named something else for some reason.

nerdwad commented 11 years ago

Good call.. I'm rebuilding again now, will check it out. Thanks!

HorstBaerbel commented 11 years ago

Works for me (tm). Font rendering should be fixed anyway, because for different fonts the advance or something else doesn't work (try "Arial.ttf": For the string "fi" both characters melt into each other and the distance between some other characters is b0rked too)