cocos2d-html5 icon indicating copy to clipboard operation
cocos2d-html5 copied to clipboard

Catch LabelTTF errors

Open seagullua opened this issue 8 years ago • 1 comments

In some cases, LabelTTF can fire exceptions, which stops whole cocos from working. We have collected a bunch of errors from Sentry and added try/catch in places where the errors have occurred in real players.

seagullua avatar Jul 10 '16 20:07 seagullua

try catch will have significant impact on performance, can you be more specific about the issues you met ? I think we can add some defensive code, but try catch may not be a good idea

pandamicro avatar Jul 18 '16 05:07 pandamicro