playMaker

Author Topic: [Solved] Screen position out of view frustum  (Read 490 times)

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 35
[Solved] Screen position out of view frustum
« on: December 08, 2023, 07:24:55 PM »
Hi,
Before Unity 2022.13 everythings working fine in the Simulator. Since 13.14 and last 15 I can bypass this error:
Screen position out of view frustum (screen pos inf, inf) (Camera rect 0 0 1080 2280)

It's driving me nuts because i'm a bit reluctant to rollback to previous version of Unity, if I have to, so be it! But now if someone had already encounter this problem and know how to resolve it, it will be a relieve for me and maybe some in the future.  I tried every possible "solutions" found on the net but none works for me... urghhh! I tried to put "Mouse pick" instead of the custom one and it didn't work. If i'm in the "Game" tab and in Play Mode I got no error or breakpoints stops but it's not an Android environment and if I rollback to Simulator you know that Touch, swipe, UI, etc. aren't activated or not scaled accordingly. Tonight I will pray to the Playmaker Gods and Godesses! Here's the error code if needed to appease the Gods...

Screen position out of view frustum (screen pos inf, inf) (Camera rect 0 0 1080 2280)
0x00007ff78ca238ad (Unity) StackWalker::GetCurrentCallstack
0x00007ff78ca28979 (Unity) StackWalker::ShowCallstack
0x00007ff78d9f5891 (Unity) GetStacktrace
0x00007ff78e0ada7e (Unity) DebugStringToFile
0x00007ff78c33feb5 (Unity) Camera::ScreenPointToRay
0x00007ff78bb0751f (Unity) Camera_CUSTOM_ScreenPointToRay_Injected
0x000001eb94d7ab5a (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Camera:ScreenPointToRay_Injected (UnityEngine.Camera,UnityEngine.Vector2&,UnityEngine.Camera/MonoOrStereoscopicEye,UnityEngine.Ray&)
0x000001eb94d7aa0b (Mono JIT Code) UnityEngine.Camera:ScreenPointToRay (UnityEngine.Vector2,UnityEngine.Camera/MonoOrStereoscopicEye)
0x000001eb94d7a923 (Mono JIT Code) UnityEngine.Camera:ScreenPointToRay (UnityEngine.Vector3,UnityEngine.Camera/MonoOrStereoscopicEye)
0x000001eb94d7a7f3 (Mono JIT Code) UnityEngine.Camera:ScreenPointToRay (UnityEngine.Vector3)
0x000001eb94d7995b (Mono JIT Code) HutongGames.PlayMaker.Actions.CustomMousePick:DoMousePick () (at I:/UNITY/SKYSHADER/Assets/PlayMaker Custom Actions/Input/CustomMousePick.cs:102)
0x000001eb94d793b3 (Mono JIT Code) HutongGames.PlayMaker.Actions.CustomMousePick:OnEnter () (at I:/UNITY/SKYSHADER/Assets/PlayMaker Custom Actions/Input/CustomMousePick.cs:67)
0x000001eb8c376d18 (Mono JIT Code) HutongGames.PlayMaker.FsmState:ActivateActions (int) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:224)
0x000001eb8c376993 (Mono JIT Code) HutongGames.PlayMaker.FsmState:OnEnter () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:192)
0x000001eb8c37655b (Mono JIT Code) HutongGames.PlayMaker.Fsm:EnterState (HutongGames.PlayMaker.FsmState) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:3076)
0x000001eb8c3762fb (Mono JIT Code) HutongGames.PlayMaker.Fsm:SwitchState (HutongGames.PlayMaker.FsmState) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:3014)
0x000001eb8c3760f3 (Mono JIT Code) HutongGames.PlayMaker.Fsm:UpdateStateChanges () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2943)
0x000001eb8c3783fb (Mono JIT Code) HutongGames.PlayMaker.Fsm:DoTransition (HutongGames.PlayMaker.FsmTransition,bool) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2985)
0x000001eb8c377c8b (Mono JIT Code) HutongGames.PlayMaker.Fsm:ProcessEvent (HutongGames.PlayMaker.FsmEvent,HutongGames.PlayMaker.FsmEventData) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2508)
0x000001eb94d771db (Mono JIT Code) HutongGames.PlayMaker.Fsm:BroadcastEvent (HutongGames.PlayMaker.FsmEvent,bool) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2779)
0x000001eb8c3774fb (Mono JIT Code) HutongGames.PlayMaker.Fsm:Event (HutongGames.PlayMaker.FsmEventTarget,HutongGames.PlayMaker.FsmEvent) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2663)
0x000001eb94d76a5b (Mono JIT Code) HutongGames.PlayMaker.Actions.SendEvent:OnEnter () (at I:/UNITY/SKYSHADER/Assets/PlayMaker/Actions/StateMachine/SendEvent.cs:43)
0x000001eb8c376d18 (Mono JIT Code) HutongGames.PlayMaker.FsmState:ActivateActions (int) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:224)
0x000001eb8c376993 (Mono JIT Code) HutongGames.PlayMaker.FsmState:OnEnter () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:192)
0x000001eb8c37655b (Mono JIT Code) HutongGames.PlayMaker.Fsm:EnterState (HutongGames.PlayMaker.FsmState) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:3076)
0x000001eb8c3762fb (Mono JIT Code) HutongGames.PlayMaker.Fsm:SwitchState (HutongGames.PlayMaker.FsmState) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:3014)
0x000001eb8c3760f3 (Mono JIT Code) HutongGames.PlayMaker.Fsm:UpdateStateChanges () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2943)
0x000001eb8c3783fb (Mono JIT Code) HutongGames.PlayMaker.Fsm:DoTransition (HutongGames.PlayMaker.FsmTransition,bool) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2985)
0x000001eb8c377d6b (Mono JIT Code) HutongGames.PlayMaker.Fsm:ProcessEvent (HutongGames.PlayMaker.FsmEvent,HutongGames.PlayMaker.FsmEventData) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2528)
0x000001eb8c377373 (Mono JIT Code) HutongGames.PlayMaker.Fsm:Event (HutongGames.PlayMaker.FsmEventTarget,HutongGames.PlayMaker.FsmEvent) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2637)
0x000001eb94d5679b (Mono JIT Code) HutongGames.PlayMaker.Fsm:Event (HutongGames.PlayMaker.FsmEvent) (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2725)
0x000001ebaa72c63b (Mono JIT Code) iTweenFSMEvents:iTweenOnComplete (int) (at I:/UNITY/SKYSHADER/Assets/PlayMaker/Actions/iTween/Include/iTweenFSMEvents.cs:28)
0x000001eb94d8b836 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___int (object,intptr,intptr,intptr)
0x00007ffa1c4c4b7e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffa1c3fd204 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ffa1c3fd37c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff78c93d564 (Unity) scripting_method_invoke
0x00007ff78c91b8e4 (Unity) ScriptingInvocation::Invoke
0x00007ff78c90a2ab (Unity) MonoBehaviour::InvokeMethodOrCoroutineChecked
0x00007ff78c90a3b6 (Unity) MonoBehaviour::InvokeMethodOrCoroutineChecked
0x00007ff78c91dc53 (Unity) Scripting::SendScriptingMessage
0x00007ff78c91d98e (Unity) Scripting::SendScriptingMessage
0x00007ff78b976a2a (Unity) GameObject_CUSTOM_SendMessage
0x000001eb94d8b64a (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GameObject:SendMessage (UnityEngine.GameObject,string,object,UnityEngine.SendMessageOptions)
0x000001eb94d8b4f3 (Mono JIT Code) iTween:CallBack (string) (at I:/UNITY/SKYSHADER/Assets/Plugins/Pixelplacement/iTween/iTween.cs:6756)
0x000001ebaa72c37b (Mono JIT Code) iTween:TweenComplete () (at I:/UNITY/SKYSHADER/Assets/Plugins/Pixelplacement/iTween/iTween.cs:4479)
0x000001eb94da56e3 (Mono JIT Code) iTween:Update () (at I:/UNITY/SKYSHADER/Assets/Plugins/Pixelplacement/iTween/iTween.cs:6268)
0x000001ebaac95bc8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffa1c4c4b7e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffa1c3fd204 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ffa1c3fd37c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff78c93d564 (Unity) scripting_method_invoke
0x00007ff78c91b8e4 (Unity) ScriptingInvocation::Invoke
0x00007ff78c9032c4 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff78c9033ea (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff78c39e5eb (Unity) BaseBehaviourManager::CommonUpdate<BehaviourManager>
0x00007ff78c3a5dfa (Unity) BehaviourManager::Update
0x00007ff78c5d64bd (Unity) `InitPlayerLoopCallbacks'::`2'::UpdateScriptRunBehaviourUpdateRegistrator::Forward
0x00007ff78c5b5a9c (Unity) ExecutePlayerLoop
0x00007ff78c5b5c10 (Unity) ExecutePlayerLoop
0x00007ff78c5bc4a5 (Unity) PlayerLoop
0x00007ff78d57d4cf (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff78d58a2dd (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff78d5885e1 (Unity) Application::TickTimer
0x00007ff78d9fc20a (Unity) MainMessageLoop
0x00007ff78da01aa0 (Unity) WinMain
0x00007ff78eddef2e (Unity) __scrt_common_main_seh
0x00007ffa97fe7344 (KERNEL32) BaseThreadInitThunk
0x00007ffa981226b1 (ntdll) RtlUserThreadStart
« Last Edit: December 09, 2023, 09:07:24 PM by LeDisciple »

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 35
Re: Screen position out of view frustum
« Reply #1 on: December 08, 2023, 08:42:52 PM »
Ok, I found that if I Load my "Game" Scene  from my "Menu" Scene everything's all good. but It's a bit PITA to not start from my game scene like I can do as I said in previous Unity Editor before 2022.3.13. I'm gonna work this way until I found something or a solution by someone somewhere.

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 35
Re: Screen position out of view frustum
« Reply #2 on: December 09, 2023, 09:04:12 PM »
Ok I found my solution, I needed to redesign my logic to bypass the "touch event" and removed what I used to get Delta and time because before it was terribly sensitive on Android because of the resolution. So, I just added a touch Event to start the finger recognition and put my 2 "custom Mouse Pick & Touch Object Event" on my next State and Desactive (Yeah! I keep them in case of something got wrong! ;) I'll do the laundry in time and place!) all others "unecessary" actions. So here a pic with the Blessing Green Flow at the bottom right!! At the end I learned that "mouse pick" and "Touch Event" are a little bit... touchy now! :p
« Last Edit: December 09, 2023, 09:06:57 PM by LeDisciple »