Print error stacktrace in Surface during renderSelection.