/srv/irclogs.ubuntu.com/2010/04/27/#ubuntu-x.txt

mdeslaurfyi: http://blino.org/blog/mandriva/poulsbo-xserver1.7.html00:36
rippswhy does it take forever for the gtk file dialog to do anything when I select a folder with a lot of images. It freezes for like a full minute before it allows me to bush a button.02:26
RAOFThe simple, facetious answer would be “because GTK is doing something slow”.02:28
RAOFripps: However, we can do better than that.  Let's narrow it down: what X driver?02:28
rippsRAOF: r300 ati KMS02:28
RAOFGood, so we're in the “should have decent acceleration” zone.02:30
RAOFIt also suggests that maybe it's not an X problem, but let's see if we can pinpoint it.02:31
RAOFIs there any obvious system load when that's happening?  Disc access?02:33
RAOFIs GTK trying to do something stupid, like create thumbnails for everything?02:33
rippsIt is an external ntfs harddrive, so I suppose that might have something to do with it, but this problem seems to come a go. Just a few weeks ago, it was loading at a decent pace, but the last couple days, it's been taking almost a full minute. The only program that seems to be having load is the program that called the dialog (in this case, usually google-chrome)02:33
rippsIt spikes pretty high too, I've caught chrome at about 86% during one of these loads02:34
RAOFIf you copy that directory to a more native filesystem, does it load quickly?02:35
rippsRAOF: I don't have enough space on a native filesystem right now (hence the reason I use a external harddrive) I could do some cleaning and see if I can.02:36
RAOFKeep that up your sleeve; it might be useful.02:36
RAOFSo, does this happen all the time?  If you now try to open the same directory again, is it as slow again?02:37
rippsI don't want to convert the harddrive to a linux native filesystem because I tend to transfer files between it and a windows pc usually.02:37
rippsRAOF: loading the directory in Nautilus doesn't have this kind of slowdown, only with gtk file dialogs02:38
rippsI have a lot of images and cbz comic archives mixed together in the folder02:39
rippsHmmm... at-spi-registry jumped up to 15-19% while it was loading the directory... think that might have something to do with it? 02:43
rippsRAOF: ^02:43
RAOFThat seems odd.02:43
RAOFThat's the accessability framework…02:44
rippsHmm.. now that I think about it. I started playing around with secondary dwell clicks a few weeks ago. I turned it off because it wasn't working very well, but I might have never turned accessibility service off. 02:46
RAOFGive that a whirl, perhaps?02:46
rippswell, I killed at-spi-registryd, but I still see slow dialog, this time Xorg was the one jumping up to 15-18% instead of at-spi02:49
ilmarianything revealing in xrestop?02:50
RAOFoprofile might be a winner; it would be interesting to see what's actually taking time.02:51
RAOFAlso, to eliminate the driver it might be nice to try again with the vesa driver.  If that showed the same behaviour it would strongly suggest a bug somewhere higher in the stack.02:52
rippsHow do I force X to load vesa?02:52
RAOFAdd an xorg.conf with Driver "vesa" in there.  https://wiki.ubuntu.com/X/KernelModeSetting has an example.02:54
rippsHow do I use oprofile?03:00
RAOFhttp://oprofile.sourceforge.net/docs/ has a cheat-sheet03:03
RAOFI haven't used oprofile myself, though, so I'm not sure how easy that is in practice.03:04
RAOFopreport --demangle=smart --symbols `which lyx` from the examples page is probably the output we're looking for.03:04
bjsniderRAOF, what hardware does the netbook you're testing have?03:37
RAOFbjsnider: An intel something-or-other and a GeForce 9300M03:38
bjsnidercool, so it's dual gpus?03:38
RAOFYes, but hidden behind a crazy bios switch.03:43
RAOFOne of them is always hidden.03:43
bjsniderwell, i set up a ppa with vaapi with mplayer and vlc. depending on which intel generation, hardware accel for hd video may work for both gpus03:44
bjsniderhttps://launchpad.net/~nvidia-vdpau/+archive/cutting-edge-multimedia03:44
bjsnideri'd say for it to work well the intel gpu has to be at least a gma 450003:44
Sarvattit needs seperate libva kernel and libdrm updates as well to even be worth bothering with on intel03:52
Sarvattnone of its upstream yet last i checked a few days ago03:53
RAOFYeah; those patches exposing the fancy h264 hardware decode ringbuffer to libdrm don't seem to have landed yet.03:54
bjsniderstrange that the intel libva driver builds. i'd have thought there'd be undefined symbol errors and so forth03:55
RAOFOk.  Time for some lunch.04:05
Ngbryceh: aha, I'll try that tonight, thanks :)09:04
mvohi, what is the best way to debug something like bug #57063412:37
ubottuLaunchpad bug 570634 in xorg-server "immediate logout of the gnome session after hardy -> lucid upgrade (inside kvm)" [Undecided,New] https://launchpad.net/bugs/57063412:37
mvoapport seems to not pick it up, should it?12:37
jcristauyou say "nothing unusual in the X log" and then attach an X log which shows a segv :)12:43
mvojcristau: that was a bit of a mistake …12:44
jcristaucompiz with cirrus, though?12:44
mvoyes12:44
mvowell, kvm12:44
jcristauthat's asking for trouble :)12:44
mvoheh :)12:45
mvoI noticed!12:45
jcristauthen again, (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so12:45
jcristaumeans compiz can't work12:45
mvoyeah, it should detect it and fallback, and sometimes it does12:45
mvobut not always it seems12:46
jcristaumaybe it tries, but X crashes first :)12:46
mvoyeah12:46
mvois there a way to retrace the crash? will it pick up debug symbols automatically?12:47
jcristaustarting X with -core should get a core dump in /etc/X1112:50
jcristauseems like X crashes on the first composite call, before compiz gets a chance to check glx stuff12:51
mvothanks, I try that (I just need to figure out where gdm calls X and how to add args)12:53
tseliotmvo: maybe try gdm_server_start_on_active_vt (added by patch 28) or gdm_server_start ?13:39
seb128mvo, start without compiz and see if running glxinfo crashes it too13:40
jcristauseb128: it's not crashing in GL stuff13:41
jcristauit's crashing in composite13:41
seb128oh ok13:41
tseliotmvo: you can add arguments as shown in that patch: server->priv->command = g_strdup (X_SERVER " -nr -verbose")13:42
jcristautseliot: should be possible to do that from the gdm config, though, hopefully13:42
jcristauit is with gdm 2.20 anyway..13:42
seb128I've looked a bit for this and it doesn't seem to be in the config with the new gdm no13:42
jcristausigh13:43
tseliot:-/13:43
jcristauno end of brokenness in this new gdm it seems13:43
jcristauother option would be to start X without compiz, ssh in, attach gdb, and then start compiz13:44
mvotseliot: right, that is a bit heavy weight13:44
* tseliot nods13:45
mvoglxinfo works fine13:45
mvobut I'm sure its some sort of race as I sometimes can login13:45
mvoand sometimes can't13:45
CobaltIs there any benefit to adding the Xorg Edgers repository (for Intel chipsets) in Lucid?14:15
JanCCobalt: do you have problems with the default drivers?14:55
CobaltI haven't upgraded yet, I was just wondering what people's experience of it has been. Will be doing so towards release time.14:56
JanCCobalt: I think xorg edgers might be useful on lucid for people with an intel i8xx IGP15:44
JanCbut I haven't followed all the latest stuff about that15:44
__mikemSarvatt: may I ask when I can expect xorg-edgers to be available?15:51
=== ara_ is now known as ara
=== ara is now known as Guest4805
=== Guest4805 is now known as ara
Sarvatt__mikem: available? if you mean vmware support in there I already told you that i probably wont get to it for a  month or two17:13
__mikemSarvatt: oh okay. Sorry, I forgot that you gave me a time frame17:14
Sarvatti told you how to do it yourself too :)17:16
=== seb128_ is now known as seb128
Sarvattmvo: hmm so kvm's cirrus device no longer has a 1234 pci id? we have a patch default cirrus to vesa but you have an actual cirrus pci id there18:08
mvoSarvatt: oh, that is interessting18:09
Sarvattdefaulting qemu's cirrus pci id to vesa I mean because it had problems with the cirrus driver18:09
Sarvatthttp://git.debian.org/?p=pkg-xorg/xserver/xorg-server.git;a=blob;f=debian/patches/184_virtual_devices_autodetect.patch;h=a236e2210ba8c71324f178e6e344c6954befc26e;hb=refs/heads/ubuntu-lucid18:10
Sarvattbut looking at that i dont see how it ever worked since 1234 pci id would never have been matched and it would have been defaulted to vesa anyway, need to look into that some more18:13
Sarvattdarnit, don't have any systems handy with hardware virtualization support to mess with it at the moment and it looks to be significantly different in the non KVM case, asking for a full backtrace with archive versions of xserver are still screwed up since xserver dbg and dbgsym packages are still screwed up18:45
Sarvattapport definitely isn't working with xserver segfaults though, its not just this one machine i'm on18:55
brycehfairly sure it's turned off by default at this point19:17
brycehSarvatt, or had you explicitly enabled it?19:17
Sarvattyeah I enabled it and its not blacklisted19:18
brycehmm, then could be a bug somewhere19:18
brycehare other apport crash hooks working?19:18
Sarvattit hasn't worked since the fixes to have it not crash the server in other situations here, and i haven't seen an apport xserver bug since then either19:18
Sarvattyeah other ones are working fine19:19
brycehhrm, sounds like a bug in the x apport script maybe then19:20
CobaltJanC: Fair enough, I'll see what the deal is after I install.19:23
brycehSarvatt, sounds a lot like a bug in my commit 1643fb38 but I don't see an obvious error19:30
brycehSarvatt, would be interesting if commenting out lines 76-83 would make it functional again19:31
Sarvattwill do, need to switch back to a broken xserver that i can crash easily too :)19:38
Sarvattit hasn't been working for me since january though, but its possible I'm remembering wrong or didn't dig into it any deeper in that time frame19:44
brycehwell, I know it at least worked up until the last change (mar 8th) since that change was prompted by apport reports ending up in the wrong place19:44
brycehI admit I don't recall seeing many reports subsequent to that, but that's also about when we stopped the -intel freeze capture tool, which quelled a lot of the reports19:45
Sarvatthttps://bugs.edge.launchpad.net/ubuntu/+source/xorg-server/+bug/510997 -- thats the last apport bug i see reported regarding a segfault using free drivers19:47
ubottuUbuntu bug 510997 in xorg-server "Xorg crashed with SIGSEGV in _IO_default_xsputn()" [Undecided,Confirmed]19:47
Sarvattassert reports seem to still be working19:48
Sarvattbut there are lots of bugs with server segfaults in the logs after19:49
brycehhrm19:49
brycehthere were several changes on jan 25th19:50
brycehand then a bunch in feb19:51
Sarvattthat bug was filed against karmic too throwing another wrench in it, bah19:54
brycehbug #515135 is newer - from 1-3119:54
ubottuLaunchpad bug 515135 in xserver-xorg-video-intel "Xorg crashed with SIGSEGV" [Undecided,Confirmed] https://launchpad.net/bugs/51513519:54
Sarvattbryceh: ok thats interesting because xserver-xorg-core 2:1.7.3.902-1ubuntu919:55
Sarvattxorg-server (2:1.7.3.902-1ubuntu9) lucid; urgency=low19:56
Sarvatt  * Fully disable 100_rethrow_signals.patch as it seems to still cause19:56
Sarvatt    crashes.  Goodbye apport.19:56
brycehseems the apport hook still works for proprietary drivers though - lp #566435 from 4/1819:56
ubottuLaunchpad bug 566435 in nvidia-graphics-drivers "Xorg crashed with SIGSEGV in strtol()" [Medium,New] https://launchpad.net/bugs/56643519:56
brycehthis is a sad state of affairs to be troubleshooting why we're not *more* bug reports than we already are ;-)20:01
Sarvattwell its wasting a heck of a lot of time digging through peoples logs and vague descriptions to find the info and we're losing automatic duping :) 20:03
brycehbugs that have vbox installed seem to be getting through ok - lp #55928820:03
Sarvattdowngrading to xserver 2:1.7.6-2ubuntu5 now to play with the apport script and see if i can get it going20:03
ubottuLaunchpad bug 559288 in virtualbox-ose "Xorg crashed with SIGSEGV" [Undecided,Confirmed] https://launchpad.net/bugs/55928820:03
brycehmm, the vbox test bails out before the nvidia bits anyway so that doesn't tell much20:05
brycehooh I have an idea20:06
Sarvattshoot me any ideas you have because i have an easily testable setup going now :)20:06
brycehwait maybe not20:06
brycehwell there is a stanza towards the end that prompts the user before attaching their gdm files20:07
brycehsince it's an interactive bit, I thought maybe it fails when handling crashes20:07
brycehhowever that wouldn't explain why it's working for proprietary drivers20:07
brycehbut might try commenting that out and see if it makes any difference20:07
brycehthe one thing I see that might be squirrelly with open vs. proprietary is the stuff for attaching /var/lib/dkms/ bits around line 9220:09
brycehSarvatt, do you have a /var/lib/dkms directory?  If so, that bit of code could be executing but maybe the glob is breaking20:10
brycehkind of crazy how many X crashes are really "broken vbox" bugs20:11
Sarvattcommented all of that stuff out, lets see20:11
Sarvattno /var/lib/dkms here20:12
brycehlp #560633 is a recent one with no proprietary drivers or vbox20:13
ubottuLaunchpad bug 560633 in xserver-xorg-input-evdev "Xorg crashed with SIGSEGV in read()" [Undecided,Confirmed] https://launchpad.net/bugs/56063320:13
Sarvattoh bah 2:1.7.6-2ubuntu5 had the fix for clutter crashing in it, it was 2:1.7.6-2ubuntu1 i needed20:16
Sarvattnothing in /var/crash/, apport is running and i even tried using the karmic source_xorg.py20:30
* Sarvatt just goes the easy route and puts a patched gdm to launch x with -core in a PPA for now20:35
Sarvattmy crashes all end at 0: /usr/bin/X (xorg_backtrace+0x3b) [0x80e937b] but the ones that are working go farther past that? #2  0x00007f6ec8cf934e in backtrace () from /lib/libc.so.6 #1  0x00007f6ec7f3966e in _Unwind_Backtrace () from /lib/libgcc_s.so.120:38
Sarvattit sure would be nice if mesa could remove ~/.drirc on upgrade or downgrade20:52
Sarvatti always forget to reset all of the settings when i change mesa versions, right now it leaves texture tiling enabled on intel when i downgrade back to the lucid version where its horribly buggy20:53
Sarvattthink i'll put a note about that on xorg-edgers, only a problem if someone installed driconf anyway20:54
Sarvattbryceh: noticed something odd in the bug you linked there - http://launchpadlibrarian.net/43774793/GdmLog2.txt20:59
Sarvattit didn't print the backtrace info in the log and it successfully dumped a core21:00
brycehdo you think people commonly use driconf?  If so we could add it to the apport hook :-)21:05
=== BUGabundo is now known as BUGabundo_dinner
brycehyeah I haven't looked at enough of the new gdm logs to know if that's normal or not21:07
Sarvattnah i'm sure it's by far the minority but if you've ever installed it and changed the settings all of the settings stick around permenantly until you remove ~/.drirc21:08
Sarvattif i install mesa 7.9 and then driconf and change a setting, it'll store all of the settings from 7.9 and those will get loaded for everything mesa in all other versions even if the default values are different21:11
Sarvattgoing from 7.9 to 7.7 is bad that way because intel will use texture tiling that's really screwed up in 7.7 and disabled by default there21:12
Sarvattbryceh: all of the reports where apport is working and catching segfaults are the same - http://launchpadlibrarian.net/43553278/GdmLog2.txt21:16
Sarvattand here's what it looks like not working http://pastebin.com/DJtj6nhL21:16
Sarvatt(that's /var/log/gdm/:0.log.1 after a crash)21:17
Sarvatthttp://git.debian.org/?p=pkg-xorg/xserver/xorg-server.git;a=blob;f=debian/patches/168_glibc_trace_to_stderr.patch;h=ed218bb3673836c143afac8c8842255b818bd90c;hb=refs/heads/ubuntu insufficient for all cases?21:18
brycehwell, the presence of a .driconf could be a clue on bugs; I'll put on my todo list to add it to apport later on21:19
brycehcould be21:21
brycehSarvatt, there has always been some cases where xserver crashes don't get caught by apport, and we never did figure out why21:21
brycehhowever it seems like we're getting far fewer than usual21:22
brycehmm, we disabled 100_rethrow_signals.patch on Jan 18th21:23
brycehso that explains why it "seemed" that crashes stopped being captured at that point21:24
brycehit was re-enabled on Feb 3rd21:24
bryceh  * 100_rethrow_signals.patch: Fix SigAbortServer to cleanly exit(1) on a21:25
bryceh    non-signal crash, as the original upstream code does. Not exiting leads to21:25
bryceh    continuing back into the code which threw the error, which eventually21:25
bryceh    leads to writing into the already closed log file and other operations21:25
bryceh    which cause segfaults.21:25
bryceh  * Re-enable 100_rethrow_signals.patch.  Hello apport.21:25
bryceh -- Martin Pitt <martin.pitt@ubuntu.com>  Wed, 03 Feb 2010 17:29:53 -080021:25
Sarvattthe log stops at the backtrace on every bug i can find so far where it's working, looks like the backtrace info is supposed to go to STDERR for apport to catch it and it's being printed to the log in the cases where its not working21:25
brycehweird21:27
brycehwell, I can imagine that is what is causing the problem21:27
brycehbut why would it be that this seems to be working for the proprietary drivers?21:28
Sarvatttrying to find an apport bug with a 32 bit core dump i can play with to look into it more21:31
brycehwe should bring pitti into this at some point too21:31
=== BUGabundo_dinner is now known as BUGabundo
Sarvattseems to be one specific abort path that works and the others dont or something, the ones that are working are using proprietary drivers or having input related crashes21:39
Sarvattdarn only core dump i can find is x86_64 and i use 32 bit on everything but one machine that i dont have access to at the moment21:45
=== BUGabundo is now known as BUGabundo_Chuck
Sarvatthttps://bugs.edge.launchpad.net/ubuntu/+source/fglrx-installer/+bug/563759 -- floating point exception getting reported as a SIGSEGV?22:08
ubottuError: Could not parse data returned by Ubuntu: list index out of range (https://launchpad.net/bugs/563759)22:08
Sarvattyeah looking through the bugs it really was limited to proprietary drivers/input crashes even in karmic :(22:22
jcristauobviously that's because the free video drivers aren't buggy22:22
=== BUGabundo_Chuck is now known as BUGabundo_DrHous
Sarvattseems like it would be cleaner and work in more situations if apport just parsed the reason it died whenever it dies with a SIGABRT, but i have no idea how you'd get a core dump that way without starting with -core22:59
lapionhas anyone with that uses i915 kms with an i855 or older chipset tried the new 2.6.33.3 drm drivers?23:04
lapionwhat was the ppa for experimental 2.6 drm kernels again ?23:05
Sarvattlapion: just curious, have you ever tried using KMS and forcing the X driver to fbdev to see if it had problems?23:07
lapionYou mean like booting with the regular kernel into single user mode and then staring up failsafex ?23:08
lapionI mean booting to single usermode with kms, and then starting kms ? I get a black screen..23:09
lapion2nd kms=failsafemode23:09
lapionfailsafe mode/non kms mode gives me no dual screen..23:11
lapionthat is failsafe mode without kms23:11
lapionSarvatt, booting with kms and fbdev gives me black screen23:12
Sarvattah yeah fbdev wouldn't give you dual screen anyway23:12
Sarvattlapion: how about intel 2.8.0? have you tried that out?23:13
Sarvatti backported all of the stuff to make it work with xserver 1.7 in the x-retro PPA23:13
Sarvatthttps://edge.launchpad.net/~ubuntu-x-swat/+archive/x-retro23:14
brycehah thanks for fixing that up Sarvatt23:16
lapionI just read someting in the http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.33.323:17
Sarvattneeded 8 or 9 commits backported, EXA was dropped before 2.8.0 though so I dropped that part of the changelog that you put in23:17
lapionYou see I was getting hangcheck errors without the zserver freezing..23:18
Sarvattwhat did you read interesting there?23:19
=== BUGabundo_DrHous is now known as BUGabundo_Naruto
lapion    Commit:     bc9025bdc4e2b591734cca17697093845007b63d23:26
lapionhmm I think I misinterpreted this one.. they are talking about locks not deadlocks23:27
lapionhmm as of latest update my pentium 4 clock cannot be set anymore23:28
ilmarispeaking of locks/deadlocks... sysrq-d (show all locks that are held) isn't doing anything (just outputs the sysrq help message), even though CONFIG_LOCKDEP_SUPPORT=y23:29
* ilmari would like to be able to investigate https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/568138 further the next time it happens23:29
ubottuUbuntu bug 568138 in xserver-xorg-video-intel "[arrandale] deadlock in i915_gem_madvise_ioctl" [Undecided,Confirmed]23:29
lapionbtw when selecting resume in the Recovery Menu, doesn't start the Xserver under lucid23:29
ilmarithe gdm upstart job it's still checking /proc/cmdline and refusing to start if the machine was initally booted in single user mode23:31
ilmaris/it's/is/23:31
lapionwell yeah sudo start gdm resolved in pretty quickly23:32
lapionbtw btw ilmari alt-ssyrq-d does that freeze up the system ?23:35
ilmarilapion: I haven't tried actually hitting the keys, but echo d > /proc/sysrq-trigger just gives the help message23:36
lapionabout the freezes, if the xserver freezes once, the xserver freezes up faster in successive reboots23:37
ilmariboth the i915 kernel thread and X are stuck in __mutex_lock_slowpath+0xe7/0x170 23:37
lapionare you talking about show blockes tasks (W) ?23:41
lapionI believe it's activated with W23:41
ilmarino, that works23:41
lapionilmari, 23:41
ilmariwhich is just what the softlockup watchdog already has showed23:41
ilmari'd'     - Shows all locks that are held.23:41
ilmari(from /usr/share/doc/linux-doc/sysrq.txt.gz)23:41
lapionoutdated info23:43
Sarvattilmari: pretty sure its because CONFIG_LOCK_STAT isn't set23:47
ilmariah23:49

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!