Cocos2d-x3.0 development game models (graphics card type) crash problem, cocos2d-x3.0 Models

Source: Internet
Author: User

Cocos2d-x3.0 development game models (graphics card type) crash problem, cocos2d-x3.0 Models
Extended cocos2d-x3.0 bottom layer support etc image format, replace the model in the game with the etc format picture. Previously, it could run on lenovo (lenovo S880, with a video card type of PowerVP SGX 531), but it flashed back when it switched to the etc image and entered the game to load the model.
At present, this problem does not exist in most other models, and only some machines will crash. Preliminary judgment may be due to a video card problem. The video card type of this machine is PowerVR SGX 531. Do you have the same or similar problems?

Paste the error message on eclipse DDMS:

12-20 15:11:48. 559: A/libc (2909): Fatal signal 11 (SIGSEGV) at 0x53f47000 (code = 1)
12-20 15:11:48. 992: D/NetworkControllerGemini (309): updateTelephonySignalStrength (0) mOldSignalLevel = 4, msg. arg1 = 4, mSignalLevelMsg = true
12-20 15:11:48. 993: D/NetworkControllerGemini (309): isSimInserted (0), SimInserted = true
12-20 15:11:48. 993: D/NetworkControllerGemini (309): updateSignalBackgroundBySlotId (0), simInserted = true
12-20 15:11:48. 993: D/NetworkControllerGemini (309): isSimInserted (0), SimInserted = true
12-20 15:11:48. 994: D/NetworkControllerGemini (309): isSimInserted (1), SimInserted = true
12-20 15:11:48. 994: D/NetworkControllerGemini (309): updateOperatorInfo, sim1Inserted is true, sim2Inserted is true.
12-20 15:11:48. 994: D/NetworkControllerGemini (309): updateSignalBackgroundBySlotId (0), MobileVisible = true, ResId = 2130837922
12-20 15:11:48. 994: D/NetworkControllerGemini (309): refreshViews (0), DataConnected = true
12-20 15:11:48. 994: D/NetworkControllerGemini (309): refreshViews (0), mMobileActivityIconId = 2130837889, mMobileActivityIconIdGemini =-1
12-20 15:11:48. 994: D/SignalClusterViewGemini (309): setDataConnected (0), dataConnected = true
12-20 15:11:48. 994: D/SignalClusterViewGemini (309): apply, mMobileVisible = true mMobileActivityId = 2130837889 mMobileTypeId = 2130837775
12-20 15:11:48. 994: D/SignalClusterViewGemini (309): isSimInserted (0), SimInserted = true
12-20 15:11:48. 995: D/SignalClusterViewGemini (309): apply, mSIMBackground = 2130837922
12-20 15:11:48. 995: D/SignalClusterViewGemini (309): apply, mMobileVisibleGemini = true mMobileActivityIdGemini = 0 mMobileTypeIdGemini = 0
12-20 15:11:48. 996: D/SignalClusterViewGemini (309): isSimInserted (1), SimInserted = true
12-20 15:11:48. 996: D/SignalClusterViewGemini (309): apply, mSIMBackgroundGemini = 2130837924
12-20 15:11:48. 996: D/SignalClusterViewGemini (309): apply, mDataConnected = true mMobileActivityId = 2130837889 mMobileTypeId = 2130837775; rules = false mMobileActivityIdGemini = 0 mMobileTypeIdGemini = 0
12-20 15:11:48. 996: D/SignalClusterViewGemini (309): setDataNetType3G (0), dataNetType3G = true
12-20 15:11:48. 996: D/SignalClusterViewGemini (309): apply, mMobileVisible = true mMobileActivityId = 2130837889 mMobileTypeId = 2130837775
12-20 15:11:48. 997: D/SignalClusterViewGemini (309): isSimInserted (0), SimInserted = true
12-20 15:11:48. 997: D/SignalClusterViewGemini (309): apply, mSIMBackground = 2130837922
12-20 15:11:48. 997: D/SignalClusterViewGemini (309): apply, mMobileVisibleGemini = true mMobileActivityIdGemini = 0 mMobileTypeIdGemini = 0
12-20 15:11:48. 998: D/SignalClusterViewGemini (309): isSimInserted (1), SimInserted = true
12-20 15:11:48. 998: D/SignalClusterViewGemini (309): apply, mSIMBackgroundGemini = 2130837924
12-20 15:11:48. 998: D/SignalClusterViewGemini (309): apply, mDataConnected = true mMobileActivityId = 2130837889 mMobileTypeId = 2130837775; rules = false mMobileActivityIdGemini = 0 mMobileTypeIdGemini = 0
12-20 15:11:48. 998: D/NetworkControllerGemini (309): updateTelephonySignalStrength (0) checkNeedtoSmoothSignal (real_asu = 25, new_asu = 25)
12-20 15:11:49. 164: I/DEBUG (92): debugadh: tmb file path: '/data/tombstones/tombstone_03'
12-20 15:11:49. 164: I/DEBUG (92 ): **************************************** ********
12-20 15:11:49. 164: I/DEBUG (92): Build fingerprint: 'lenovo/s880/s880: 4.0.3/IML74K/Lenovo_S880_S140_120721: user/release-keys'
12-20 15:11:49. 164: I/DEBUG (92): pid: 2909, tid: 2929 >>> com. test <
12-20 15:11:49. 164: I/DEBUG (92): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 53f47000
12-20 15:11:49. 165: I/DEBUG (92): r0 5a1ee720 r1 53f46ff8 r2 000000c0 r3 00000000
12-20 15:11:49. 165: I/DEBUG (92): r4 00000000 r5 00000000 r6 00000000 r7 00000000
12-20 15:11:49. 165: I/DEBUG (92): r8 00000000 r9 000697d0 10 5a1f0700 fp 00000008
12-20 15:11:49. 165: I/DEBUG (92): ip 00000000 sp 520cf734 lr 00000007 pc 400d4ce8 cpsr 20000010
12-20 15:11:49. 287: I/DEBUG (92): #00 pc performandce8/system/lib/libc. so
12-20 15:11:49. 287: D/AEE/debugadh (92): stack_depth: 1
12-20 15:11:49. 287: I/DEBUG (92): #01 lr 00000007 <unknown>
12-20 15:11:49. 287: I/DEBUG (92): code around pc:
12-20 15:11:49. 288: I/DEBUG (92): 400d4cc8 24d15001 44c03001 24c04001 24c05001. P. $. 0. D. @. $. P. $
12-20 15:11:49. 288: I/DEBUG (92): 400d4cd8 e2522020 ba42405 f5d1f060 f5d1f080 R .....'.......
12-20 15:11:49. 288: I/DEBUG (92): 400d4ce8 e8b151f8 e2522020 e8a051f8 aafffffa. Q ......
12-20 15:11:49. 288: I/DEBUG (92): 400d4cf8 e2922020 0a00000c e1b0ce02 28b10078 ..(
12-20 15:11:49. 288: I/DEBUG (92): 400d4d08 48b10180 28a00078 48a00180 e1b0cf02 ...... Hx ....
12-20 15:11:49. 288: I/DEBUG (92): code around lr:
12-20 15:11:49. 288: I/DEBUG (92): 00000000 ffffffffff ffffffff ................
12-20 15:11:49. 288: I/DEBUG (92): 00000010 ffffffffff ffffffff ................
12-20 15:11:49. 288: I/DEBUG (92): 00000020 ffffffffff ffffffff ................
12-20 15:11:49. 288: I/DEBUG (92): 00000030 ffffffffff ffffffff ................
12-20 15:11:49. 288: I/DEBUG (92): 00000040 ffffffffff ffffffff ................
12-20 15:11:49. 288: I/DEBUG (92): memory map around addr 53f47000:
12-20 15:11:49. 288: I/DEBUG (92): 53edd000-53f47000
12-20 15:11:49. 288: I/DEBUG (92): (no map for address)
12-20 15:11:49. 288: I/DEBUG (92): 53f73000-53f74000/dev/pvrsrvkm
12-20 15:11:49. 288: I/DEBUG (92): stack:
12-20 15:11:49. 288: I/DEBUG (92): 520cf6f4 00000000
12-20 15:11:49. 288: I/DEBUG (92): 520cf6f8 00000000
12-20 15:11:49. 288: I/DEBUG (92): 520cf6fc 00000000
12-20 15:11:49. 288: I/DEBUG (92): 520cf700 00000000
12-20 15:11:49. 288: I/DEBUG (92): 520cf704 00000008
12-20 15:11:49. 288: I/DEBUG (92): 520cf708 00000000
12-20 15:11:49. 288: I/DEBUG (92): 520cf70c 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf710 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf714 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf718 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf71c 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf720 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf724 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf728 df0027ad
12-20 15:11:49. 289: I/DEBUG (92): 520cf72c 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf730 020a8108 [heap]
12-20 15:11:49. 289: I/DEBUG (92): #00 520cf734 53f470d8
12-20 15:11:49. 289: I/DEBUG (92): 520cf738 00000100
12-20 15:11:49. 289: I/DEBUG (92): 520cf73c 00000009
12-20 15:11:49. 289: I/DEBUG (92): 520cf740 020a8108 [heap]
12-20 15:11:49. 289: I/DEBUG (92): 520cf744 53edd008
12-20 15:11:49. 289: I/DEBUG (92): 520cf748 5a1ee700/dev/pvrsrvkm
12-20 15:11:49. 289: I/DEBUG (92): 520cf74c 4ccafff4/system/vendor/lib/egl/libGLESv2_mtk.so
12-20 15:11:49. 289: I/DEBUG (92): 520cf750 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf754 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf758 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf75c 00000000
12-20 15:11:49. 289: I/DEBUG (92): 520cf760 520cf7bc
12-20 15:11:49. 290: I/DEBUG (92): 520cf764 00000000
12-20 15:11:49. 290: I/DEBUG (92): 520cf768 00000000
12-20 15:11:49. 290: I/DEBUG (92): 520cf76c 5a1de700/dev/pvrsrvkm
12-20 15:11:49. 290: I/DEBUG (92): 520cf770 00000000
12-20 15:11:49. 290: I/DEBUG (92): 520cf774 00000000
12-20 15:11:49. 290: I/DEBUG (92): 520cf778 00000037
12-20 15:11:49. 445: D/AEE/debugadh (92): stack_depth: 19


Summarize the possible causes of game crash: 1. resources are not optimized, causing too much memory to be occupied and forced to exit by the system; 2. resources are too large to support explicit memory, leading to crash; 3. the image size is too large (some low-end models only support a maximum image size of 1024, so pay attention to this); 4. the image is not the power of 2, and some graphics cards do not support images that are not the power of 2 (this crash is due to the use of the etc material, the video card does not support the power of the etc image instead of the power of 2, but supports png instead of the power of 2, so it took a long time to find this problem ). Attached to my question link on cocosChina

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.