You are not logged in.

#1 2012-06-16 04:41:39

japtar10101
Member
Registered: 2009-08-08
Posts: 57

Every application hangs.

I don't know where to start looking to solve this problem...

Every application I open -- Chromium, Lxterminal, Pidgin, Lxpanel etc. -- hangs for a minute before coming back an becoming operational.  This will happen on opening a new window, tab, opening options, etc.  I've seen this on LXDE + Compiz, Openbox, and KDE.  I've attempted to change the ATi graphics card from Catalyst to Radeon open-source, updated Xorg, reinstall Compiz, etc, and still have this problem.

It's rather annoying.  Any ideas?  Let me know which log files I should open for more details.

Offline

#2 2012-06-16 05:08:10

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,682

Re: Every application hangs.

Check your path to make sure there is not a disconnected network directory specified.

Run dmesg and check that there are no IO error messages when starting a program.

Offline

#3 2012-06-16 05:29:14

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Every application hangs.

run memtest86+ to check your ram. Also, check the power supply.

Offline

#4 2012-06-16 22:36:07

japtar10101
Member
Registered: 2009-08-08
Posts: 57

Re: Every application hangs.

skunktrader wrote:

Check your path to make sure there is not a disconnected network directory specified.

Run dmesg and check that there are no IO error messages when starting a program.

Here's my dmesg output: https://gist.github.com/2942544
Doesn't look like there's an IO error...

I'm working on running a memtest86+ next.

Offline

#5 2012-06-16 23:19:43

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Every application hangs.

A minute is a very long time! Do other operating systems act this way?


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-06-17 01:02:10

japtar10101
Member
Registered: 2009-08-08
Posts: 57

Re: Every application hangs.

DSpider wrote:

A minute is a very long time! Do other operating systems act this way?

A minute is technically an approximation, but yeah, Windows 7 works just fine, without the same problem.  The Arch OS wasn't like this earlier, so it's pretty obvious to me this problem occurred due to an update.  Which application causes this?  I have no idea.

Last edited by japtar10101 (2012-06-17 01:02:34)

Offline

#7 2012-06-17 07:57:29

Durden
Member
Registered: 2011-06-19
Posts: 261

Re: Every application hangs.

Sounds like file system errors. Run fsck or if you're using btrfs run the defrag tool.

Offline

#8 2012-06-17 14:36:08

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Every application hangs.

A couple things to check:
- are your system clock and timezone right?
- is your hostname right, and is /etc/hosts sane?
- is your locale correct ("locale" command) and is that locale built on your system ("locale -a" command)?
- did you change file permissions or ownerships somewhere you shouldn't have, and apps are frustrated trying to access something they can't? (strace, below, should help with this one)

Failing that, I suggest using strace to see what's going on in that minute of delay. Install the strace package, and then just do "sudo strace someapp". It will produce huge amounts of output - the interesting bits will probably be right at the point of the hang, and will almost certainly have either a bunch of repeats (as something is tried over and over) or a pause in the output (as something is being waited on).

You have to run it as root, so I suggest picking a test application that won't get screwed up when running it as not your normal user - something simple like a terminal of some kind, if that triggers the problem.

Offline

#9 2012-06-18 04:09:37

japtar10101
Member
Registered: 2009-08-08
Posts: 57

Re: Every application hangs.

I couldn't get the memtest+ working earlier, but the problem seemed relatively simple: it couldn't fine the memtest executable.  Seems like I typed in the wrong file location on grub.

Edit: tried using Ubuntu live-CD memtest86+.  No problems there, either.

Durden wrote:

Sounds like file system errors. Run fsck or if you're using btrfs run the defrag tool.

Tried that, but seems like nothing is really wrong.  I'm using the Ubuntu live-CD to run it.

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x50cfa6ce

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          208845   272639114   136215135    7  HPFS/NTFS/exFAT
/dev/sda3       272640000   356526079    41943040    7  HPFS/NTFS/exFAT
/dev/sda4       356526080   625141759   134307840    5  Extended
/dev/sda5   *   356528128   357052415      262144   83  Linux
/dev/sda6       357054464   373831679     8388608   82  Linux swap / Solaris
/dev/sda7       373833728   520284159    73225216   83  Linux
/dev/sda8       520286208   625141759    52427776   83  Linux

ubuntu@ubuntu:~$ sudo fsck /dev/sda5
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
/dev/sda5: clean, 35/65536 files, 26697/262144 blocks

ubuntu@ubuntu:~$ sudo fsck /dev/sda7
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
/dev/sda7: clean, 335325/4579328 files, 7340368/18306304 blocks

ubuntu@ubuntu:~$ sudo fsck /dev/sda8
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
/dev/sda8: clean, 136885/3276800 files, 2902803/13106944 blocks
ataraxia wrote:

A couple things to check:
- are your system clock and timezone right?
- is your hostname right, and is /etc/hosts sane?
- is your locale correct ("locale" command) and is that locale built on your system ("locale -a" command)?
- did you change file permissions or ownerships somewhere you shouldn't have, and apps are frustrated trying to access something they can't? (strace, below, should help with this one)

Failing that, I suggest using strace to see what's going on in that minute of delay. Install the strace package, and then just do "sudo strace someapp". It will produce huge amounts of output - the interesting bits will probably be right at the point of the hang, and will almost certainly have either a bunch of repeats (as something is tried over and over) or a pause in the output (as something is being waited on).

You have to run it as root, so I suggest picking a test application that won't get screwed up when running it as not your normal user - something simple like a terminal of some kind, if that triggers the problem.

I'll try all of these tonight.

Last edited by japtar10101 (2012-06-18 12:49:26)

Offline

Board footer

Powered by FluxBB