Comments (6)
This may or may not be possible, but a suggestion: place a try..catch block around all of the code in flightinputhandler.fixedupdate() so that errors in kos cannot propagate into the game and cause a crash; simply logging the error to the game log will allow you to debug the error if you so choose.
from kos.
There are a few validations to avoid this already, I'm curious in how you manage to reproduce the error (if you can, post some code example).
from kos.
I probably cannot reproduce the error. I suspect that the game was paused at just the right moment after the checks occurred, yet before the values were used in calculations.
from kos.
Added a LOT of validations in the steering code so it doesn't crash when its fed some invalid values. When an invalid value is found the steering code is aborted but fails silently without informing the user, so I won't close the issue until that is addressed (just logging the exception doesn't really work because this code is called on every frame and it would spam the log with messages).
In the process I also added a config option to disable the current "safe mode" and allow NaNs and Infinities back into the stack (using "set config:safe to false.") and then I tried to crash the game using this values without success.
Everyone is welcome to try and crash the game :)
from kos.
Thank you. I had been changing my scripts to handle the infinity problem but I may try changing them back. I rather like the idea of a status message on the screen saying "terminal velocity: Infinity" rather than "terminal velocity: 999999" when the craft enters a vacuum.
from kos.
I havent been able to reproduce this error. If it comes back we will have to revisit
from kos.
Related Issues (20)
- Strange "too many arguments" error when calling iterator:next.
- TERRAINHEIGHT can still error when a scanner arm exists. Change to mask so it uses trigger flag.
- Infernal Robotics Addon not Available
- DLC robotics parts return half value for mass when iterated over HOT 1
- issue with duplicate module field names HOT 2
- KOSDelegate.InsertPreBoundArgs: Stack arg bottom missing. HOT 1
- RCS:THRUSTVECTORS lists available vectors from all part variants HOT 1
- PIDLoop parameters in SteeringManager:PITCHPID/YAWPID change inconsistently HOT 7
- Update docs "Creating GUIs", examples use gui as a variable HOT 1
- (RP-1 only) probe core is 6x heavier in flight scene than in VAB (disk space mass calculated wrong). HOT 3
- Borken links [DOCUMENTATION]
- Can't set SASMODE... maybe RemoteTech-related
- Stack misalignment bug HOT 3
- Scope seems to be considered differently 'on board' and 'in Archive' HOT 4
- Resizing terminal repeatedly causes a memory leak [BUG]
- Feature Request: "On Script Error" setting on controller part
- Setting part module field value has no effect for some mods
- docs:"make latexpdf" generates only 19 pages (and they are almost empty) HOT 1
- Some system monospace fonts are not recognized by kOS terminal HOT 2
- Redundancy in compiled form of UNTIL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kos.