@sharyu 写道:
cocos2d-html5 3.12, 在android上使用jsb.AssetsManager。
1. 更新过程中,会突然卡死,画面卡死,但log还在输出。屏幕上的进度显示就定在8.114558219909668。log输出如下:D/cocos2d-x debug info(13203): JS: ASSET_UPDATED D/cocos2d-x debug info(13203): JS: percent:0/filepercent:8.092862129211426 D/Cocos2dxDownloader(13203): onSuccess(i:200 headers:[Lorg.apache.http.Header;@4286f438 file:/data/data/xxx/files/res/downloadfiles/unit/full/180205.png.tmp D/Cocos2dxDownloader(13203): onSuccess(i:200 headers:[Lorg.apache.http.Header;@42866950 file:/data/data/xxx/files/res/downloadfiles/animation/spine/5001_skill_rank_3.atlas.tmp D/cocos2d-x debug info(13203): JS: ASSET_UPDATED D/cocos2d-x debug info(13203): JS: percent:0/filepercent:8.098285675048828 D/cocos2d-x debug info(13203): JS: ASSET_UPDATED D/cocos2d-x debug info(13203): JS: percent:0/filepercent:8.103710174560547 D/cocos2d-x debug info(13203): JS: ASSET_UPDATED D/cocos2d-x debug info(13203): JS: percent:0/filepercent:8.109134674072266 D/cocos2d-x debug info(13203): JS: ASSET_UPDATED D/cocos2d-x debug info(13203): JS: percent:0/filepercent:8.114558219909668 E/dalvikvm( 5814): Thread creation failed (err=Invalid argument) D/Cocos2dxDownloader(13203): onSuccess(i:200 headers:[Lorg.apache.http.Header;@426634c8 file:/data/data/xxx/files/res/downloadfiles/sound/3701_sys_028.mp3.tmp D/Cocos2dxDownloader(13203): onSuccess(i:200 headers:[Lorg.apache.http.Header;@42662a58 file:/data/data/xxx/files/res/downloadfiles/animation/spine/801_skill_rank_2_1.json.tmp
2.游戏切换到后台,assetmanager不会暂停,如何让am暂停和继续呢,没看到相关API。
帖子: 1
参与者: 1