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

Excel and VBE are unresponsive #5403

Closed
zspitz opened this issue Feb 27, 2020 · 16 comments
Closed

Excel and VBE are unresponsive #5403

zspitz opened this issue Feb 27, 2020 · 16 comments
Labels
bug Identifies work items for known bugs

Comments

@zspitz
Copy link

zspitz commented Feb 27, 2020

Rubberduck version information

Rubberduck version 2.5.0.5304 loading:
Operating System: Microsoft Windows NT 6.2.9200.0 x64
Host Product: Microsoft Office 2010 x86
Host Version: 14.0.7245.5000
Host Executable: EXCEL.EXE;

Description
Opening a relatively large VBA project causes both the VBE and Excel to become unresponsive -- neither window can be activated; menu items and buttons don't work; can't interact with the worksheet or worksheet tabs.

To Reproduce
Steps to reproduce the behavior:

  1. Open the Battleship project

Expected behavior
VBE and Excel should be responsive

Logfile
RubberduckLog.txt

Additional context
Windows doesn't seem to recognize the window as having frozen.

Excel seems to be showing high CPU usage.

@zspitz zspitz added the bug Identifies work items for known bugs label Feb 27, 2020
@A9G-Data-Droid
Copy link
Contributor

I'm seeing a similar behavior in an Access project. It used to work fine with this project. I added one module and now parsing takes a very long time. When the parsing is complete I can no longer interact with Access at all. I can't click on a single thing in the VBE or in the Access GUI. It's completely frozen. The only way to recover is to close the application. I have uninstalled RD as I can't use it on my current project anymore. I've Tried the previous stable release as well as the most recent "pre" release. Same behavior.

@daFreeMan
Copy link
Contributor

@A9G-Data-Droid it would be very helpful if you would reinstall RD, set debugging to Trace, reproduce the issue, then post the log here. Then uninstall it again, as it's obviously not being helpful at the moment.

@A9G-Data-Droid
Copy link
Contributor

A9G-Data-Droid commented Mar 19, 2020

I don't want to post the whole thing here. I can share some redacted snips that seem interesting.
RubberduckLogREDACTED.txt

@A9G-Data-Droid
Copy link
Contributor

Ok, that's better.

@MDoerner
Copy link
Contributor

The COM exceptions are very suspicious.
Since this happens in Excel, the host app should not be Access.

Does the project reference the Access object model?
If yes, is the reference priority higher than the one for the Excel object model? (Is is on top of the Excel one in the VBE`s References dialog?)

@A9G-Data-Droid
Copy link
Contributor

Sorry, I'm not OP. I'm jumping in to say I see the same thing in Access. I thought it might be related. zspitz included his log file at the beginning of this issue. His errors are different than mine. Should I make a different Issue?

@zspitz
Copy link
Author

zspitz commented Mar 19, 2020

@MDoerner Any suggestions for me?

@MDoerner
Copy link
Contributor

This might actually be related to #5442. Could you see whether you have the same problem with version 5226?

@zspitz
Copy link
Author

zspitz commented Apr 16, 2020

@MDoerner Specifically 5226? Or 5226 and later?

@MDoerner
Copy link
Contributor

5226 or earlier

@zspitz
Copy link
Author

zspitz commented Apr 17, 2020

5226 seems to work -- at least it opens, and I can interact with both the VBA IDE and the Rubberduck UI.

@zspitz
Copy link
Author

zspitz commented Apr 18, 2020

@MDoerner Just a ping; not sure if you're getting notifications here or not.

@MDoerner
Copy link
Contributor

I get notification. Since it works with that version, there is a good chance that it is related. The bad thing is that the issue seems to be related to a race condition in the grouping grid control. That will not be easy to debug. In particular, the battleship project does not hang in any way for me with the current version.

@MDoerner
Copy link
Contributor

Can you still reproduce this with Rubberduck v2.5.0.5457-pre or newer? That PR fixed a bug in the test explorer UI causing a freeze for some projects.

@zspitz
Copy link
Author

zspitz commented Jun 27, 2020

It seems to be working now. Both the VBE and the host application are responsive. I also checked the following:

  • Refreshing the project
  • Opening the Test Explorer
  • running all the tests

Is there anything further you want me to check or do before closing?

@MDoerner
Copy link
Contributor

Thanks for checking, It seems that it was the same issue as in #5442. Accordingly, I close this issue as fixed by PR #5506.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies work items for known bugs
Projects
None yet
Development

No branches or pull requests

4 participants