[This question has been marked as a duplicate (relating to graphics drivers) but it is not. I have traced the problem to VMware Workstation 12 running on the system. The problem is triggered by suspending and resuming VMware Workstation.]
Since upgrading to Kubuntu 15.10 (from 14.04 LTS), some programs that display JPEG and PNG files are taking a very long time to run. For example, a 1.5 MB JPEG, which used to display instantly, now takes over 10 seconds to appear on screen. A 2 MB file takes over 20 seconds.
This is on a very fast computer (12 cores, SSD, 32 GB RAM).
Affected programs include:
- display (from Imagemagick 6.8.9-9)
- eog (GNOME Image Viewer 3.16.3)
- geeqie (version 1.2)
Unaffected programs include:
- The Gimp
- xv
- Chrome (if I type "chrome IMG_3123.JPG")
Example file:
$ ls -l IMG_3123.JPG
-rw-r--r-- 1 smith users 1562373 Sep 12 07:14 IMG_3123.JPG
When I run:
$ display IMG_3123.JPG
it takes 10 seconds to show the image. Under Kubuntu 14.04, it took less than 1 second.
Note: If I reboot, the problem goes away. Then it returns sometime later.
I am also seeing random slowness in other GUI applications like Chrome. It makes me wonder if this problem could be related to graphics drivers? Or some common library?
My graphics information is:
$ sudo lshw -class display
*-display
description: VGA compatible controller
product: GK107 [GeForce GT 640]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nouveau latency=0
resources: irq:46 memory:fa000000-faffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:fb000000-fb07ffff
So I am running the nouveau driver, but I am pretty sure I was running nouveau in Kubuntu 14.04 as well.
Update:
I tried installing the nvidia proprietary drivers and rebooting. I saw a new error on boot:
Kubuntu 15.10
. . . .
EDAC sbridge: ECC is disabled. Aborting.
EDAC sbridge: Couldn't find mci handler
When the reboot completed, I could not log in using the graphical login screen. I'd enter my password and immediately be returned to the login screen. Error in /var/log/syslog said:
Nov 23 15:35:04 myhost systemd[1]: Started Session c4 of user smith.
Nov 23 15:35:04 myhost console-kit-daemon[2945]: (process:10614): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Nov 23 15:35:04 myhost gdm[2819]: GdmDisplay: display lasted 0.044295 seconds
Nov 23 15:35:04 myhost console-kit-daemon[2945]: (process:10623): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Nov 23 15:35:04 myhost console-kit-daemon[2945]: GLib-CRITICAL: Source ID 121 was not found when attempting to remove it
Nov 23 15:35:08 myhost gnome-session[3177]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Nov 23 15:35:09 myhost gnome-session[3177]: gnome-session[3177]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
So I uninstalled the nvidia drivers and rebooted, and the system went back to normal.
I tried installing other versions of the nvidia drivers but the same problem occured, so I still have no solution.
Update 2:
OK, this is weird. The problem happened again, with JPEGs taking 20 seconds to open. I closed VMware Workstation (12.0.1), which is running a couple of Windows VMs as guests, and the problem instantly stopped. It's not memory-related, because I had 28GB RAM free even before closing VMware.
sudo lshw -class display
will give you some information about what card and driver are installed - please execute that command, and copy the output into your question above. – Charles Green Nov 23 '15 at 19:15