Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception starting VS2010 since a few versions #9

Closed
MartinL0815 opened this issue Mar 9, 2015 · 15 comments
Closed

Exception starting VS2010 since a few versions #9

MartinL0815 opened this issue Mar 9, 2015 · 15 comments

Comments

@MartinL0815
Copy link

Screenshot from Exception while VS2010 starting up

The dialog above comes up, everytime I start VS2010!
It doesn't matter if I press yes or no, the ActivityLog XML file won't be written, so I have nothing to help you to fix this, but the screenshot above.
If I do not react onto this dialog, VS2010 crashes silently and does not complete its startup.

@ashmind
Copy link
Owner

ashmind commented Mar 9, 2015

@MartinL0815 Thanks for reporting this!

Did you run VS with /log command line argument? I think it is required for it to write the ActivityLog.

@MartinL0815
Copy link
Author

No, I never did before.

Even VS2013 I never started with /log, but it did create the ActivityLog.xml file on extension errors, exceptions.

I'll try out!

@MartinL0815
Copy link
Author

Here the extract of the ActivityLog.xml file:

<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
  <entry>
    <record>440</record>
    <time>2015/03/09 17:31:20.793</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{A83E8A33-E775-4A79-BE41-EFE20007EEBD}</guid>
  </entry>
  <entry>
    <record>441</record>
    <time>2015/03/09 17:31:20.794</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [ExceptionBreaker.ExceptionBreakerPackage, ExceptionBreaker, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]</description>
    <guid>{A83E8A33-E775-4A79-BE41-EFE20007EEBD}</guid>
  </entry>
  <entry>
    <record>442</record>
    <time>2015/03/09 17:31:20.799</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [ExceptionBreaker.ExceptionBreakerPackage, ExceptionBreaker, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]</description>
    <guid>{A83E8A33-E775-4A79-BE41-EFE20007EEBD}</guid>
    <hr>80004003 - E_POINTER</hr>
    <errorinfo>Object reference not set to an instance of an object.</errorinfo>
  </entry>
  <entry>
    <record>443</record>
    <time>2015/03/09 17:31:20.801</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [ExceptionBreaker.ExceptionBreakerPackage, ExceptionBreaker, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]</description>
    <guid>{A83E8A33-E775-4A79-BE41-EFE20007EEBD}</guid>
    <hr>80004003 - E_POINTER</hr>
    <errorinfo>Object reference not set to an instance of an object.</errorinfo>
  </entry>
</activity>

@ashmind
Copy link
Owner

ashmind commented Mar 9, 2015

Can you try the following (in cmd)?

reg query HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ExtensionManager\EnabledExtensions /f "a83e8a33-e775-4a79-be41-efe20007eebd"

And see if the path it shows actually exists on your disk?

If it does, than it might be an error in the extension itself -- I'll take a look at getting better logging in as soon as I have time.

@MartinL0815
Copy link
Author

Here the result of the registry query:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

c:\windows\system32>reg query HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ExtensionManager\EnabledExtensions /f "a83e8a33-e775-4a79-be41-efe20007eebd"

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ExtensionManager\EnabledExtensions
    a83e8a33-e775-4a79-be41-efe20007eebd,1.1.1    REG_SZ    C:\Users\lemburg\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Andrey Shchekin\Exception Breaker\1.1.1\

End of search: 1 match(es) found.

c:\windows\system32>

@ashmind
Copy link
Owner

ashmind commented Mar 10, 2015

@MartinL0815 Thanks! Can you check that C:\Users\lemburg\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Andrey Shchekin\Exception Breaker\1.1.1\ actually exists on your machine?

@MartinL0815
Copy link
Author

Here a screenshot from the explorer:

Explorer Screenshot

@pjquirk
Copy link

pjquirk commented Jul 27, 2015

I'm also seeing this issue in VS2010, using v1.1.1. Are there any other diagnostics I can provide? Any progress on a fix?

@ashmind
Copy link
Owner

ashmind commented Jul 28, 2015

@pjquirk Unfortunately I wasn't able to find the cause and didn't have additional time to dedicate to it.
I'll take another look.

Can you please provide your ActivityLog?

If you have VS SDK installed, you can try running extension from source to see it fails on any exception on startup.

@pjquirk
Copy link

pjquirk commented Jul 28, 2015

I attached WinDbg to VS2010 on launch and created a gist with the exception details. It is a NullReferenceException in Microsoft.VisualStudio.Shell.Package.GetOutputPane, though it's not clear to me why. It's called from the constructor of ExtensionLogger.

Here's the relevant bits from my ActivityLog as well:

<entry>
    <record>496</record>
    <time>2015/07/27 03:24:37.054</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [ExceptionBreaker.ExceptionBreakerPackage, ExceptionBreaker, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]</description>
    <guid>{A83E8A33-E775-4A79-BE41-EFE20007EEBD}</guid>
</entry>
<entry>
    <record>497</record>
    <time>2015/07/27 03:24:37.063</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [ExceptionBreaker.ExceptionBreakerPackage, ExceptionBreaker, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]</description>
    <guid>{A83E8A33-E775-4A79-BE41-EFE20007EEBD}</guid>
    <hr>80004003 - E_POINTER</hr>
    <errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
<entry>
    <record>498</record>
    <time>2015/07/27 03:24:37.064</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [ExceptionBreaker.ExceptionBreakerPackage, ExceptionBreaker, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]</description>
    <guid>{A83E8A33-E775-4A79-BE41-EFE20007EEBD}</guid>
    <hr>80004003 - E_POINTER</hr>
    <errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>

If it's helpful, the error occurs for me while the VS splash screen is still visible or just after it disappears; it could be that there isn't yet an output pane to be gotten.

@ashmind
Copy link
Owner

ashmind commented Jul 28, 2015

@pjquirk This is great -- I definitely remember doing a workaround for that in some other extension. I'll take a look later today. Thanks!

ashmind added a commit that referenced this issue Jul 29, 2015
@ashmind
Copy link
Owner

ashmind commented Jul 29, 2015

@pjquirk Can you test if it still happens when you install https://github.com/ashmind/ExceptionBreaker/releases/tag/v1.1.2-test-1 (manually)?

@pjquirk
Copy link

pjquirk commented Jul 29, 2015

That works for me! I played around with it a bit, trying different configurations and restarting VS and I never saw the error. Plus, I do see the logging in the output window. Thanks for spending time to help support us stuck on old versions of VS!

@iobus
Copy link

iobus commented Jul 29, 2015

I was having this problem as well. That update fixed it for me too. Thanks!

@ashmind
Copy link
Owner

ashmind commented Jul 29, 2015

Great! I'm going to release it through Gallery today or tomorrow then.
Thanks @pjquirk for the research.

@ashmind ashmind closed this as completed Aug 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants