Fixed NullReferenceException In SV Control Panal

Discussion in 'Fixed (Read Only)' started by Inappropriate, Apr 19, 2019.

Tags:
  1. Inappropriate

    Inappropriate Captain

    Joined:
    Mar 17, 2017
    Messages:
    284
    Likes Received:
    275
    Mode: Creative
    Mode: Singleplayer

    MODIFIED PLAYFIELDS: No

    Reproducibility: Unable
    Severity: Major

    Type: Exception

    Summary: NullReferenceException In SV Control Panal

    Description: I had just finished setting up a signal in the main CP page and switch over to the devices tab when I got the quit or continue dialog. It doesn't seem to be caused by anything I did as I can't reproduce it. Log file attached.
     

    Attached Files:

    #1
  2. Squelch

    Squelch Lieutenant

    Joined:
    Apr 3, 2019
    Messages:
    10
    Likes Received:
    11
    I have been tracking a very similar problem, and believe I have identified the cause.

    Had you by chance assigned a signal to a device, and then deleted the device later? I've found that the signal name can still be reserved, and can then throw the NRE or even cause a COQ dialog.
     
    #2
  3. Inappropriate

    Inappropriate Captain

    Joined:
    Mar 17, 2017
    Messages:
    284
    Likes Received:
    275
    Nope. I had only just created the signal and got the COQ immediately after changing tabs in the CP.
     
    #3
  4. Pantera

    Pantera Administrator Staff Member

    • Developer
    • Moderator
    Joined:
    Aug 15, 2016
    Messages:
    3,238
    Likes Received:
    5,676
    Has this happened again ?
    Can you remember exactly the steps you did before it happened ?
     
    #4
  5. Inappropriate

    Inappropriate Captain

    Joined:
    Mar 17, 2017
    Messages:
    284
    Likes Received:
    275
    I have not been able to reproduce this. Even after reloading the save file immediately fallowing the COQ and repeating the exact same steps I could not reproduce this.

    The exact steps were:
    1. Opened up the control panel of an SV I was working on.
    2. In the first signal slot on the main CP page added the signal "Performance Mode".
    3. Clicked on the Devices tab of the CP.
    Unfortunately, I don't have any before/after blueprints of the SV in question and I have purged the save file after encountering another COQ reported in NullReferenceException while destroying HV with rocket launcher.

    Looking at other bug reports it seems possible that this may be related to A signal is deleted when I replace the block of the specific position. I have also had similar issues with signals not saving and/or reverting to the default "0" signal in the past but could never nail down the step to reproduce it.
     
    #5
  6. Pantera

    Pantera Administrator Staff Member

    • Developer
    • Moderator
    Joined:
    Aug 15, 2016
    Messages:
    3,238
    Likes Received:
    5,676
    According to the logs it appears to be different the issue you linked to will be fixed in A10 soon.
    For now keep a eye out for this happening again & report back here if it triggers again ideally with some steps that will trigger it if possible.
     
    #6

Share This Page