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

1.4.3.0 Object Reference not set #2282

Closed
RaymondWise opened this issue Oct 4, 2016 · 7 comments
Closed

1.4.3.0 Object Reference not set #2282

RaymondWise opened this issue Oct 4, 2016 · 7 comments
Labels
support Whether you're using Rubberduck or you've forked it and have questions, never hesitate to ask!

Comments

@RaymondWise
Copy link

RaymondWise commented Oct 4, 2016

Excel 2016 16.0.4432.1000 64bit - Windows 7
Official release 1.4.3.0

Excel runs fine, but when I try to open the VBE I get

Rubberduck Add-In could not be loaded
Object reference not set to an instance of an object.

Once I hit "OK" the VBE opens and the Add-in Manager shows Rubberduck as available with startup/loaded behavior.

Maybe I missed a duplicate bug in my search, but I can't seem to resolve this. I tried using 2.0.8 but that's an entirely different basket of bugs for me.

@Vogel612 Vogel612 added the support Whether you're using Rubberduck or you've forked it and have questions, never hesitate to ask! label Oct 4, 2016
@Vogel612
Copy link
Member

Vogel612 commented Oct 4, 2016

Hi there,

have you already seen the "Installing" wiki page? It has a special section for troubleshooting this exact error you have.
Maybe this already solves your problem. If it doesn't please do tell us 👍

@RaymondWise
Copy link
Author

RaymondWise commented Oct 5, 2016

@Vogel612 Thanks. I ran that (as administrator) and got the successful message, followed by

Assembly exported to 'C:\ProgramData\Rubberduck\rubberduck.tlb', and the type library was registered successfully

but I'm still getting the "object reference not set to an instance of an object" error.


I previously had this happen and have tried uninstalling and reinstalling office, as well as rubberduck several times. I can try that again and I could also try to find any error logs.

@Vogel612
Copy link
Member

Vogel612 commented Oct 5, 2016

You should be able to find the logs under %AppData%/Rubberduck/logs. At this point a Stacktrace would greatly help us nail the error down.

You'll find one either in the logs (most probably as the last few lines) or in the details of the error message you get.

@retailcoder
Copy link
Member

@Vogel612 IIRC v1.4.3 didn't have that logging feature in release. The NRE is probably one of the many bugs that were fixed between 1.4.3 and 2.x.

Is there an active codepane when the vbe launches?

@RaymondWise
Copy link
Author

RaymondWise commented Oct 5, 2016

So I uninstalled RD, cleaned up the files, removed all the office 07/10/13 entries from the registry, ran all the 2016 updates. Restarted, installed RD as admin and got the error. Ran the cmd fix as admin again and still getting the error.

The \AppData\Roaming\Rubberduck\Logs\RubberduckLog has no entries for today. Yesterday only has repeated

2016-10-04 13:11:11.0114;WARN;Rubberduck.Parsing.Symbols.TypeAnnotationPass;Failed to resolve type VBE;
2016-10-04 13:11:11.2504;WARN;Rubberduck.Parsing.Symbols.TypeAnnotationPass;Failed to resolve type VBProject;
2016-10-04 13:12:29.4169;ERROR;Rubberduck.Common.WinAPI.RawInput;Error sizing the rawinput buffer: The handle is invalid;System.ComponentModel.Win32Exception (0x80004005): The handle is invalid
2016-10-04 13:15:35.7626;WARN;Rubberduck.Parsing.Symbols.IdentifierReferenceResolver;Default Context: Failed to resolve b. Binding as much as we can.;

No, no active modules when the VBE opens, just the standard panes and locals.

The most recent application event error I can find is

.NET Runtime version : 2.0.50727.5485 - No debugger found.No registered JIT debugger was specified. Click on Retry to have the process wait while attaching a debugger manually. Click on Cancel to abort the JIT debug request.


I have no other COM or excel add-ins enabled.

@retailcoder
Copy link
Member

@RaymondWise there was a bug at one point (not sure which release fixed it) where RD wouldn't start without at least one project in VBE.VBProjects; since the bug is now fixed, I'll close this issue. Make sure there's a host document in the host application when you open up the VBE.

@RaymondWise
Copy link
Author

@retailcoder Pardon my ignorance, but by host document do you mean ensure that excel starts with an .xlam (or) ensure it has a personal macro workbook enabled? I've just tried both of those and have had no luck. I can just migrate to the latest release if need be..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Whether you're using Rubberduck or you've forked it and have questions, never hesitate to ask!
Projects
None yet
Development

No branches or pull requests

3 participants