• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

Fixed (1.20.0.6) Silent NullReferenceException when using WindowCamera (100% repro)

MacGruber

Invaluable member
Developer
Wiki Contributor
Featured Contributor
Joined
May 11, 2020
Messages
1,736
Solutions
94
Reactions
3,355
Currently experimenting with some tools for recording video and noticed a NullReferenceException that is logged every frame when using the WindowCamera. Logging every frame is eating quite some performance, not to mention it kills your SSD eventually. An of course a NullReferenceException usually means there is something seriously wrong, essentially its a crash ;)

Repro steps:
  1. (Using VaM 1.19.2.2)
  2. Quit VaM
  3. Reset default scene to Meshed's default scene from Saves\scene\MeshedVR\default.json
  4. Launch VaM in desktop mode
  5. Enable WindowCamera atom (set "Camera On")
  6. Press M to switch to camera image (will be black as by default the camera points into nothing)
  7. Open %appdata%\..\LocalLow\MeshedVR\VaM\output_log.txt
  8. Notice there is a NullReferenceException logged every frame.

Callstack:
Code:
NullReferenceException: Object reference not set to an instance of an object
  at SuperController.Update () [0x00000] in <filename unknown>:0
 
Same if you try to "cycle person" when no persons are in the scene, it'll silently throw (though it's only once, so not much of a concern)
 
Thanks I'll look at these during the bug fixing phase I'll be doing early next week.
 
Back
Top Bottom