playwright-java: Working with 1.18 with 2 playwrights when the 2 object gets closed it throws HeapSpace
Here is the info
And when we connect to a wsEndPoint the problem arises when we try to close Page and Browser objects but not with Playwright object as you can see here.
20:39:13.279 [Thread-16] WARN c.p.h.HeadlessBrowserConfig$DataPerThread.close(219) - Closing [PageImpl] object:[838546035].
java.io.IOException: Stream closed
at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
at java.io.OutputStream.write(OutputStream.java:116)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at com.microsoft.playwright.impl.WriterThread.run(PipeTransport.java:167)
java.io.IOException: Stream closed
at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
at java.io.OutputStream.write(OutputStream.java:116)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
at com.microsoft.playwright.impl.PipeTransport.close(PipeTransport.java:93)
at com.microsoft.playwright.impl.PipeTransport.poll(PipeTransport.java:71)
at com.microsoft.playwright.impl.Connection.processOneMessage(Connection.java:159)
at com.microsoft.playwright.impl.ChannelOwner.runUntil(ChannelOwner.java:101)
at com.microsoft.playwright.impl.Connection.sendMessage(Connection.java:107)
at com.microsoft.playwright.impl.ChannelOwner.sendMessage(ChannelOwner.java:94)
at com.microsoft.playwright.impl.JsonPipe.send(JsonPipe.java:46)
at com.microsoft.playwright.impl.Connection.internalSendMessage(Connection.java:135)
at com.microsoft.playwright.impl.Connection.sendMessageAsync(Connection.java:111)
at com.microsoft.playwright.impl.Connection.sendMessage(Connection.java:107)
at com.microsoft.playwright.impl.ChannelOwner.sendMessage(ChannelOwner.java:94)
at com.microsoft.playwright.impl.PageImpl.close(PageImpl.java:547)
at com.microsoft.playwright.Page.close(Page.java:3237)
20:39:13.321 [Thread-16] WARN c.p.h.HeadlessBrowserConfig$DataPerThread.close(223) - Exception [Failed to read message from driver, pipe closed.]Closing [PageImpl] object:[838546035].
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (6 by maintainers)
Hey mate with the latest Playwright version it works. 1.25 😃