supertuxkart / stk-code

The code base of supertuxkart
Other
4.53k stars 1.06k forks source link

Content does not resize when window size changes #4803

Closed searinminecraft closed 2 years ago

searinminecraft commented 2 years ago

Description

When the window size changes, the GUI content does not resize (except the background and menu). So it would result in the content looking out of place and sometimes broken. I use Arch Linux with the bspwm window manager. And this might also affect desktop environments/stacking window managers. This happens on Android as well (when enabling Android split screen).

Going to the menu however will fix the content size.

please see the attached video

Steps to reproduce

  1. If possible, use the bspwm window manager (or any (tiling) window manager)
  2. Open up SuperTuxKart
  3. Resize the window while on any UI EXCEPT the main menu

Configuration

STK release version: 1.3 (might also affect 1.4-rc1 as well)

STK Source (PPA, distribution package, official binary, etc.): Official binary (Also affects the Arch Linux packaged version)

System: Aspire V5-431 V2.17 (Running Arch Linux 5.19.12-arch1-1)

Graphics card: Intel HD Graphics

CPU: Intel Celeron 1007U @ 1.5 GHz

Gamepads/keyboards models if related to the issue: Nothing!

Additional information

stdout.log:

[info   ] [FileManager]: Data files will be fetched from: '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/'
[info   ] [FileManager]: User directory is '/home/searinminecraft/.config/supertuxkart/config-0.10/'.
[info   ] [FileManager]: Addons files will be stored in '/home/searinminecraft/.local/share/supertuxkart/addons/'.
[info   ] [FileManager]: Screenshots will be stored in '/home/searinminecraft/.local/share/supertuxkart/screenshots/'.
[info   ] [FileManager]: User-defined grand prix will be stored in '/home/searinminecraft/.local/share/supertuxkart/grandprix/'.
[info   ] [FileManager]: Asset 0 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/challenges/'.
[info   ] [FileManager]: Asset 1 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/gfx/'.
[info   ] [FileManager]: Asset 2 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/grandprix/'.
[info   ] [FileManager]: Asset 3 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/gui/icons/'.
[info   ] [FileManager]: Asset 4 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/gui/screens/'.
[info   ] [FileManager]: Asset 5 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/gui/dialogs/'.
[info   ] [FileManager]: Asset 6 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/replay/'.
[info   ] [FileManager]: Asset 7 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/'.
[info   ] [FileManager]: Asset 8 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/skins/'.
[info   ] [FileManager]: Asset 9 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/ttf/'.
[info   ] [FileManager]: Asset 10 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/po/'.
[info   ] [FileManager]: Asset 11 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/library/'.
[info   ] [FileManager]: Asset 12 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/models/'.
[info   ] [FileManager]: Asset 13 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/music/'.
[info   ] [FileManager]: Asset 14 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/sfx/'.
[info   ] [FileManager]: Asset 15 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/textures/'.
[info   ] [FileManager]: Asset 16 will be loaded from '/home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/tracks/'.
[verbose  ] translation: Env var LANGUAGE = 'en_PH.UTF-8'.
[verbose  ] translation: Language 'English'.
[info   ] [IrrDriver Logger]: ..:: Antarctica Rendering Engine 2.0 ::..
[info   ] [IrrDriver Logger]: SDL Version 2.0.16
[info   ] [IrrDriver Logger]: Using renderer: OpenGL 4.2
[info   ] [IrrDriver Logger]: Mesa Intel(R) HD Graphics 2500 (IVB GT1): Intel
[info   ] [IrrDriver Logger]: OpenGL driver version is 1.2 or better.
[info   ] [IrrDriver Logger]: GLSL version: 4.2
[info   ] IrrDriver: OpenGL version: 4.2
[info   ] IrrDriver: OpenGL vendor: Intel
[info   ] IrrDriver: OpenGL renderer: Mesa Intel(R) HD Graphics 2500 (IVB GT1)
[info   ] IrrDriver: OpenGL version string: 4.2 (Core Profile) Mesa 22.1.7
[info   ] GLDriver: ARB Buffer Storage Present
[info   ] GLDriver: ARB Compute Shader Present
[info   ] GLDriver: ARB Arrays of Arrays Present
[info   ] GLDriver: ARB Texture Storage Present
[info   ] GLDriver: ARB Texture View Present
[info   ] GLDriver: ARB Image Load Store Present
[info   ] GLDriver: ARB Shader Atomic Counters Present
[info   ] GLDriver: ARB Shader Storage Buffer Object Present
[info   ] GLDriver: EXT Texture Compression S3TC Present
[info   ] GLDriver: ARB Uniform Buffer Object Present
[info   ] GLDriver: ARB Explicit Attrib Location Present
[info   ] GLDriver: EXT Texture Filter Anisotropic Present
[info   ] GLDriver: Geometry Shaders Present
[info   ] GLDriver: ARB Texture Buffer Object Present
[info   ] GLDriver: ARB Texture Swizzle Present
[info   ] GLDriver: ARB Pixel Buffer Object Present
[info   ] GLDriver: ARB Sampler Objects Present
[info   ] GLDriver: ARB Vertex Type 2_10_10_10_rev Present
[info   ] GLDriver: ARB Instanced Arrays Present
[info   ] SharedGPUObjects: Hardware Skinning enabled, method: TBO, max bones: 1024
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/screenquad.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/motion_blur.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/lightning.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/primitive2dlist.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/transparent.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/texturedquad.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/uniformcolortexturedquad.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/texturedquad.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/coloredquad.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/coloredquad.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/colortexturedquad.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/colortexturedquad.frag
[info   ] irr_driver: GLSL supported.
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_pass.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_solid.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_shadow.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/white.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_skinning.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_skinning_shadow.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_normal_map.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_alpha_test.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_shadow_alpha_test.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_decal.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_grass_pass.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_grass.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_grass_shadow.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_unlit.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_transparent.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_ghost.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_dynamic_night_bloom.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_tilling_mitigation.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_vertical_mapping.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_road_blending.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_displace.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/colorize.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_normal_visualizer.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_normal_visualizer.geom
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sp_normal_visualizer.frag
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/saved-session/
[info   ] HTTPRequest: Downloading https://online.supertuxkart.net/dl/xml/online_news.xml
[info   ] GrandPrixManager: Loading Grand Prix files from /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/grandprix/
[info   ] GrandPrixManager: Loading Grand Prix files from /home/searinminecraft/.local/share/supertuxkart/grandprix/
[info   ] addons: Using cached addons.xml.
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[warn   ] SPMeshBuffer: kartDirt shader is missing, fallback to solid
[info   ] Achievements: Synching achievement 1,2,3,4,5,6,7,8,9,10,11,12 to server.
[info   ] HTTPRequest: Sending userid=378868&token=************************&achievementid=1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12 to https://online.supertuxkart.net/api/v2/user/achieving/
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/simple_particle.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/simple_particle.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/alphatest_particle.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/alphatest_particle.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/degraded_ibl.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/sunlight.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/pointlight.vert
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/pointlight.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/combine_diffuse_color.frag
[info   ] ShaderFilesManager: Compiling shader: /home/searinminecraft/SuperTuxKart-1.3-linux-64bit/data/shaders/tonemap.frag
[info   ] HTTPRequest: Sending userid=378868&token=************************&visitingid=378868 to https://online.supertuxkart.net/api/v2/user/get-friends-list/
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[warn   ] LayoutManager: Statically sized widgets took all the place!!
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/
[info   ] HTTPRequest: Sending userid=378868&token=************************ to https://online.supertuxkart.net/api/v2/user/poll/

input.xml:

Error message:

https://user-images.githubusercontent.com/114207889/194471482-b92f8f40-e9ba-4140-91a6-0f2ccc57e036.mp4

Benau commented 2 years ago

This is not fixable until implement widgets resizing properly (very difficult), patches are welcome