compiz causes crash with fullscreen sdl applications (gutsy)

Bug #130110 reported by ChrisC
8
Affects Status Importance Assigned to Milestone
Compiz
Fix Released
Undecided
Unassigned
compiz (Ubuntu)
Fix Released
Undecided
Michael Vogt

Bug Description

Binary package hint: compiz

SDL_WM_ToggleFullScreen( surface );

execute this to kill xwindows!

As this is in a lot of games this directly effects bug #1 !
(I feel this is an important issue that needs resolving before release
as this will put off games players trying out Linux for the first time)

http://nehe.gamedev.net/data/lessons/linuxsdl/lesson11.tar.gz
see this code for a good example (NB mouse must be over window to see activity)

also notice pause of about half a second every second when compiz is used

Workround: disable compiz, apps work fine

Related branches

Revision history for this message
Justin M. Wray (wray-justin) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Can you please provide the version information for your compiz installation. In addition was this version of compiz from the Ubuntu repository, or downloaded elsewhere?

Thanks,
Justin M. Wray

Changed in compiz:
assignee: nobody → wray-justin
status: New → Incomplete
Revision history for this message
ChrisC (chris-chris-camacho-deactivatedaccount) wrote :

as per title its gutsy

I can confirm its compiz from the Ubuntu repository

Revision history for this message
ChrisC (chris-chris-camacho-deactivatedaccount) wrote :

since todays update fullscreen toggle doesnt cause crash

However with compiz enabled still a pause for a second every few seconds
this doesnt happen with compiz disabled

Revision history for this message
Justin M. Wray (wray-justin) wrote :

Added upstream bug as well, http://bugs.opencompositing.org/show_bug.cgi?id=305

Thanks,
Justin M. Wray

Changed in compiz:
status: New → Unknown
status: Incomplete → Confirmed
assignee: wray-justin → nobody
Revision history for this message
ChrisC (chris-chris-camacho-deactivatedaccount) wrote :

seems to me compiz doesnt play nicely with direct rendering

There needs to be some kind of standard ?xlib? method to arbitrate
opengl direct rendering

Revision history for this message
Travis Watkins (amaranth) wrote :

That is not the upstream compiz bug tracker.

Changed in compiz:
status: New → Invalid
Revision history for this message
ChrisC (chris-chris-camacho-deactivatedaccount) wrote :

So why not suggest the correct one?

Revision history for this message
Justin M. Wray (wray-justin) wrote :

Launchpad is listing it as the bug tracker. And they do appear to track bugs on http://www.opencompositing.org/ as well, according to the site.
Do you know the correct upstream tracker? The main compiz site does list, bugs.freedesktop.org, as a tracker.

Any ideas?

Thanks,
Justin M. Wray

Changed in compiz:
status: Invalid → Unknown
Revision history for this message
Travis Watkins (amaranth) wrote :

The freedesktop one is the correct place for compiz bugs. The opencompositing one is for compiz-fusion bugs. They have a core option in their bug tracker for people that incorrectly file core bugs on their bug tracker.

Revision history for this message
Justin M. Wray (wray-justin) wrote : Re: [Bug 130110] Re: compiz causes crash with fullscreen sdl applications(gutsy)

I will refile on freedesktop. Any reason Launchpad is listing the compiz-fusion tracker?

Thanks,
Justin M. Wray

Sent via BlackBerry by AT&T

-----Original Message-----
From: Travis Watkins <email address hidden>

Date: Wed, 08 Aug 2007 23:25:24
To:<email address hidden>
Subject: [Bug 130110] Re: compiz causes crash with fullscreen sdl applications
 (gutsy)

The freedesktop one is the correct place for compiz bugs. The
opencompositing one is for compiz-fusion bugs. They have a core option
in their bug tracker for people that incorrectly file core bugs on their
bug tracker.

--
compiz causes crash with fullscreen sdl applications (gutsy)
https://bugs.launchpad.net/bugs/130110
You received this bug notification because you are a direct subscriber
of the bug.

Revision history for this message
Justin M. Wray (wray-justin) wrote :

Upstream Bug: https://bugs.freedesktop.org/show_bug.cgi?id=11915

Thanks,
Justin M. Wray

Changed in compiz:
status: New → Unknown
Changed in compiz:
status: Unknown → Confirmed
Revision history for this message
Nemes Ioan Sorin (nemes-sorin) wrote :

At least I found a possible source of this problem (not only for sdl apps), see https://bugs.launchpad.net/bugs/138424

I have to reset one Compiz plugin to make things work again.

in short, this is what I observe (copy from 138424 ...)

The strange behavior for apps. launched on fullscreen (Nautilus or other applications) was caused(on my machine) by a Compiz plugin named PLACE WINDOWS under WINDOWS MANAGEMENT SECTION.

This plugin has 4 possible states = 4 possible ways to put a window on desktop when this window is generated.

1 Centered
2 Smart
3 Maximize
4 Random

The subject of this bug report is this RANDOM mode.
When RANDOM mode is activated - this plugin try to calculate a random X and Y start points for the new generated window.
This is in oposition with the case when a window try to start in fullscreen mode and X,Y = 0.

Changing this mode to CENTERED mode solve my problem.

Revision history for this message
Michael Vogt (mvo) wrote :

compiz (1:0.5.2+git20070928-0ubuntu1) gutsy; urgency=low

  * updated to the latest 0.6 snapshot:
    - improve focus stealing prevention (LP: #91590)
    - fix crash in sdl fullscreen apps (LP: #130110)
    - Fix map and restack ordering
    - Fix in window position calculation
  * debian/patches/
      0002-Make-sure-that-unredirected-windows-get-redirected-o.patch
    - removed, moved upstream

 -- Michael Vogt <email address hidden> Fri, 28 Sep 2007 15:03:24 +0200

Changed in compiz:
status: Confirmed → Fix Released
Michael Vogt (mvo)
Changed in compiz:
status: Fix Released → Fix Committed
assignee: nobody → mvo
status: Fix Committed → Fix Released
Changed in compiz:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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