Try to fix these random errors in buildlogString that are making it impossible to find where an error happened.
Just call printStackTrace on exceptions, and log them prior to trying to display ingame.