Project

General

Profile

Bug #2338

Claw Null Reference Exception

Added by NitroXpress almost 11 years ago. Updated over 8 years ago.

Status:
Closed
Severity:
Low
Assignee:
-
Category:
Gameplay
Target version:
-
Start date:
04/03/2014
% Done:

100%

Version:
Platform:
Win32
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

This bug is happening with clean installs of the game and no mods installed ever. Windows 7 OS, Steam Download version. When flying a craft with the claw attached to it and after attaching to an asteroid. The time warp function will sometimes activate a bug that will cause the craft to accelerate without actually changing velocity on the gauge until it explodes. Or if you revert to the launch pad, the craft will get locked in place by the command pod. After the bug has been activated once, it will continue to repeat with every ship that is launched after. All you have to do to reactivate the bug is use the time warp and then exit time warp. One user was able to get this bug to repeat successfully using these steps:

1. Go to the tracking station
2. Switch to a ship clawing an asteroid
3. Open map view and switch to another ship clawing an asteroid
4. Repeat step 3 at least twice
5. Nonphysical timewarp
6. Repeat from step 3 until you see "NullReferenceException" in debug mode (doesn't happen every time, but often enough)

Posted originally by Kerano.

This was also posted by Kerano "I have 3 clawed asteroids in Kerbin's SOI, and a number of regular ships. As far as I can tell the bug seems to only crop up when I switch between the clawed asteroids, not with the other ships."

In my case this bug occurred several times with a single asteroid and no switching between ships. However, it seemed to only happen after at least one mission to the asteroid and a grab with the claw. Then the bug would be activated by going to the space center and I would get the effects on the second mission.

Here is a video link that shows the first time I spotted the bug: https://www.youtube.com/watch?v=L25nHHRb7Lc
Here are screenshots after the bug has occurred: In the second and third images, the bug activates on a test ship after a grab with the claw on an asteroid. I removed the claw and brought the ship down to as few parts as possible to see if it still activated and it did after entering and exiting time warp.



Here's what vexx32 found:

"Code:

NullReferenceException at (wrapper managed-to-native) UnityEngine.Transform:INTERNAL_CALL_TransformDirection (UnityEngine.Transform,UnityEngine.Vector3&)

at UnityEngine.Transform.TransformDirection (Vector3 direction) [0x00000] in <filename unknown>:0 
at ActiveJoint.getControlOrt (Vector3 refAxis, PartSpaceMode mode) [0x00000] in <filename unknown>:0 
at ActiveJoint.applyCoordsUpdate () [0x00000] in <filename unknown>:0 
at ActiveJoint.onPartPack (.Part p) [0x00000] in <filename unknown>:0 
at EventData`1[Part].Fire (.Part data) [0x00000] in <filename unknown>:0 
at Part.Pack () [0x00000] in <filename unknown>:0 
at Vessel.GoOnRails () [0x00000] in <filename unknown>:0 
at OrbitPhysicsManager.LateUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

Looks like this is it. The game isn't properly packing the claw and its state for timewarp, or something like that."

Here are links to the output files from repeated tests:
https://dl.dropboxusercontent.com/u/87213001/KSP/Timewarp%20explosion/Output%20log%202/output_log.txt
https://dl.dropboxusercontent.com/u/87213001/KSP/Timewarp%20explosion/Output%20log%203/output_log.txt


Related issues

Related to Kerbal Space Program - Bug #2349: Frozen Orbit Null Reference ExceptionClosed04/05/2014

History

#1 Updated by Kerolyov almost 11 years ago

  • Category changed from Parts to Gameplay
  • Status changed from New to Confirmed
  • % Done changed from 0 to 10

Ok I got this to trigger using Kerano's persistent.sfs from #2347. Thanks for the report, hopefully this will allow Squad to track this one down

#2 Updated by Squelch over 9 years ago

  • Platform Win32 added
  • Platform deleted (Windows)

#3 Updated by sal_vager about 9 years ago

  • Status changed from Confirmed to Resolved
  • Severity changed from High to Low
  • % Done changed from 10 to 100

Hi, please be mindful of the bug reporting guidelines and priority table when reporting issues, thank you.

http://bugs.kerbalspaceprogram.com/projects/ksp/wiki

No longer occurring as of 1.0.5

#4 Updated by TriggerAu over 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF