[LayaAir 1.0]1.0 打包apk闪退 有日志 应该是跟引擎网络模块相关
只要不发送网络请求就没问题,一有网络相关就会闪退,后台日志堆栈
#00 pc 00000000004aa400 /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so (laya::isValidHTTPHeaderValue(char const*)+48) [arm64-v8a]
2 #01 pc 00000000004aaff0 /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so (laya::XMLHttpRequest::setRequestHeader(char const*, char const*)+116) [arm64-v8a]
3 #02 pc 00000000004a7478 /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so (laya::imp_JS2CFunc<void (laya::XMLHttpRequest::*)(char const*, char const*)>::call(v8::FunctionCallbackInfo<v8::Value> const&)+404) [arm64-v8a]
4 #03 pc 00000000009bfcbc /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so (v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))+148) [arm64-v8a]
5 #04 pc 0000000000688a88 /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so [arm64-v8a]
6 #05 pc 0000000000688f18 /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so [arm64-v8a]
7 #06 pc 0000007c764060d0 <unknown>
8 java:
9 [Failed to get Java stack]
#00 pc 00000000004aa400 /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so (laya::isValidHTTPHeaderValue(char const*)+48) [arm64-v8a]
2 #01 pc 00000000004aaff0 /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so (laya::XMLHttpRequest::setRequestHeader(char const*, char const*)+116) [arm64-v8a]
3 #02 pc 00000000004a7478 /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so (laya::imp_JS2CFunc<void (laya::XMLHttpRequest::*)(char const*, char const*)>::call(v8::FunctionCallbackInfo<v8::Value> const&)+404) [arm64-v8a]
4 #03 pc 00000000009bfcbc /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so (v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))+148) [arm64-v8a]
5 #04 pc 0000000000688a88 /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so [arm64-v8a]
6 #05 pc 0000000000688f18 /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so [arm64-v8a]
7 #06 pc 0000007c764060d0 <unknown>
8 java:
9 [Failed to get Java stack]
没有找到相关结果
已邀请:
3 个回复
Nevermore
赞同来自:
这个问题是因为 http 请求 head 里面传了一个空字串, 猜测引擎是没有做判空处理。就崩溃了。
我在native 2.5.0 版本上也出现了。 1.0这个应该是一样的。
Nevermore
赞同来自:
Aar0n
赞同来自: