• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.

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,749
Solutions
93
Reactions
3,380
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