[已解决]支付闪退

在用母包跑的时候。支付弹框 确认支付–然后数据通信中,请稍后–然后通信成功,回到游戏界面 - 然后闪退。这是为什么?游戏内金额没加,然后后台测试账号的钱是扣了。

你是网游吧?你有在客户端上填写母包下支付回调吗?

闪退的话,提供下错误日志吧

错误日志是一大串的debug。
01-27 06:05:12.414: D/cocos2d-x debug info(25479): on action result: 0, msg: .
01-27 06:05:12.414: D/cocos2d-x debug info(25479): pay result----0
01-27 06:05:12.414: D/cocos2d-x debug info(25479):
01-27 06:05:12.414: D/cocos2d-x debug info(25479):
01-27 06:05:12.414: D/cocos2d-x debug info(25479): +Product_Price ‘10’’]
01-27 06:05:12.414: D/cocos2d-x debug info(25479): +Role_Name ‘R勒丽西娅’’]
01-27 06:05:12.414: D/cocos2d-x debug info(25479): +Product_Count ‘1’’]
01-27 06:05:12.414: D/cocos2d-x debug info(25479): +Product_Id ‘1’’]
01-27 06:05:12.414: D/cocos2d-x debug info(25479): +Role_Grade ‘73’’]
01-27 06:05:12.414: D/cocos2d-x debug info(25479): +Role_Id ‘89447’’]
01-27 06:05:12.414: D/cocos2d-x debug info(25479): +Role_Balance ‘1559’’]
01-27 06:05:12.414: D/cocos2d-x debug info(25479): +Server_Id ‘56’’]
01-27 06:05:12.414: D/cocos2d-x debug info(25479): +EXT ‘89447-200-100-1422338694’’]
01-27 06:05:12.414: D/cocos2d-x debug info(25479): +Product_Name ‘100钻石’’]
01-27 06:05:12.414: D/cocos2d-x debug info(25479): success
01-27 06:05:12.417: D/cocos2d-x debug info(25479): success1
01-27 06:05:12.453: I/DEBUG(24677): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-27 06:05:12.453: I/DEBUG(24677): Build fingerprint: ‘google/soju/crespo:2.3.6/GRK39F/189904:user/release-keys’
01-27 06:05:12.453: I/DEBUG(24677): pid: 25479, tid: 25811 >>> com.glee.lrms <<<
01-27 06:05:12.453: I/DEBUG(24677): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 489da004
01-27 06:05:12.453: I/DEBUG(24677): r0 00000000 r1 00000001 r2 afd46608 r3 489da000
01-27 06:05:12.453: I/DEBUG(24677): r4 afd46450 r5 44aba000 r6 489da008 r7 0000a000
01-27 06:05:12.453: I/DEBUG(24677): r8 00001000 r9 00000000 10 80f0aa40 fp 0000000c
01-27 06:05:12.453: I/DEBUG(24677): ip 00000000 sp 4b6fe708 lr afd10e60 pc afd131a6 cpsr 28000030
01-27 06:05:12.453: I/DEBUG(24677): d0 6974636e75662065 d1 4364646127206e63
01-27 06:05:12.453: I/DEBUG(24677): d2 200a2e27646c6974 d3 7567726120202065
01-27 06:05:12.453: I/DEBUG(24677): d4 20322320746e656d d5 6c62617427207369
01-27 06:05:12.453: I/DEBUG(24677): d6 4e434327203b2765 d7 707865202765646f
01-27 06:05:12.453: I/DEBUG(24677): d8 41a8000042940000 d9 42aa000042aa0000
01-27 06:05:12.453: I/DEBUG(24677): d10 0000000042280000 d11 0000000000000000
01-27 06:05:12.453: I/DEBUG(24677): d12 0000000000000000 d13 0000000000000000
01-27 06:05:12.453: I/DEBUG(24677): d14 0000000000000000 d15 0000000000000000
01-27 06:05:12.453: I/DEBUG(24677): d16 0000000000000000 d17 3fde6fd2844c8000
01-27 06:05:12.453: I/DEBUG(24677): d18 3fe0000000000000 d19 3fe0c816bdd9c000
01-27 06:05:12.453: I/DEBUG(24677): d20 3ff0000000000000 d21 8000000000000000
01-27 06:05:12.453: I/DEBUG(24677): d22 c038000000000000 d23 ff009a009a009a00
01-27 06:05:12.453: I/DEBUG(24677): d24 ff009a009a009a00 d25 ff009a009a009a00
01-27 06:05:12.453: I/DEBUG(24677): d26 0100010001000100 d27 0100010001000100
01-27 06:05:12.453: I/DEBUG(24677): d28 0100010001000100 d29 3ff0000000000000
01-27 06:05:12.453: I/DEBUG(24677): d30 0000000000000000 d31 3ff0000000000000
01-27 06:05:12.453: I/DEBUG(24677): scr 20000012
01-27 06:05:12.597: I/DEBUG(24677): #00 pc 000131a6 /system/lib/libc.so
01-27 06:05:12.597: I/DEBUG(24677): #01 pc 000144da /system/lib/libc.so
01-27 06:05:12.605: I/DEBUG(24677): code around pc:
01-27 06:05:12.605: I/DEBUG(24677): afd13184 f50c44fc f7fd70dc 2800ee50 824cf040
01-27 06:05:12.605: I/DEBUG(24677): afd13194 44a4f8df 0308f1a6 6927447c f0c042bb
01-27 06:05:12.605: I/DEBUG(24677): afd131a4 f8568237 07881c04 8232f140 0503f021
01-27 06:05:12.605: I/DEBUG(24677): afd131b4 07c9195a 80bbf100 1c08f856 d51007c8
01-27 06:05:12.609: I/DEBUG(24677): afd131c4 0101f021 1a58186d 46293510 ea0ef7f8
01-27 06:05:12.609: I/DEBUG(24677): code around lr:
01-27 06:05:12.609: I/DEBUG(24677): afd10e40 e2166903 1a000017 e5945000 e1a02004
01-27 06:05:12.609: I/DEBUG(24677): afd10e50 e2055a02 e1a00005 e3851001 ebffee24
01-27 06:05:12.609: I/DEBUG(24677): afd10e60 e3500000 13856002 1a000001 ea000009
01-27 06:05:12.609: I/DEBUG(24677): afd10e70 ebfffe52 e1a01004 e1a00006 ebffee24
01-27 06:05:12.609: I/DEBUG(24677): afd10e80 e1a01005 e1a02006 e3a03000 e1550000
01-27 06:05:12.617: I/DEBUG(24677): stack:
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6c8 002c0c58
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6cc 0000004e
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6d0 0211b798
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6d4 80b14873 /data/data/com.glee.lrms/lib/libgame.so
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6d8 0000001d
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6dc a23e25e8
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6e0 002c0cd0
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6e4 00cca7b0
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6e8 80f0aa40
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6ec 44aba000
01-27 06:05:12.617: I/DEBUG(24677): 4b6fe6f0 489da008
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe6f4 00000080
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe6f8 00001000
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe6fc 00000000
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe700 df002777
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe704 e3a070ad
01-27 06:05:12.621: I/DEBUG(24677): #00 4b6fe708 80f0aa40
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe70c 44aba000
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe710 44aba618
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe714 00000080
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe718 00001000
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe71c afd144dd /system/lib/libc.so
01-27 06:05:12.621: I/DEBUG(24677): #01 4b6fe720 80f0aa40
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe724 80a65383 /data/data/com.glee.lrms/lib/libgame.so
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe728 afd41504
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe72c afd1cad5 /system/lib/libc.so
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe730 00000002
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe734 4b6fe73c
01-27 06:05:12.621: I/DEBUG(24677): 4b6fe738 80de6560 /data/data/com.glee.lrms/lib/libgame.so
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe73c 80a65375 /data/data/com.glee.lrms/lib/libgame.so
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe740 80f0aa40
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe744 80eff000
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe748 800a5368
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe74c 00000001
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe750 00000002
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe754 00000002
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe758 80de6560 /data/data/com.glee.lrms/lib/libgame.so
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe75c 4b6feb64
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe760 46c5aea8
01-27 06:05:12.644: I/DEBUG(24677): 4b6fe764 03f898f8
01-27 06:05:13.921: I/BootReceiver(16999): Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE)
01-27 06:05:14.003: D/dalvikvm(16999): GC_FOR_MALLOC freed 779K, 50% free 6417K/12807K, external 1789K/2301K, paused 71ms
01-27 06:05:14.042: I/ActivityManager(16999): Process com.glee.lrms (pid 25479) has died.

