We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
games crash on Samsung Galaxy S2
games crash on Samsung Galaxy S2
Johan Losay wrote:
The same problem on Galaxy S2 here? Do you know why?
We had the same problem.
We modified Cocos2dxAccelerometer to call the native onSensorChanged on the GL thread using Cocos2dxGLSurfaceView’s queuevent. It fixed our crashes, hope this helps.
Diego R wrote:
`Clintwood Games
Do you mind posting your code with the fix you mentioned above?
Thanks!
in Cocos2dxAccelerometer.java in onSensorChanged
replaced:
onSensorChanged(x, y, z, event.timestamp);
with something like this:
surfaceView.queueEvent(new Runnable() { `Override
public void run() {
onSensorChanged(x, y, z, event.timestamp);
}
});
where surfaceView is the instance of Cocos2dxGLSurfaceView
- Target version changed from cocos2d-1.0.1-x-0.12.0 to 23
I think it is because of CocosDenshion, can refer http://www.cocos2d-x.org/boards/10/topics/7980?r=8056\#message-8056.
Should use opensl to implement CocosDenshion.
- Project changed from cocos2d-x to cpp
- Category deleted (
2) - Target version deleted (
23)
- Status changed from New to Closed
Duplicated with bug #1284, it’s caused by Samsung i9100’s audio driver.
We should add limitation when playing effects on i9100 to 32 sources synchronously.
cocos2d-x CCLabelTTF, CCEditBox crash workaround on Galaxy S2
void CCLabelTTF::setString(const char *string) { CCAssert(string != NULL, "Invalid string"); if(string == NULL || strlen(string) == 0) { string = " "; } if (m_string.compare(string)) { m_string = string; this->updateTexture(); } }
Status: | Closed | |
---|---|---|
Start date: | 2011-08-12 | |
Priority: | Normal | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | - | |
Target version: | - |
It’s reported by our developers, many games crash on Samsung Galaxy S2, i9100.