Skip to main content
Known Participant
July 31, 2010
Question

FMS crashes with large RegExp

  • July 31, 2010
  • 1 reply
  • 506 views

I've had some problems with FMS crashing when trying to execute or compile large regular expressions.  This is the most easily reproducible scenario:

var patterns = [];

for(var iter = 0; iter < Math.pow(2, 16); iter++)

{

      patterns.push('a');

}

var filter = new RegExp('('+patterns.join('|')+')', 'i');

2^16 dies, 2^16 - 1 works fine.  Understandable that it crashes with such a big RegExp, but the problem I have with FMS is that the error messages are useless when it crashes.  "Experienced 1 failure(s)!" is all I get.  So my question is; can we get better debug info when FMS crashes?

Thanks,

Sean

    This topic has been closed for replies.

    1 reply

    August 3, 2010

    Hi Sean,

    I have some queries with you regarding this as to what are the problem you are facing and as to what is your actual use case. If possible can you contact me by email at abh@adobe.com.

    Thanks,

    Abhishek