Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua Call Stack (infinity) #374

Open
dominiczeth opened this issue Jan 16, 2025 · 12 comments
Open

Lua Call Stack (infinity) #374

dominiczeth opened this issue Jan 16, 2025 · 12 comments
Assignees
Labels
waiting for user User answer needed

Comments

@dominiczeth
Copy link

dominiczeth commented Jan 16, 2025

Version

8.0.0.6

Spielversion

1.4.0.0

SP/MP

SP (Singleplayer)

Was ist passiert?

Plötzlicher Fehler, Lua Call Stack, Spiel war nicht mehr Steuerbar, Es wurden riesige Koordinaten angezeigt (Leider kein Screenshot da es sich komplett aufgehangen hat)
Ach ja ich hab auf der USA map gespielt (komm gerade nicht drauf wie heißt)
2025-01-16 10:24 Validity check failed in TransformGroup_worldToLocal: D:\auto_builder\cache\svn\8022dc32ec56c80b0ff1ab93fb984fac\src\engine\app\ReflectionAndScriptBinding.cpp (10054): MathUtil::isFinite(pArgs->arg[2].f)2025-01-16 10:24 Script error: Argument is an infinity LUA call stack: =[C]:-1 worldToLocal =C:/Users/domin/OneDrive/Documents/My Games/FarmingSimulator2025/mods/FS25_Courseplay/scripts/ai/FieldWorkerProximityController.lua:107 getFieldWorkProximity =C:/Users/domin/OneDrive/Documents/My Games/FarmingSimulator2025/mods/FS25_Courseplay/scripts/ai/strategies/AIDriveStrategyFieldWorkCourse.lua:855 getFieldWorkProximity =C:/Users/domin/OneDrive/Documents/My Games/FarmingSimulator2025/mods/FS25_Courseplay/scripts/ai/FieldWorkerProximityController.lua:146 getMaxSpeed =C:/Users/domin/OneDrive/Documents/My Games/FarmingSimulator2025/mods/FS25_Courseplay/scripts/ai/strategies/AIDriveStrategyFieldWorkCourse.lua:220 checkDistanceToOtherFieldWorkers =C:/Users/domin/OneDrive/Documents/My Games/FarmingSimulator2025/mods/FS25_Courseplay/scripts/ai/strategies/AIDriveStrategyFieldWorkCourse.lua:213 getDriveData =dataS/scripts/vehicles/specializations/AIFieldWorker.lua:330 updateAIFieldWorker =dataS/scripts/vehicles/specializations/AIFieldWorker.lua:310 onUpdate =[C]:-1 xpcall =C:/Users/domin/OneDrive/Documents/My Games/FarmingSimulator2025/mods/FS25_Courseplay/scripts/CpUtil.lua:267 try =C:/Users/domin/OneDrive/Documents/My Games/FarmingSimulator2025/mods/FS25_Courseplay/scripts/specializations/CpAIFieldWorker.lua:309 onUpdate =dataS/scripts/utils/Utils.lua:601 =dataS/scripts/specialization/SpecializationUtil.lua:56 raiseEvent =dataS/scripts/vehicles/Vehicle.lua:1890 update =dataS/scripts/network/NetworkNode.lua:164 updateActiveObjects =dataS/scripts/network/Server.lua:64 update =dataS/scripts/BaseMission.lua:1017 update =dataS/scripts/FSBaseMission.lua:1936 update =dataS/scripts/mission00.lua:658 update =dataS/scripts/main.lua:1195 update

Log ist 50mb Groß, immer dieser Fehler zum Schluss...

Wie können wir diesen Fehler nachstellen?

Ich hatte mehrere CP Kurse am laufen, einmal Walzen, einmal Ballen wickeln, Baumwolle Ernten, das lief aber bis zu dem Crash wunderbar.

Was hätte passieren sollen?

Kein Crash ;)

Bitte hänge deine log.txt an!

log (2).zip

Screenshots

Keine da ich nicht in der Lage war einen zu erstellen...

