Skip to content
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

Junk characters in STDOUT output #10

Open
artwyman opened this issue Jun 3, 2023 · 1 comment
Open

Junk characters in STDOUT output #10

artwyman opened this issue Jun 3, 2023 · 1 comment

Comments

@artwyman
Copy link

artwyman commented Jun 3, 2023

Using zkrepl to compile code on Chrome on Windows, I see a variable number of invalid characters (appearing as rectangles) show up in the output before the normal output of the compiler. If I scroll down past them, the output is otherwise correct:
image1
image2

I'm not a web expert, but I think the Chrome dev tools are telling me that these are null characters:

image3

This happens for any input, including the initial example zkrepl comes up with. I've seen this in Chrome and Edge on Windows10, but I don't see it on Firefox. I've seen the issue on two different machines with the same OS version, but I don't have any other platforms handy. A friend tried this in Chrome on Linux and Mac and didn't see the issue. Noting that Chrome and Edge share the Chromium rendering engine, I suspect this might be a specific behavior of that engine when running on Windows.

@saurfang
Copy link

saurfang commented Jun 5, 2023

I am able to reproduce this in Chrome on Windows 10 with the example template.

I wonder if it would be an acceptable workaround to simply strip these characters at

let stdout = await wasmFs.getStdOut()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants