Bug 15809

Summary: [AIGLX] crash on window resize
Product: Mesa Reporter: Andrew Randrianasulu <randrik>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: xorg.log, truncated because NoTrapSingnal option was enabled in config
Xorg.conf, without NoTrapSignals option
beryl settings.

Description Andrew Randrianasulu 2008-05-03 06:32:01 UTC
Created attachment 16322 [details]
xorg.log, truncated because NoTrapSingnal option was enabled in config

hw:

01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 SE] (rev 01) (prog-if 00 [VGA])
        Subsystem: Hightech Information System Ltd. Excalibur 9200SE VIVO 128M
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
        Memory at d0000000 (32-bit, prefetchable) [size=128M]
        I/O ports at c800 [size=256]
        Memory at dfef0000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at dfec0000 [disabled] [size=128K]
        Capabilities: [58] AGP version 2.0
        Capabilities: [50] Power Management version 2

software:
kernel 2.6.24.5
glibc-2.7
gcc-3.4.6 for mesa, 4.2.2 for Xorg

X server from git (3b8d53452cd6c74d32d7759964a7cd9ee775f161)
mesa from git - 3323ccb803282dddcf1e403df33d00eaa0fbd0f8
drm from git -  3ac74f3208ed15a990a0a26742fbfe566f08aa80
xf86-video-ati - 3d469cbc3225d890a895dac7cbc1ab7e08054b48

beryl --version
beryl-core 0.2.1

mozilla (seamonkey) 1.1.9 gtk1

Steps for reproduce:

1. Start X with terminal.
2. start beryl and emerlad: beryl& emerald&
3. start mozilla/seamonkey.
4. Try to resize seamonkey's window. (with mouse)
5. see crash.

---------------gdb.txt----------

#0  0xb15ce529 in texture_override (ctx=0x85cf828, texUnit=0x85da510,           
    enableBits=16, texObj=0x0, textureBit=16) at main/texstate.c:2827           
No locals.                                                                      
#1  0xb15ce85d in _mesa_update_texture (ctx=0x85cf828, new_state=4456481)       
    at main/texstate.c:2922                                                     
No locals.                                                                      
#2  0xb15b5002 in _mesa_update_state_locked (ctx=0x85cf828)                     
    at main/state.c:1062                                                        
        new_state = 4456481                                                     
#3  0xb15b5285 in _mesa_update_state (ctx=0x85cf828) at main/state.c:1262       
No locals.                                                                      
#4  0xb169c0b9 in _mesa_GetIntegerv (pname=34038, params=0xbff51518)            
    at main/get.c:5368                                                          
        ctx = (GLcontext *) 0x85cf828                                           
#5  0xb7ad7031 in __glXDRIbindTexImage (baseContext=0x85162b0, buffer=8414,     
    glxPixmap=0x8a8af48) at glxdri.c:403                                        
        pRegion = Variable "pRegion" is not available.
Comment 1 Andrew Randrianasulu 2008-05-03 06:35:50 UTC
Created attachment 16323 [details]
Xorg.conf, without NoTrapSignals option
Comment 2 Andrew Randrianasulu 2008-05-03 06:37:26 UTC
Created attachment 16324 [details]
beryl settings.
Comment 3 Michel Dänzer 2008-05-03 10:45:55 UTC
Doesn't look driver specific.

Does this also happen with current versions of compiz(-fusion)? The crash should be fixed anyway, but I've never seen this with compiz...
Comment 4 Andrew Randrianasulu 2008-05-03 17:43:21 UTC
compiz (0.7.4) works without crash. But beryl used something different while resizing windows, like blurring everything in real time. Compiz simply resized window, without this 'blur-everything-behind' effect.
Comment 5 Andrew Randrianasulu 2008-05-06 22:34:57 UTC
if I disable [blurfx] plugin in .beryl/settings - it works good. (no crash)
if I set  

[resize]                                                                        
a_opacity=100

it works good too, even with blurfx enabled.

Looks like "resize a_opacity !=100" AND active blurfx [in "Simple" mode, without PBO and fragment_program] trigger crash-on-resize bug here .... 

source for this plug-in seems to be here:
http://debian.beryl-project.org/pool/etch/main/0.2.0/beryl-plugins_0.2.0~0beryl1.tar.gz
Comment 6 Andrew Randrianasulu 2008-10-31 19:36:10 UTC
With mesa master 06fe728e5bbaf09258838dfe8e634d969a63ad74
xserver master ecd55bc859eb5d7c639d5a6d531d9df524124247
libdrm 00847dabe0fa5ccf796658f486e8f6f7a77e043b (libdrm 2.4.1)
xf86-video-ati 937b7ac2a259cf504a19dcf62a58b1db1afb8eb9
AND
libcairo [git from few hours before 1.8.2 release] compiled without glitz and xcb support i can't trigger this bug anymore. 
Comment 7 Michel Dänzer 2008-11-01 05:01:01 UTC
(In reply to comment #6)
> AND
> libcairo [git from few hours before 1.8.2 release] compiled without glitz and
> xcb support i can't trigger this bug anymore. 

So can this bug be closed, or are you saying it still happens with different versions/compilations of cairo?
Comment 8 Andrew Randrianasulu 2008-11-01 05:18:33 UTC
Unfortunately, bug still here, just required few more seconds of fast resizing. An d no, no difference between old and new libcairo. Sorry.
Comment 9 Michel Dänzer 2009-04-28 00:45:39 UTC

*** This bug has been marked as a duplicate of bug 17895 ***
Comment 10 Adam Jackson 2009-08-24 12:30:10 UTC
Mass version move, cvs -> git

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.