lagrange icon indicating copy to clipboard operation
lagrange copied to clipboard

Fails to open on 5120x1440 monitor

Open Snxwman opened this issue 3 years ago • 5 comments

When launching the application on my ultra-wide monitor, in its correct resolution, I get the error...

[window] failed to create window: Window is too large.

...but when I switch the display's resolution to 1920x1080, Lagrange opens perfectly fine and continues to work after changing the resolution back to 5120x1440 while keeping the, already open, window open.

Additionally, once open, I can create new windows fine, even under a 5120x1440 resolution.

OS: Ubuntu 20.04.4 Monitor: Samsung Odyssey Neo G9 Downloaded the v1.11.2 x86 Linux appimage from GitHub.

Snxwman avatar Mar 24 '22 23:03 Snxwman

That error message is directly from SDL. Perhaps something in the underlying layers has a limitation for creating windows?

As a possible workaround, windows could always be created with a small size and then resized to the intended size, although ideally this is something that SDL should be handling on its own, if necessary.

skyjake avatar Mar 30 '22 19:03 skyjake

GPUs limit the maximum texture size to whatever their circuitry is able to compute over. You might have hit the limit. I had a similar experience with mobile GPUs not being able to allocate textures larger than 4096x4096 pixels.

mordae avatar Apr 14 '22 17:04 mordae

Try launching the app with --sw? The software renderer has no texture size limitations at least.

skyjake avatar Apr 14 '22 17:04 skyjake

glxinfo -l | grep GL_MAX_TEXTURE_SIZE

Should print the actual limit.

mordae avatar Apr 14 '22 17:04 mordae

GL_MAX_TEXTURE_SIZE = 16384
GL_MAX_TEXTURE_SIZE = 16384

On my Xubuntu 20.04

stacksmith avatar May 05 '22 21:05 stacksmith