Open zyrshui opened 3 weeks ago
目前反馈的都是 ios 8.0.53的
定位到Physics.Raycast(ray, out hit, Mathf.Infinity, 1 << LayerMask.NameToLayer("Ground")) 引起的崩溃,Physics.Raycast在小游戏里为啥会崩溃呢,
每天几百个报错都是ios的,安卓和pc都没有问题,怀疑是ios微信的和unity的兼容问题,怎么解决呢
是否联系到玩家,或者是否有复现路径?
大部分是切换场景的时候,发生的
描述Bug
WXUncaughtException WXUncaughtException@weapp://wechat-game-runtime/wxfs/game.js:211:1236 abort@weapp://wechat-game-runtime/wxfs/game.js:252:436476 <?>.wasm-function[b171]@[wasm code] <?>.wasm-function[redir_iiiiifiii]@[wasm code] <?>.wasm-function[ZN18MultiQueryCallbackIN5physx12PxRaycastHitEE6invokeERfRKNS0_2Sq13PrunerPayloadE]@[wasm code] <?>.wasm-function[redir_iiii]@[wasm code] <?>.wasm-function[ZN5physx2Gu15AABBTreeRaycastILb0ENS_2Sq8AABBTreeENS2_19AABBTreeRuntimeNodeENS2_13PrunerPayloadENS2_14PrunerCallbackEEclEPKS5_PKNS_9PxBounds3ERKS3_RKNS_6PxVec3ESH_RfSHRS6]@[wasm code] <?>.wasm-function[ZNK5physx2Sq10AABBPruner7raycastERKNS_6PxVec3ES4_RfRNS0_14PrunerCallbackE]@[wasm code] <?>.wasm-function[redir_iiiiii]@[wasm code] <?>.wasm-function[ZNK5physx14NpSceneQueries10multiQueryINS_12PxRaycastHitEEEbRKNS_15MultiQueryInputERNS_13PxHitCallbackIT_EENS_7PxFlagsINS_9PxHitFlag4EnumEtEEPKNS_12PxQueryCacheERKNS_17PxQueryFilterDataEPNS_21PxQueryFilterCallbackEPNS_20BatchQueryFilterDataE]@[wasm code] <?>.wasm-function[ZNK5physx14NpSceneQueries7raycastERKNS_6PxVec3ES3_fRNS_13PxHitCallbackINS_12PxRaycastHitEEENS_7PxFlagsINS_9PxHitFlag4EnumEtEERKNS_17PxQueryFilterDataEPNS_21PxQueryFilterCallbackEPKNS_12PxQueryCacheE]@[wasm code] <?>.wasm-function[redir_iiiifiiiii]@[wasm code] <?>.wasm-function[ZN5Unity12PhysicsQuery7RaycastEiRK3RayfR10RaycastHiti23QueryTriggerInteraction]@[wasm code] <?>.wasm-function[ZN12PhysXRaycast7RaycastEiRK3Rayfi23QueryTriggerInteractionR10RaycastHit]@[wasm code] <?>.wasm-function[redir_iiiifiii]@[wasm code] <?>.wasm-function[CameraScripting::RaycastTry(float&, int)]@[wasm code] <?>.wasm-function[CameraRaycastHelper_CUSTOM_RaycastTry_Injected(float&, int)]@[wasm code] <?>.wasm-function[redir_iiifi]@[wasm code] <?>.wasm-function[_CameraRaycastHelper_RaycastTry_Injected_m2326FE94A96F40A5D51E4261E68C5E42B914D894]@[wasm code] <?>.wasm-function[_CameraRaycastHelper_RaycastTry_m6E6369E18DAA7CA518D8B826E1030FFBDAA79B95]@[wasm code] <?>.wasm-function[_SendMouseEvents_DoSendMouseEvents_m045BF5CABD2F263140E5F1427F81702EE0D3C507]@[wasm code] <?>.wasm-function[redir_vii]@[wasm code] <?>.wasm-function[Z75RuntimeInvoker_FalseVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017_IntPtrtPFvvEPK10MethodInfoPvPS4]@[wasm code] <?>.wasm-function[redir_iiiii]@[wasm code] <?>.wasm-function[dynCall_iiiii]@[wasm code] @weapp://wechat-game-runtime/wxfs/game.js:252:396659 invoke_iiiii@weapp://wechat-game-runtime/wxfs/game.js:252:193462 <?>.wasm-function[ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException]@[wasm code] <?>.wasm-function[_il2cpp_runtime_invoke]@[wasm code] <?>.wasm-function[Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb]@[wasm code] <?>.wasm-function[ScriptingInvocation::Invoke(bool*)]@[wasm code] <?>.wasm-function[__ZN19ScriptingInvocation6InvokeIvEET_P21ScriptingExceptionPtrb]@[wasm code] <?>.wasm-function[ZN9Scripting11UnityEngine20SendMouseEventsProxy17DoSendMouseEventsEiP21ScriptingExceptionPtr]@[wasm code] <?>.wasm-function[ZZ36InternalInitializeModule_InputLegacyvEN35PreUpdateSendMouseEventsRegistrator7ForwardEv]@[wasm code] <?>.wasm-function[redir_v]@[wasm code] <?>.wasm-function[Z17ExecutePlayerLoopP22NativePlayerLoopSystem]@[wasm code] <?>.wasm-function[Z17ExecutePlayerLoopP22NativePlayerLoopSystem]@[wasm code] <?>.wasm-function[PlayerLoop()]@[wasm code] <?>.wasm-function[MainLoop()]@[wasm code] <?>.wasm-function[redir_v]@[wasm code] <?>.wasm-function[dynCall_v]@[wasm code] @weapp://wechat-game-runtime/wxfs/game.js:252:409702 browserIterationFunc@weapp://wechat-game-runtime/wxfs/game.js:242:1965 runIter@weapp://wechat-game-runtime/wxfs/game.js:252:1627 Browser_mainLoop_runner@weapp://wechat-game-runtime/wxfs/game.js:250:53 @weapp://wechat-game-runtime/wxfs/game.js:133:896 @weapp://wechat-game-runtime/wxcommlib/WAGameSubContext.js:1:192796 forEach@[native code] It@weapp://wechat-game-runtime:67:174785
运行环境