rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.91k stars 299 forks source link

Unexpected exception thrown while parsing module,;System.OutOfMemoryException #4157

Open MMattribut opened 6 years ago

MMattribut commented 6 years ago

Hi, I'd love to use Rubberduck, but I just can't get the parser working in a bigger project. Cheers Matthias

Version 2.2.0.3439 OS: Microsoft Windows NT 10.0.17134.0, x64 Host Product: Microsoft Office 2013 x86 Host Version: 15.0.5013.1000 Host Executable: MSACCESS.EXE

RubberduckLog.txt

Vogel612 commented 6 years ago

According to the logs, this project consists of at least 253 modules. During parsing, Rubberduck throws an OutOfMemoryException 18 times.

Skimming the exception stacktrace it seems like we might have a parser-rule on our hands that indefinitely recurses, which is ... bad.