Skip to content

getScriptVariables() Stack Overflow in optimized (--release, --profile) builds #92

Description

@Whimfoome

Happens only in optimized builds, I think it's related to RegExp.

final WebScraper webScraper = WebScraper('https://mangasee123.com');

if (await webScraper.loadWebPage('/read-online/One-Piece-chapter-1.html')) {
  Map<String, dynamic> elementsServer =
          webScraper.getScriptVariables(['vm.CurPathName']);
}
E/flutter ( 6821): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Stack Overflow
E/flutter ( 6821): #0      _RegExp._ExecuteMatch (dart:core-patch/regexp_patch.dart)
E/flutter ( 6821): #1      _AllMatchesIterator.moveNext (dart:core-patch/regexp_patch.dart)
E/flutter ( 6821): #2      WebScraper.getScriptVariables (package:web_scraper/web_scraper.dart)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions