Opened 12 years ago

Closed 11 years ago

#1549 closed defect (invalid)

Ubuntu 12.04: Impossible to start game: the mouse are unable to move onthe bottom on the screen!

Reported by: Antoine Owned by:
Priority: Should Have Milestone:
Component: Core engine Keywords:
Cc: Patch:

Description

Hi, unfortunatly after upgrade to ubuntu 12.04, 0Ad Alpha10 have a strange behaviour. I 'm unable to move on the bottom (the last 1 or 2 cm )of the screen (0ad run fullscreen ) and to play because the start game bouton is just in this area. I hope that my explanations are clear

Change History (14)

comment:1 by fabio, 12 years ago

Try going in window mode pressind ALT+ENTER and see if that works around the problem.

comment:2 by Antoine, 12 years ago

It's work fine. thanks a lot -(and for this game) Antoine

comment:3 by O.Davoodi, 12 years ago

Resolution: invalid
Status: newclosed

comment:4 by Erik Johansson, 12 years ago

Resolution: invalid
Status: closedreopened

I'm not sure this should be closed? As far as I can tell from the comments it only worked in windowed mode? We should still try and see if we could find the reason why it's not working in full screen. (Though it does sound like an issue with the Ubuntu upgrade rather than 0 A.D.)

comment:5 by historic_bruno, 12 years ago

Milestone: Backlog
Priority: Release BlockerShould Have
Summary: Impossible to start game: the mouse are unable to move onthe bottom on the screen!Ubuntu 12.04: Impossible to start game: the mouse are unable to move onthe bottom on the screen!

Make sure all your installed packages are updated.

What video card and drivers are you using?

comment:6 by fcxSanya, 12 years ago

I experienced the same issue before on older version(s) of Ubuntu (maybe on the same one, maybe on different), but don't care about it much because IIRC it can be easy workarounded somehow: by switching to the windowed mode and then back into fullscreen or by running in windowed and then switching into fullscreen or just by rerunning the game or something and I supposed that it is Ubuntu (window manager or some other system part) or SDL issue, i.e. something that can't be fixed in our codebase.

Edit: sorry for so vague info, I really don't paid attention to this issue, but saw it a number of times. I'm unable to reproduce it now on my work computer with Ubuntu 11.10, some integrated graphics card and default driver (system info says "Graphics Card : X.Org Gallium 0.4 on AMD RS780"): I tried to run game in the fullscreen mode from start and to run in windowed mode and then switch into fullscreen. Will try to do the same later today at home (Ubuntu 12.04, ATI Radeon HD 5770, proprietary videodriver).

Last edited 12 years ago by fcxSanya (previous) (diff)

in reply to:  6 comment:7 by fcxSanya, 12 years ago

Replying to fcxSanya:

Will try to do the same later today at home (Ubuntu 12.04, ATI Radeon HD 5770, proprietary videodriver).

Still reproducible here: independently from how I start the game initially (windowed or fullscreen) in the series of alt-enters sometimes (and sometimes all is fine) in fullscreen:

  • without hardware cursors (nohwcursor = true) behavior is the same as described in the ticket (and as I experienced before) - I just can't move the mouse cursor outside of (as I understand) rectangle of windowed window size (0, 0, 1024, 768);
  • with hardware cursors (nohwcursor = false) I can move mouse everywhere, but controls at the bottom part of screen (in the main menu: 'Website', 'IRC', 'Enable feedback' and 'Technical details') don't receive mouse events (don't react to mouse hover and clicks), this is probably related to the same rectangle of original window size.

Maybe something happening with SDL window settings.

comment:8 by Yves, 12 years ago

I can reproduce it too.

  1. Start in windowed mode --> Bottom of the screen reachable, feedback-button shows hover-effect when hovering
  2. After having moved the mouse around a bit, hit alt+enter for fullscreen. --> Bottom of the screen not reachable anymore, feedback-button doesn't show hover-effect.

It does not happen if you don't move the mouse after starting and directly do alt+enter.

comment:9 by historic_bruno, 12 years ago

I just upgraded to Ubuntu 12.04 and noticed this issue following Yves' steps. Ubuntu is unfortunately packaging an older version of SDL (1.2.14-6.4ubuntu3), so I tried building and using 1.2.15 instead. The problem was no longer reproducible, so I'm going to say it's a bug with the SDL version provided by Ubuntu 12.04, rather than anything to do with 0 A.D. Hopefully they will upgrade the libsdl1.2 package(s) before long.

(It's easy to test this without messing up your environment: build and install SDL 1.2.15 somewhere in your home directory using the --prefix flag for ./configure, afterward export the SDL_CONFIG env variable to point to the produced sdl-config binary, then run ./update-workspaces.sh followed by a clean build.)

Last edited 12 years ago by historic_bruno (previous) (diff)

comment:10 by Yves, 12 years ago

Looks like this one... I'll have a closer look. https://bugs.launchpad.net/ubuntu/+source/libsdl1.2/+bug/1018600

comment:12 by Clint Bellanger, 12 years ago

Cross reference: we're having the same issue on Flare. I submitted that original issue to bugs.launchpad.net/ubuntu

Our issue on github: https://github.com/clintbellanger/flare/issues/385

comment:13 by Yves, 12 years ago

I've found out which revision of SDL solves the problem and have updated the bug-entry on launchpad. I'm now waiting for feedback from an Ubuntu developer. Most of the bug-tracking will now happen on launchpad.

comment:14 by historic_bruno, 11 years ago

Milestone: Backlog
Resolution: invalid
Status: reopenedclosed

Closing this ticket since it's an Ubuntu and SDL issue.

Note: See TracTickets for help on using tickets.