From: RBRi <rb...@us...> - 2023-03-10 18:52:36
|
- **status**: open --> closed - **assigned_to**: RBRi --- ** [bugs:#2017] The application freezes after webClient.getPage() is called** **Status:** closed **Group:** 2.35.0 **Created:** Thu Jun 13, 2019 10:42 AM UTC by anton.grinenko **Last Updated:** Fri Mar 10, 2023 06:52 PM UTC **Owner:** RBRi **Attachments:** - [htmlunit_issue.png](https://sourceforge.net/p/htmlunit/bugs/2017/attachment/htmlunit_issue.png) (63.7 kB; image/png) Hi, Here is a simpe code to reproduce the issue: ~~~ public static void main(String[] args) throws IOException { final WebClient webClient = new WebClient(BrowserVersion.CHROME); webClient.getOptions().setThrowExceptionOnFailingStatusCode(true); webClient.getOptions().setJavaScriptEnabled(true); webClient.getOptions().setActiveXNative(true); webClient.getOptions().setAppletEnabled(false); webClient.getOptions().setCssEnabled(true); webClient.getOptions().setDoNotTrackEnabled(true); webClient.getOptions().setGeolocationEnabled(false); webClient.getOptions().setPopupBlockerEnabled(true); webClient.getOptions().setPrintContentOnFailingStatusCode(true); webClient.getOptions().setThrowExceptionOnScriptError(true); webClient.getOptions().setUseInsecureSSL(true); webClient.getCookieManager().setCookiesEnabled(true); webClient.getOptions().setRedirectEnabled(true); HtmlPage page = webClient.getPage("https://new.santehnika-online.ru/product/unitaz_podvesnoy_gustavsberg_estetic_hygienic_flush_chernyy/"); final String pageAsText = page.asText(); System.out.println("====>>>> page: " + pageAsText); webClient.close(); } ~~~ The application freezes at webClient.getPage(...) call. Also I see with jvisualvm that memory grows. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |