Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 NullReferenceException every project load
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

shippy
Senior Member

USA
33 Posts

Posted - May 09 2025 :  6:07:24 PM  Show Profile  Reply with Quote
Started hitting a NullReferenceException when I open my project after installing the latest VA this morning. From the ActivityLog.xml:

System.NullReferenceException: Object reference not set to an instance of an object.
at WholeTomato.VaCodeInspections.QuickActions.e.d(TextExtent& A_0)
at WholeTomato.VaCodeInspections.QuickActions.e.e()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.<CallExtensionPointAsync>d__41`1.MoveNext()

Version info:
VA_X64.dll file version 10.9.2556.0 built 2025.04.07
DevEnv.exe version 17.13.35931.197 Enterprise
msenv.dll version 17.0.35919.92

-Shippy

feline
Whole Tomato Software

United Kingdom
19174 Posts

Posted - May 12 2025 :  07:29:57 AM  Show Profile  Reply with Quote
Thank you for the details. Was this a one off problem, or is it happening every time? I am not quite sure which would be more worrying, but at least if it keeps on happening, it will be easier to study.

Are you able to keep on using the IDE, or did the exception lead to a crash?

We have had a couple of reports of exceptions, but so far no clues as to the trigger, and nothing that I have been able to reproduce here, so if this is an ongoing problem it may not be just you, in case that offers any comfort.

zen is the art of being at one with the two'ness
Go to Top of Page

shippy
Senior Member

USA
33 Posts

Posted - May 12 2025 :  3:05:32 PM  Show Profile  Reply with Quote
It happens almost 100% of the time. I can continue using the IDE and VA seems to be working AFAICT.

-Shippy
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19174 Posts

Posted - May 13 2025 :  06:37:49 AM  Show Profile  Reply with Quote
Let's try the simple fix first. Can you please go into:

IDE tools menu -> Extensions and Updates...

then find Visual Assist in the list of installed extensions, and disable it. This will require an IDE restart to take effect. Then, after the restart, go back in and Enable VA, which will require another IDE restart.

Does this fix the problem? Occasionally problems like this crop up, and this does fix them, so certainly worth a try. If this doesn't help, we will try something else.

zen is the art of being at one with the two'ness
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000