母包下支付回调我在打包客户端里配置了,代码里应该不用写吧

— Begin quote from ____

引用第2楼sxlz1213于2015-01-27 14:16发表的 回 1楼(孤独の快乐) 的帖子 :
错误日志是一大串的debug。
01-27 06:05:12.414: D/cocos2d-x debug info(25479): on action result: 0, msg: .
01-27 06:05:12.414: D/cocos2d-x debug info(25479): pay result----0
01-27 06:05:12.414: D/cocos2d-x debug info(25479):
01-27 06:05:12.414: D/cocos2d-x debug info(25479):
http://www.cocoachina.com/bbs/job.php?action=topost&tid=283358&pid=1230505

— End quote

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 489da004

这个应该是C++代码里指针问题,你还是打log找找是哪句代码导致的错误吧

— Begin quote from ____

引用第3楼sxlz1213于2015-01-27 14:17发表的 :
母包下支付回调我在打包客户端里配置了,代码里应该不用写吧 http://www.cocoachina.com/bbs/job.php?action=topost&tid=283358&pid=1230508

— End quote

恩呀,你服务端没收到支付通知吗?

现在服务端有收到通知,然后重新登陆一次。看到游戏内钱也加了。可充值成功后。依然闪退。。

解决了,游戏内的有些涉及界面显示的处理感觉不能放在充值回调的那一帧里。我延迟一帧就没有问题了