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

[windows] [wsl] [:wx] Screen tearing when rendering :wx frame inside WSL. #8002

Closed
c4lliope opened this issue Jan 5, 2024 · 2 comments
Closed
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS

Comments

@c4lliope
Copy link

c4lliope commented Jan 5, 2024

Describe the bug

A colleague enabled WSL on their Windows machines and ran one of my apps that uses a wxWebView.
The app came up horribly pixelated because the frame seemed to apply dimensions improperly to the frame;
some of the frame rendered outside the bounds of the window in the horizontal dimension,
and caused the vertical columns to skew badly and make the page unreadable.

screencap_1 screencap_2

This seems to happen also on the :wx.demo() inside of WSL, and had been checked both on NVIDIA and AMD graphics cards.

To Reproduce

On Windows, run in powershell: wsl --install
Inside a WSL shell (easy to access using VS Code): iex -e ':wx.demo' (or similar using Erlang)

Expected behavior
Proper rendering

Affected versions
Erlang 26, possibly others.
Precise shell.nix being used is inside codebase:
https://base.bingo/code/press/src/branch/main/shell.nix

@c4lliope c4lliope added the bug Issue is reported as a bug label Jan 5, 2024
@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Jan 6, 2024
@dgud
Copy link
Contributor

dgud commented Jan 8, 2024

Since erlang is only a wrapper on wxWidgets, I can't see how we can do anything about that.
Maybe ask questions in the wxWidgets mailing list or forum?

@dgud dgud closed this as completed Jan 8, 2024
@c4lliope
Copy link
Author

Re-opened as wxWidgets/wxWidgets#24221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

3 participants