@Tensuko
Copy link
Contributor

Tensuko commented Jan 16, 2025

We need the complete log.txt

@Tensuko Tensuko added the waiting for user User answer needed label Jan 16, 2025
@dominiczeth
Copy link
Author

dominiczeth commented Jan 16, 2025

I know and it's the complete log. I think it gets cut when it's bigger then 50mb? Don't know, I just zipped the whole log without changes. I was a bit surprised too that there is only this call stack in it.
Save game was corrupted too btw, stuck at 99%.

Tried to do the same with a backup save file but for now no Errors.

I can attach a log from now without the call stack if that helps.

@Tensuko
Copy link
Contributor

Tensuko commented Jan 16, 2025

yeah that would be okay

@dominiczeth
Copy link
Author

dominiczeth commented Jan 16, 2025

log.txt
Here you go. I used CP and AD very often there. Hope that helps. Didn't had this crash there.

I think the call stack happened when the bale wrapper was finished but couldn't check because I was in a different vehicle and could not change the vehicle. It was a mission with a borrowed vehicle and tool. The mission was on field 84.

@pvaiko
Copy link
Contributor

pvaiko commented Jan 16, 2025

Es wurden riesige Koordinaten angezeigt (Leider kein Screenshot da es sich komplett aufgehangen hat)

Where exactly you saw them? Coordinates of what?

@dominiczeth
Copy link
Author

dominiczeth commented Jan 16, 2025

They were long lines of numbers, once where the minimap is (the standard coordinates, but very long numbers).
And oddly the same very long number on the buttom right side but in much bigger letters. Maybe the size of the speed display I would say.

Edit: when I think about it, the big number on the right side was the actual speed display.
If you need it I can try to "rebuild" it with a screenshot and paint.

At this moment I wasn't able to move around, the whole 3d scene was frozen. But I was able to go to the menu, but there it lagged like crazy which is to be expected when I see this log.

@pvaiko
Copy link
Contributor

pvaiko commented Jan 16, 2025

Thanks, no need to paint it, if you can reproduce, that would be interesting. But if it is the coordinates and the speed, then it isn't likely a CP problem, I saw this error with infinity in another issue, may somehow be related with their new Luau interpreter, but no idea how can we find the root cause.

@dominiczeth
Copy link
Author

Sure I will report back in case I can reproduce it.

@pvaiko
Copy link
Contributor

pvaiko commented Jan 16, 2025

The speed being a huge number may indicate, that the Giants engine somehow messed up the vehicle coordinates, putting them infinitely far away which resulted in an infinitely high speed. Looked at our code where it complains about the infinite number, we don't manipulate that number, we just store the coordinate what the Giants engine gives us.

This really doesn't sound something CP screwing up, but of course, I can't rule it out.

@pvaiko pvaiko changed the title Lua Call Stack Lua Call Stack (infinity) Jan 16, 2025
@dominiczeth
Copy link
Author

dominiczeth commented Jan 16, 2025

That sounds reasonable. I only reached out to you because I saw CP in the log.

So if I understand this right, the call stack is because CP just tried to store an infinite number right?

If it's a bug in the giants engine I can report that to giants as well.

@dominiczeth
Copy link
Author

dominiczeth commented Jan 19, 2025

Had it again today, while rolling.

Image

log.txt

The Roller was this: https://www.farming-simulator.com/mod.php?mod_id=305467&title=fs2025

Will try an vanilla roller next and see what happens.

@dominiczeth
Copy link
Author

I found something interesting, this linked mod sometimes clips into the ground. While the giants engine seems to not have a problem with this, CP seems to not like this behaviour. Is there any way to detect this strange coordinates and stop CP when this happens?
I had the small tedder once from the vanilla game and this likes it too to sink into the ground. But didn't used CP there, just the vanilla helper.
It's just a guess so could be something else.
With a vanilla roller it did not happen until now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for user User answer needed
Projects
None yet
Development

No branches or pull requests

3 participants