Projects > cpp > Issues > Bug #624

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

Create Issue on Github

CCLabelTTF::setString("\n\n\n") crashes on android

Bug #624 [Closed]
walzer@cocos2d-x.org 2011-07-21 08:26 . Updated about 2 years ago

report at http://www.cocos2d-x.org/boards/10/topics/2526
I have reproduced this bug on DesireS by

    CCLabelTTF* pLabel = new CCLabelTTF;
    pLabel->initWithString("", "Arial", 34);
    pLabel->setString("\n\n\n");

If I replace “” to “abc”, it works normally

zhangxm 2011-07-24 19:13
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:698551eb8963730ca6f656cd631e93e91dd6235c.

walzer@cocos2d-x.org 2011-07-31 19:26
  • Status changed from Resolved to Closed
walzer@cocos2d-x.org 2012-05-25 08:06
  • Project changed from cocos2d-x to cpp
  • Category deleted (2)
  • Target version deleted (cocos2d-1.0.1-x-0.9.1)
ionliga 2014-11-28 14:49

The optimization introduces a bug where the priority and Touch Mode will not get changed if the list is locked.
The most straight forward fix is to merge the pHandlersToAdd and pHandlersToRemove into a queue and process through all of them in the order they are received

Pokerstar88.com Agen Texas Poker dan Domino Online Indonesia Terpercaya | Agen Bola | Taruhan Bola | Agen Bola | Olb365.com Agen Judi Bola Online, Agen Judi Casino Online Indonesia Terpercaya | Jasa SEO | Agen Sbobet

Atom PDF

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

100%

Category:-
Target version:-

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