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

Fullscreen window adds an unused top bar sometimes #5239

Open
kimden opened this issue Jan 11, 2025 · 0 comments
Open

Fullscreen window adds an unused top bar sometimes #5239

kimden opened this issue Jan 11, 2025 · 0 comments

Comments

@kimden
Copy link
Contributor

kimden commented Jan 11, 2025

Description

Rarely, the game seems to produce an unused top bar (note the white space on the screenshot) for the fullscreen game window. It appears on the loading screen in that case, and can either go away when the main screen is loaded, or stay. For now I'm not aware of any settings that could reproduce it for me in a stable way.
image

Settings are also changed because the resolution becomes nontrivial (default fullscreen on this machine is 1920x1080):
image

I clicked on Apply resolution without changing it, the game crashed (bt is below, probably inherited from another issue as it seems familiar to me see 5240).

It seems to have a similar height as the system top bar on Ubuntu (see below):
image

However, it's not the same. System top bar displayed above is 32px, while the white stripe is 37px.

To clarify, neither the window top bar nor the system top bar with time is displayed for fullscreen applications by default on Ubuntu.

I suppose it's a bug of SDL itself, or its usage. I happened to report it before (maybe even on github, in which case I completely forgot about it), but nothing more was known after those reports.

Steps to reproduce

Start the game and hope it reproduces. Sometimes goes away after loading screen.

Configuration

STK release version: latest git 8a46f5a. The screenshot is taken in Debug mode + Vulkan, if that helps in any way.

System: Ubuntu 23.10

Additional information

stdout.log:

I don't see any special messages, and don't want to post it because it was done with Vulkan and it's huge. I can try to reproduce later if needed.

Apply resolution button crash bt (unrelated, see 5240):

(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00005c9f9eebb964 in IrrDriver::dropAllTextures (this=0x5c9fa23177a0, mesh=0x5c9fae79cef0)
    at (debug stk folder)/src/graphics/irr_driver.cpp:1806
#2  0x00005c9f9f1853cc in KartModel::~KartModel (this=0x5c9fae79ad20, __in_chrg=<optimized out>, __vtt_parm=<optimized out>)
    at (debug stk folder)/src/karts/kart_model.cpp:305
#3  0x00005c9f9f1a352b in std::_Destroy<KartModel> (__pointer=0x5c9fae79ad20) at /usr/include/c++/13/bits/stl_construct.h:151
#4  0x00005c9f9f1a2ff0 in std::allocator_traits<std::allocator<void> >::destroy<KartModel> (__p=0x5c9fae79ad20)
    at /usr/include/c++/13/bits/alloc_traits.h:674
#5  std::_Sp_counted_ptr_inplace<KartModel, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=0x5c9fae79ad10)
    at /usr/include/c++/13/bits/shared_ptr_base.h:613
#6  0x00005c9f9ed6872b in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x5c9fae79ad10)
    at /usr/include/c++/13/bits/shared_ptr_base.h:346
#7  0x00005c9f9ed6997d in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=0x5c9fae482b48, __in_chrg=<optimized out>)
    at /usr/include/c++/13/bits/shared_ptr_base.h:1071
#8  0x00005c9f9f19e82c in std::__shared_ptr<KartModel, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x5c9fae482b40, 
    __in_chrg=<optimized out>) at /usr/include/c++/13/bits/shared_ptr_base.h:1524
#9  0x00005c9f9f19e84c in std::shared_ptr<KartModel>::~shared_ptr (this=0x5c9fae482b40, __in_chrg=<optimized out>)
    at /usr/include/c++/13/bits/shared_ptr.h:175
#10 0x00005c9f9f197cfe in KartProperties::~KartProperties (this=0x5c9fae482a90, __in_chrg=<optimized out>)
    at (debug stk folder)/src/karts/kart_properties.cpp:134
#11 0x00005c9f9f1aa1eb in PtrVector<KartProperties, (VECTOR_TYPE)1>::clearAndDeleteAll (this=0x5c9fa2528e48)
    at (debug stk folder)/src/utils/ptr_vector.hpp:164
#12 0x00005c9f9f1a3826 in KartPropertiesManager::unloadAllKarts (this=0x5c9fa2528cc0)
    at (debug stk folder)/src/karts/kart_properties_manager.cpp:89
#13 0x00005c9f9eeb82d6 in IrrDriver::applyResolutionSettings (this=0x5c9fa23177a0, recreate_device=true)
    at (debug stk folder)/src/graphics/irr_driver.cpp:1073
#14 0x00005c9f9eebd4b7 in IrrDriver::update (this=0x5c9fa23177a0, dt=0, is_loading=false)
    at (debug stk folder)/src/graphics/irr_driver.cpp:2136
#15 0x00005c9f9f1dca13 in MainLoop::run (this=0x5c9fa3893870) at (debug stk folder)/src/main_loop.cpp:574
#16 0x00005c9f9f1d4c0b in main (argc=2, argv=0x7fff38896928) at (debug stk folder)/src/main.cpp:2627
(gdb) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants