Spring RTS does not maximize properly and crashes.

Bug #1006358 reported by varikonniemi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Compiz
Confirmed
Undecided
Unassigned
compiz (Ubuntu)
Confirmed
Undecided
Unassigned
spring (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Unity does not seem to play nice with Spring RTS in 12.04 (nor in 11.10).

When trying to maximize the game window, it does not maximize properly (get rid of the titlebar and move buttons to the top bar) but is left looking as a non-maximized window.

 If the maximize button is repeatedly pressed, the game crashes with segmentation fault.

Maximizing works correctly under gnome-shell (using the plugin to hide titlebar when maximized).

A link to discussion (and debug info) concerning this problem on spring rts:s forums: http://springrts.com/phpbb/viewtopic.php?p=522768#p522768

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

varikonniemi, when you say the window doesn't maximize, does it change size or change at all?

Also note, any crash in an application is the fault of the application. The same could be true for maximization as it is the responsibility of the application to respond to size and position changes.

Changed in unity (Ubuntu):
status: New → Incomplete
Revision history for this message
varikonniemi (varikonniemi) wrote :

The window does maximize, but is left with the titlebar and window decorations.

I don't know enough about the inner workings of unity to say who is at fault, but i (and some of the spring developers) felt it must be unity at fault since when running gnome-shell the maximizing and titlebar hiding works perfectly.

If you look at the log found in the link i provided you can see that when maximize is pressed, spring tries to change the window resolution to 1920x1200, then immediately back to 1855x1148 (maximized window, with launcher and top bar&title bar) and at this point when i press maximize again it changes back to 1920x1200 and crashes. How is this resolution defined to spring? I would think unity tells what the new window size should be after resizing? Could this be the problem, since obviously it cannot be 1920x1200 as the top bar of unity should be subtracted from the total vertical resolution...?

Revision history for this message
varikonniemi (varikonniemi) wrote :

After some more testing i find that the crash type changes, when the unity launcher is set to auto hide. More info can be found in this post: http://springrts.com/phpbb/viewtopic.php?p=522833#p522833

affects: unity (Ubuntu) → spring (Ubuntu)
Changed in spring (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

varikonniemi, regarding maximization, my only theory right now is that Spring is changing its window manager hints. Please try maximizing again, and after that, run "xwininfo -all" and click on the Spring window. Please then attach the output of xwininfo to this bug.

Regarding all crashes, those are the fault of the application or the application's libraries. Probably the game itself or Spring.

Changed in spring (Ubuntu):
status: New → Incomplete
Changed in compiz (Ubuntu):
status: New → Incomplete
Changed in compiz:
status: New → Incomplete
Revision history for this message
varikonniemi (varikonniemi) wrote :

The crash is only happening on my main system, my secondary computer with the same os and gfx driver does not crash. But it also fails to maximize properly. Attached is the info you requested.

Revision history for this message
varikonniemi (varikonniemi) wrote :

How is the status of this bug? The crash is essentially down to the particular hw setup, but the failure to maximize is either an unity bug, or compatibility introduced in gnome-shell to workaround spring rts bug? IT would be nice to have an official stance on this.

It is after all we are talking about the most populas OS operating system and the most popular OS RTS exhibiting this severe incompatibility problems...

Changed in compiz:
status: Incomplete → Confirmed
Changed in compiz (Ubuntu):
status: Incomplete → Confirmed
Changed in spring (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
varikonniemi (varikonniemi) wrote :

Still pretty much the same behavior on 12.10. The game does not crash anymore but still fails to maximize correctly.

Revision history for this message
Markus Koschany (apoleon) wrote :

Please try the latest version of Spring in Ubuntu 14.10 and the new development branch 15.04. Spring uses SDL2 now which improved switching between window and fullscreen mode a lot.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.