-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InputStreamReader.read() blocks indefinitely #990
Comments
I'll try it myself, but are you sure this code does not throw any exception? Seems, that you are trying to run possibly asynchronous code (writing to a pipe) in synchronous context (i.e. native event click handler), which is an error. |
Well, I tried the same also with a class extending In any case, not of any significance to my use case as I modified my Java code to not involve the use of streams when using TeaVM. |
Turns out that this issue has nothing to do with native events or |
0.11.0
21.0.2
Gradle 8.2.1
JS
Firefox 133.3.3 (64-bit)
Ubuntu 22.04.5 x86_64
While trying to use piped I/O streams, I found that while reading the data written to the output stream using the piped input stream works, wrapping the input stream with an
InputStreamReader
causes the reader'sread()
method to block indefinitely.Sample code:
And the HTML page that loads the JS file:
The text was updated successfully, but these errors were encountered: