Projects > cpp > Issues > Bug #530

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

[android] BitmapDC::getTextExtentPoint() crashed on android 3.0

Bug #530 [Closed]
zhangbin@cocos2d-x.org 2011-06-21 00:52 . Updated over 4 years ago

The application will be crashed sometimes when the method *CCLabelTTF::setString()* is invoked.

It’s crashed in source:cocos2dx/platform/android/CCImage_android.cpp. The crashed code is:

bool getTextExtentPoint(const char * pszText, int *pWidth, int *pHeight)
{
    ...

    // this line crashed
    m_pPaint->getFontMetrics(&font);

    ...
}
zhangxm 2011-06-24 00:43
  • Status changed from New to Closed

Now, we don’t use skia to drawing string, so this bug isn’t exist.

yangws 2011-06-27 20:01
  • Target version changed from 9 to cocos2d-0.99.5-x-0.8.5
walzer@cocos2d-x.org 2012-05-25 08:10
  • Project changed from cocos2d-x to cpp
  • Category deleted (2)
  • Target version deleted (cocos2d-0.99.5-x-0.8.5)

Atom PDF

Status:Closed
Start date:2011-06-21
Priority:Normal
Due date:
Assignee:-
% Done:

0%

Category:-
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.