340.46-4 memory leak

Hello,

I’m running Arch Linux on a MacBook Pro (4,1; Early 2008). The newest 340 drivers contain a memory leak that causes X to hang requiring a restart of Xorg/greeter.

I’m running Enlightenment as a window manager, with compiz disabled and opengl used as the rendering engine. This was working previously on nvidia-334, -337, and early versions of 340 (.24 and .32 does not seem to exhibit this issue).

Here are the current package versions:

$pacman -Q | egrep "xorg-server|enlightenment|nvidia-340|vlc|linux"
archlinux-keyring 20140908-1
enlightenment 0.19.0-1
lib32-util-linux 2.25.2-1
libutil-linux 2.25.2-1
linux 3.17.1-1
linux-api-headers 3.16.2-1
linux-firmware 20141009.0e5f637-1
linux-headers 3.17.1-1
linuxtv-dvb-apps 1504-1
nvidia-340xx 340.46-4
nvidia-340xx-libgl 340.46-3
nvidia-340xx-utils 340.46-3
util-linux 2.25.2-1
vlc 2.1.5-4
xorg-server 1.16.1-1
xorg-server-common 1.16.1-1
xorg-server-xvfb 1.16.1-1

nvidia-settings reports that 98% (254MB) of the dedicated video memory is used (256MB) while running only simple 2D applications (chrome, xterm, nvidia-settings) only the built-in display (LVDS, 1440x900). Trying to play video with VLC results in the driver crashing as it cannot allocate the required VRAM.

Xorg.0.log:

[ 46478.670] 
X.Org X Server 1.16.1
Release Date: 2014-09-21
[ 46478.670] X Protocol Version 11, Revision 0
[ 46478.670] Build Operating System: Linux 3.16.1-1-ARCH x86_64 
[ 46478.671] Current Operating System: Linux ulm 3.17.1-1-ARCH #1 SMP PREEMPT Wed Oct 15 15:04:35 CEST 2014 x86_64
[ 46478.671] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/mapper/mbp-arch rw nomodeset nointremap pciehp.pciehp_force=1 i8042.nopnp=1
[ 46478.671] Build Date: 21 September 2014  10:53:13AM
[ 46478.671]  
[ 46478.671] Current version of pixman: 0.32.6
[ 46478.672] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[ 46478.672] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 46478.673] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Oct 31 17:40:46 2014
[ 46478.686] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 46478.686] (==) No Layout section.  Using the first Screen section.
[ 46478.686] (==) No screen section available. Using defaults.
[ 46478.686] (**) |-->Screen "Default Screen Section" (0)
[ 46478.686] (**) |   |-->Monitor "<default monitor>"
[ 46478.687] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[ 46478.687] (==) Automatically adding devices
[ 46478.687] (==) Automatically enabling devices
[ 46478.687] (==) Automatically adding GPU devices
[ 46478.687] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 46478.687] 	Entry deleted from font path.
[ 46478.687] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 46478.687] 	Entry deleted from font path.
[ 46478.687] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 46478.687] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 46478.687] 	Entry deleted from font path.
[ 46478.687] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 46478.687] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/Type1/
[ 46478.687] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 46478.687] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 46478.687] (II) Loader magic: 0x818d80
[ 46478.687] (II) Module ABI versions:
[ 46478.687] 	X.Org ANSI C Emulation: 0.4
[ 46478.687] 	X.Org Video Driver: 18.0
[ 46478.687] 	X.Org XInput driver : 21.0
[ 46478.687] 	X.Org Server Extension : 8.0
[ 46478.688] (EE) systemd-logind: failed to get session: PID 26984 does not belong to any known session
[ 46478.689] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 46478.691] (--) PCI:*(0:1:0:0) 10de:0407:106b:00a3 rev 161, Mem @ 0xd2000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00007000/128, BIOS @ 0x????????/131072
[ 46478.691] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 46478.691] (II) LoadModule: "glx"
[ 46478.692] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 46478.711] (II) Module glx: vendor="NVIDIA Corporation"
[ 46478.711] 	compiled for 4.0.2, module version = 1.0.0
[ 46478.711] 	Module class: X.Org Server Extension
[ 46478.711] (II) NVIDIA GLX Module  340.46  Wed Sep 24 13:54:14 PDT 2014
[ 46478.711] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[ 46478.711] 	loading driver: nvidia
[ 46478.711] (==) Matched nvidia as autoconfigured driver 0
[ 46478.711] (==) Matched nouveau as autoconfigured driver 1
[ 46478.711] (==) Matched nvidia as autoconfigured driver 2
[ 46478.711] (==) Matched nv as autoconfigured driver 3
[ 46478.711] (==) Matched nouveau as autoconfigured driver 4
[ 46478.711] (==) Matched nvidia as autoconfigured driver 5
[ 46478.711] (==) Matched nv as autoconfigured driver 6
[ 46478.711] (==) Matched modesetting as autoconfigured driver 7
[ 46478.711] (==) Matched fbdev as autoconfigured driver 8
[ 46478.711] (==) Matched vesa as autoconfigured driver 9
[ 46478.711] (==) Assigned the driver to the xf86ConfigLayout
[ 46478.711] (II) LoadModule: "nvidia"
[ 46478.711] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 46478.712] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 46478.712] 	compiled for 4.0.2, module version = 1.0.0
[ 46478.712] 	Module class: X.Org Video Driver
[ 46478.712] (II) LoadModule: "nouveau"
[ 46478.712] (WW) Warning, couldn't open module nouveau
[ 46478.712] (II) UnloadModule: "nouveau"
[ 46478.712] (II) Unloading nouveau
[ 46478.712] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 46478.712] (II) LoadModule: "nv"
[ 46478.712] (WW) Warning, couldn't open module nv
[ 46478.712] (II) UnloadModule: "nv"
[ 46478.712] (II) Unloading nv
[ 46478.713] (EE) Failed to load module "nv" (module does not exist, 0)
[ 46478.713] (II) LoadModule: "modesetting"
[ 46478.713] (WW) Warning, couldn't open module modesetting
[ 46478.713] (II) UnloadModule: "modesetting"
[ 46478.713] (II) Unloading modesetting
[ 46478.713] (EE) Failed to load module "modesetting" (module does not exist, 0)
[ 46478.713] (II) LoadModule: "fbdev"
[ 46478.713] (WW) Warning, couldn't open module fbdev
[ 46478.713] (II) UnloadModule: "fbdev"
[ 46478.713] (II) Unloading fbdev
[ 46478.713] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 46478.713] (II) LoadModule: "vesa"
[ 46478.713] (WW) Warning, couldn't open module vesa
[ 46478.713] (II) UnloadModule: "vesa"
[ 46478.713] (II) Unloading vesa
[ 46478.713] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 46478.713] (II) NVIDIA dlloader X Driver  340.46  Wed Sep 24 13:34:03 PDT 2014
[ 46478.713] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 46478.713] (++) using VT number 7

[ 46478.720] (II) Loading sub module "fb"
[ 46478.720] (II) LoadModule: "fb"
[ 46478.720] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 46478.732] (II) Module fb: vendor="X.Org Foundation"
[ 46478.732] 	compiled for 1.16.1, module version = 1.0.0
[ 46478.732] 	ABI class: X.Org ANSI C Emulation, version 0.4
[ 46478.732] (WW) Unresolved symbol: fbGetGCPrivateKey
[ 46478.732] (II) Loading sub module "wfb"
[ 46478.732] (II) LoadModule: "wfb"
[ 46478.732] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 46478.732] (II) Module wfb: vendor="X.Org Foundation"
[ 46478.732] 	compiled for 1.16.1, module version = 1.0.0
[ 46478.732] 	ABI class: X.Org ANSI C Emulation, version 0.4
[ 46478.732] (II) Loading sub module "ramdac"
[ 46478.732] (II) LoadModule: "ramdac"
[ 46478.732] (II) Module "ramdac" already built-in
[ 46478.733] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[ 46478.733] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 46478.733] (==) NVIDIA(0): RGB weight 888
[ 46478.733] (==) NVIDIA(0): Default visual is TrueColor
[ 46478.733] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 46478.733] (**) NVIDIA(0): Enabling 2D acceleration
[ 46478.778] (II) NVIDIA(0): Display (Apple Color LCD (DFP-0)) does not support NVIDIA 3D
[ 46478.778] (II) NVIDIA(0):     Vision stereo.
[ 46478.778] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
[ 46478.781] (II) NVIDIA(0): NVIDIA GPU GeForce 8600M GT (G84) at PCI:1:0:0 (GPU-0)
[ 46478.781] (--) NVIDIA(0): Memory: 262144 kBytes
[ 46478.781] (--) NVIDIA(0): VideoBIOS: 60.84.49.03.00
[ 46478.781] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 46478.787] (--) NVIDIA(0): Valid display device(s) on GeForce 8600M GT at PCI:1:0:0
[ 46478.787] (--) NVIDIA(0):     CRT-0
[ 46478.787] (--) NVIDIA(0):     TV-0
[ 46478.787] (--) NVIDIA(0):     Apple Color LCD (DFP-0) (boot, connected)
[ 46478.787] (--) NVIDIA(0):     DFP-1
[ 46478.787] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
[ 46478.787] (--) NVIDIA(GPU-0): TV-0: 400.0 MHz maximum pixel clock
[ 46478.787] (--) NVIDIA(0): Apple Color LCD (DFP-0): Internal LVDS
[ 46478.787] (--) NVIDIA(GPU-0): Apple Color LCD (DFP-0): 330.0 MHz maximum pixel clock
[ 46478.787] (--) NVIDIA(0): DFP-1: Internal TMDS
[ 46478.787] (--) NVIDIA(GPU-0): DFP-1: 330.0 MHz maximum pixel clock
[ 46478.787] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 46478.787] (**) NVIDIA(0):     device Apple Color LCD (DFP-0) (Using EDID frequencies has
[ 46478.787] (**) NVIDIA(0):     been enabled on all display devices.)
[ 46478.787] (==) NVIDIA(0): 
[ 46478.787] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[ 46478.787] (==) NVIDIA(0):     will be used as the requested mode.
[ 46478.787] (==) NVIDIA(0): 
[ 46478.787] (II) NVIDIA(0): Validated MetaModes:
[ 46478.787] (II) NVIDIA(0):     "DFP-0:nvidia-auto-select"
[ 46478.787] (II) NVIDIA(0): Virtual screen size determined to be 1440 x 900
[ 46479.803] (--) NVIDIA(0): DPI set to (107, 103); computed from "UseEdidDpi" X config
[ 46479.803] (--) NVIDIA(0):     option
[ 46479.803] (--) Depth 24 pixmap format is 32 bpp
[ 46479.803] (II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
[ 46479.810] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[ 46479.810] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[ 46479.810] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[ 46479.810] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[ 46479.810] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[ 46479.810] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[ 46479.810] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[ 46479.810] (II) NVIDIA(0):     Config Options in the README.
[ 46479.815] (II) NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select"
[ 46480.199] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 46480.199] (==) NVIDIA(0): Backing store enabled
[ 46480.199] (==) NVIDIA(0): Silken mouse enabled
[ 46480.200] (==) NVIDIA(0): DPMS enabled
[ 46480.200] (II) Loading sub module "dri2"
[ 46480.200] (II) LoadModule: "dri2"
[ 46480.200] (II) Module "dri2" already built-in
[ 46480.200] (II) NVIDIA(0): [DRI2] Setup complete
[ 46480.200] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[ 46480.200] (--) RandR disabled
[ 46480.206] (II) Initializing extension GLX
[ 46480.306] (II) config/udev: Adding input device Power Button (/dev/input/event6)
[ 46480.306] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 46480.306] (II) LoadModule: "evdev"
[ 46480.306] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 46480.307] (II) Module evdev: vendor="X.Org Foundation"
[ 46480.307] 	compiled for 1.16.0, module version = 2.9.0
[ 46480.307] 	Module class: X.Org XInput Driver
[ 46480.307] 	ABI class: X.Org XInput driver, version 21.0
[ 46480.307] (II) Using input driver 'evdev' for 'Power Button'
[ 46480.307] (**) Power Button: always reports core events
[ 46480.307] (**) evdev: Power Button: Device: "/dev/input/event6"
[ 46480.307] (--) evdev: Power Button: Vendor 0 Product 0x1
[ 46480.307] (--) evdev: Power Button: Found keys
[ 46480.307] (II) evdev: Power Button: Configuring as keyboard
[ 46480.307] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input6/event6"
[ 46480.307] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[ 46480.307] (**) Option "xkb_rules" "evdev"
[ 46480.307] (**) Option "xkb_model" "pc104"
[ 46480.307] (**) Option "xkb_layout" "us"
[ 46480.332] (II) config/udev: Adding input device Video Bus (/dev/input/event7)
[ 46480.333] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[ 46480.333] (II) Using input driver 'evdev' for 'Video Bus'
[ 46480.333] (**) Video Bus: always reports core events
[ 46480.333] (**) evdev: Video Bus: Device: "/dev/input/event7"
[ 46480.333] (--) evdev: Video Bus: Vendor 0 Product 0x6
[ 46480.333] (--) evdev: Video Bus: Found keys
[ 46480.333] (II) evdev: Video Bus: Configuring as keyboard
[ 46480.333] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:01/LNXVIDEO:00/input/input7/event7"
[ 46480.333] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[ 46480.333] (**) Option "xkb_rules" "evdev"
[ 46480.333] (**) Option "xkb_model" "pc104"
[ 46480.333] (**) Option "xkb_layout" "us"
[ 46480.333] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[ 46480.333] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 46480.333] (II) Using input driver 'evdev' for 'Power Button'
[ 46480.333] (**) Power Button: always reports core events
[ 46480.333] (**) evdev: Power Button: Device: "/dev/input/event4"
[ 46480.333] (--) evdev: Power Button: Vendor 0 Product 0x1
[ 46480.333] (--) evdev: Power Button: Found keys
[ 46480.333] (II) evdev: Power Button: Configuring as keyboard
[ 46480.333] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input4/event4"
[ 46480.333] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[ 46480.333] (**) Option "xkb_rules" "evdev"
[ 46480.333] (**) Option "xkb_model" "pc104"
[ 46480.333] (**) Option "xkb_layout" "us"
[ 46480.334] (II) config/udev: Adding input device Lid Switch (/dev/input/event3)
[ 46480.334] (II) No input driver specified, ignoring this device.
[ 46480.334] (II) This device may have been added with another device file.
[ 46480.334] (II) config/udev: Adding input device Sleep Button (/dev/input/event5)
[ 46480.334] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[ 46480.334] (II) Using input driver 'evdev' for 'Sleep Button'
[ 46480.334] (**) Sleep Button: always reports core events
[ 46480.334] (**) evdev: Sleep Button: Device: "/dev/input/event5"
[ 46480.334] (--) evdev: Sleep Button: Vendor 0 Product 0x3
[ 46480.334] (--) evdev: Sleep Button: Found keys
[ 46480.334] (II) evdev: Sleep Button: Configuring as keyboard
[ 46480.334] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input5/event5"
[ 46480.334] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
[ 46480.334] (**) Option "xkb_rules" "evdev"
[ 46480.334] (**) Option "xkb_model" "pc104"
[ 46480.334] (**) Option "xkb_layout" "us"
[ 46480.335] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event9)
[ 46480.335] (II) No input driver specified, ignoring this device.
[ 46480.335] (II) This device may have been added with another device file.
[ 46480.335] (II) config/udev: Adding input device HDA Intel Line (/dev/input/event10)
[ 46480.335] (II) No input driver specified, ignoring this device.
[ 46480.335] (II) This device may have been added with another device file.
[ 46480.335] (II) config/udev: Adding input device HDA Intel Headphone (/dev/input/event11)
[ 46480.335] (II) No input driver specified, ignoring this device.
[ 46480.335] (II) This device may have been added with another device file.
[ 46480.336] (II) config/udev: Adding input device Apple Computer, Inc. IR Receiver (/dev/input/event1)
[ 46480.336] (**) Apple Computer, Inc. IR Receiver: Applying InputClass "evdev keyboard catchall"
[ 46480.336] (II) Using input driver 'evdev' for 'Apple Computer, Inc. IR Receiver'
[ 46480.336] (**) Apple Computer, Inc. IR Receiver: always reports core events
[ 46480.336] (**) evdev: Apple Computer, Inc. IR Receiver: Device: "/dev/input/event1"
[ 46480.336] (--) evdev: Apple Computer, Inc. IR Receiver: Vendor 0x5ac Product 0x8242
[ 46480.336] (--) evdev: Apple Computer, Inc. IR Receiver: Found keys
[ 46480.336] (II) evdev: Apple Computer, Inc. IR Receiver: Configuring as keyboard
[ 46480.336] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.2/usb5/5-1/5-1:1.0/0003:05AC:8242.0001/input/input1/event1"
[ 46480.336] (II) XINPUT: Adding extended input device "Apple Computer, Inc. IR Receiver" (type: KEYBOARD, id 10)
[ 46480.336] (**) Option "xkb_rules" "evdev"
[ 46480.336] (**) Option "xkb_model" "pc104"
[ 46480.336] (**) Option "xkb_layout" "us"
[ 46480.336] (II) config/udev: Adding input device Apple, Inc. Apple Internal Keyboard / Trackpad (/dev/input/event2)
[ 46480.336] (**) Apple, Inc. Apple Internal Keyboard / Trackpad: Applying InputClass "evdev keyboard catchall"
[ 46480.336] (II) Using input driver 'evdev' for 'Apple, Inc. Apple Internal Keyboard / Trackpad'
[ 46480.336] (**) Apple, Inc. Apple Internal Keyboard / Trackpad: always reports core events
[ 46480.336] (**) evdev: Apple, Inc. Apple Internal Keyboard / Trackpad: Device: "/dev/input/event2"
[ 46480.337] (--) evdev: Apple, Inc. Apple Internal Keyboard / Trackpad: Vendor 0x5ac Product 0x230
[ 46480.337] (--) evdev: Apple, Inc. Apple Internal Keyboard / Trackpad: Found keys
[ 46480.337] (II) evdev: Apple, Inc. Apple Internal Keyboard / Trackpad: Configuring as keyboard
[ 46480.337] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.2/usb5/5-2/5-2:1.0/0003:05AC:0230.0002/input/input2/event2"
[ 46480.337] (II) XINPUT: Adding extended input device "Apple, Inc. Apple Internal Keyboard / Trackpad" (type: KEYBOARD, id 11)
[ 46480.337] (**) Option "xkb_rules" "evdev"
[ 46480.337] (**) Option "xkb_model" "pc104"
[ 46480.337] (**) Option "xkb_layout" "us"
[ 46480.337] (II) config/udev: Adding input device bcm5974 (/dev/input/event12)
[ 46480.337] (**) bcm5974: Applying InputClass "evdev touchpad catchall"
[ 46480.337] (**) bcm5974: Applying InputClass "touchpad catchall"
[ 46480.337] (**) bcm5974: Applying InputClass "Default clickpad buttons"
[ 46480.337] (**) bcm5974: Applying InputClass "Disable clickpad buttons on Apple touchpads"
[ 46480.337] (II) LoadModule: "synaptics"
[ 46480.337] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
[ 46480.337] (II) Module synaptics: vendor="X.Org Foundation"
[ 46480.337] 	compiled for 1.16.0, module version = 1.8.1
[ 46480.338] 	Module class: X.Org XInput Driver
[ 46480.338] 	ABI class: X.Org XInput driver, version 21.0
[ 46480.338] (II) Using input driver 'synaptics' for 'bcm5974'
[ 46480.338] (**) bcm5974: always reports core events
[ 46480.338] (**) Option "Device" "/dev/input/event12"
[ 46480.428] (--) synaptics: bcm5974: x-axis range -4824 - 4824 (res 0)
[ 46480.428] (--) synaptics: bcm5974: y-axis range -172 - 4290 (res 0)
[ 46480.428] (--) synaptics: bcm5974: pressure range 0 - 256
[ 46480.428] (--) synaptics: bcm5974: finger width range 0 - 16
[ 46480.428] (--) synaptics: bcm5974: buttons: left double triple
[ 46480.428] (--) synaptics: bcm5974: Vendor 0x5ac Product 0x230
[ 46480.428] (**) Option "TapButton1" "1"
[ 46480.428] (**) Option "TapButton2" "2"
[ 46480.428] (**) Option "TapButton3" "3"
[ 46480.428] (--) synaptics: bcm5974: touchpad found
[ 46480.428] (**) bcm5974: always reports core events
[ 46480.475] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.2/usb5/5-2/5-2:1.2/input/input21/event12"
[ 46480.475] (II) XINPUT: Adding extended input device "bcm5974" (type: TOUCHPAD, id 12)
[ 46480.475] (**) synaptics: bcm5974: (accel) MinSpeed is now constant deceleration 2.5
[ 46480.475] (**) synaptics: bcm5974: (accel) MaxSpeed is now 1.75
[ 46480.475] (**) synaptics: bcm5974: (accel) AccelFactor is now 0.019
[ 46480.475] (**) bcm5974: (accel) keeping acceleration scheme 1
[ 46480.475] (**) bcm5974: (accel) acceleration profile 1
[ 46480.475] (**) bcm5974: (accel) acceleration factor: 2.000
[ 46480.475] (**) bcm5974: (accel) acceleration threshold: 4
[ 46480.478] (--) synaptics: bcm5974: touchpad found
[ 46480.478] (II) config/udev: Adding input device bcm5974 (/dev/input/mouse0)
[ 46480.478] (**) bcm5974: Ignoring device from InputClass "touchpad ignore duplicates"
[ 46480.479] (II) config/udev: Adding input device Built-in iSight (/dev/input/event13)
[ 46480.479] (**) Built-in iSight: Applying InputClass "evdev keyboard catchall"
[ 46480.479] (II) Using input driver 'evdev' for 'Built-in iSight'
[ 46480.479] (**) Built-in iSight: always reports core events
[ 46480.479] (**) evdev: Built-in iSight: Device: "/dev/input/event13"
[ 46480.479] (--) evdev: Built-in iSight: Vendor 0x5ac Product 0x8502
[ 46480.479] (--) evdev: Built-in iSight: Found keys
[ 46480.479] (II) evdev: Built-in iSight: Configuring as keyboard
[ 46480.479] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.7/usb7/7-4/7-4:1.0/input/input13/event13"
[ 46480.479] (II) XINPUT: Adding extended input device "Built-in iSight" (type: KEYBOARD, id 13)
[ 46480.479] (**) Option "xkb_rules" "evdev"
[ 46480.479] (**) Option "xkb_model" "pc104"
[ 46480.479] (**) Option "xkb_layout" "us"
[ 46480.479] (II) config/udev: Adding input device applesmc (/dev/input/event0)
[ 46480.479] (II) No input driver specified, ignoring this device.
[ 46480.479] (II) This device may have been added with another device file.
[ 46480.480] (II) config/udev: Adding input device applesmc (/dev/input/js0)
[ 46480.480] (II) No input driver specified, ignoring this device.
[ 46480.480] (II) This device may have been added with another device file.
[ 46480.480] (II) config/udev: Adding input device PC Speaker (/dev/input/event8)
[ 46480.480] (II) No input driver specified, ignoring this device.
[ 46480.480] (II) This device may have been added with another device file.
[ 46484.680] (II) NVIDIA(GPU-0): Display (Apple Color LCD (DFP-0)) does not support NVIDIA 3D
[ 46484.680] (II) NVIDIA(GPU-0):     Vision stereo.
[ 46484.709] (II) NVIDIA(0): Setting mode "LVDS-0: nvidia-auto-select @1440x900 +0+0 {ViewPortIn=1440x900, ViewPortOut=1440x900+0+0}"
[ 46736.852] (II) NVIDIA(0): Setting mode "LVDS-0: nvidia-auto-select @1440x900 +0+0 {ViewPortIn=1440x900, ViewPortOut=1440x900+0+0}"
[ 46738.211] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[ 46738.211] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[ 46738.211] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[ 46738.211] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[ 46738.211] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[ 46738.211] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[ 46738.211] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[ 46738.211] (II) NVIDIA(0):     Config Options in the README.
[ 46738.231] (II) NVIDIA(GPU-0): Display (Apple Color LCD (DFP-0)) does not support NVIDIA 3D
[ 46738.231] (II) NVIDIA(GPU-0):     Vision stereo.
[ 46738.250] (--) synaptics: bcm5974: touchpad found
[ 49740.109] (II) NVIDIA(0): Setting mode "LVDS-0: nvidia-auto-select @1440x900 +0+0 {ViewPortIn=1440x900, ViewPortOut=1440x900+0+0}"
[ 49741.438] (EE) NVIDIA(0): Failed to allocate primary buffer: out of memory.
[ 49741.438] (EE) NVIDIA(0):  *** Aborting ***
[ 49741.439] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[ 49741.439] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[ 49741.439] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[ 49741.439] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[ 49741.439] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[ 49741.439] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[ 49741.439] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[ 49741.439] (II) NVIDIA(0):     Config Options in the README.
[ 49741.459] (II) NVIDIA(GPU-0): Display (Apple Color LCD (DFP-0)) does not support NVIDIA 3D
[ 49741.459] (II) NVIDIA(GPU-0):     Vision stereo.
[ 49741.460] (EE) 
[ 49741.460] (EE) Backtrace:
[ 49741.460] (EE) 0: /usr/bin/Xorg.bin (xorg_backtrace+0x56) [0x593a46]
[ 49741.460] (EE) 1: /usr/bin/Xorg.bin (0x400000+0x197b99) [0x597b99]
[ 49741.460] (EE) 2: /usr/lib/libc.so.6 (0x7fc9c0303000+0x339f0) [0x7fc9c03369f0]
[ 49741.460] (EE) 3: /usr/lib/xorg/modules/drivers/nvidia_drv.so (0x7fc9b9ce0000+0x84cbd) [0x7fc9b9d64cbd]
[ 49741.460] (EE) 4: /usr/lib/xorg/modules/drivers/nvidia_drv.so (0x7fc9b9ce0000+0x5937d9) [0x7fc9ba2737d9]
[ 49741.460] (EE) 5: /usr/lib/xorg/modules/drivers/nvidia_drv.so (0x7fc9b9ce0000+0x597f24) [0x7fc9ba277f24]
[ 49741.460] (EE) 6: /usr/lib/xorg/modules/drivers/nvidia_drv.so (0x7fc9b9ce0000+0x5a7b42) [0x7fc9ba287b42]
[ 49741.460] (EE) 7: /usr/lib/xorg/modules/drivers/nvidia_drv.so (0x7fc9b9ce0000+0x59f3e1) [0x7fc9ba27f3e1]
[ 49741.460] (EE) 8: /usr/bin/Xorg.bin (xf86VTEnter+0x12b) [0x4765eb]
[ 49741.460] (EE) 9: /usr/bin/Xorg.bin (WakeupHandler+0x6b) [0x43c3ab]
[ 49741.460] (EE) 10: /usr/bin/Xorg.bin (WaitForSomething+0x1c7) [0x590e77]
[ 49741.461] (EE) 11: /usr/bin/Xorg.bin (0x400000+0x374f1) [0x4374f1]
[ 49741.461] (EE) 12: /usr/bin/Xorg.bin (0x400000+0x3b866) [0x43b866]
[ 49741.461] (EE) 13: /usr/lib/libc.so.6 (__libc_start_main+0xf0) [0x7fc9c0323040]
[ 49741.461] (EE) 14: /usr/bin/Xorg.bin (0x400000+0x25d0e) [0x425d0e]
[ 49741.461] (EE) 
[ 49741.461] (EE) Segmentation fault at address 0x30
[ 49741.461] (EE) 
Fatal server error:
[ 49741.461] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 49741.461] (EE) 
[ 49741.461] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[ 49741.461] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 49741.461] (EE) 
[ 49743.147] (EE) Server terminated with error (1). Closing log file.

It would be great if NVidia could look into a possible regression in the 340 branch as this bug affects usability quite severely.

I also seem to be having this problem, with a Quadro K1100M.

The same here! It started in driver version 340.xx and is still present up to 343.22. Memory usage of my GTS 450 is mostly around 36% (from 1024 MB). If I open a simple GTK image thumbnail viewer (Geeqie) and scroll the thumbnail grid of a few (~100) pictures up and down again and again the memory usage increases massively (more thumbnails -> faster increase): At first the card’s memory usage and when it is at 100% it starts to use my system’s memory (slow). At the end the X Server crashes (OOM kill).

Closing the viewer application brings everything back to normal (both card and system memory).

Setting my KDE to Compositing/OpenGL or Fallback (w/o any effects).

(sent nvidia-bug-report.log.gz by email)

Hey all, Please first reproduce the issue and then provide nvidia-bug-report by running nvidia-bug-report.sh as root user and also share reproduction steps that will help to easily reproduce this issue for investigation.

We are internally tracking this issue under : Bug 200054148

@dustbin: The increased usage when you’re browsing photos is somewhat expected. But the driver shouldn’t exceed the memory available on the card.

The behaviour I’m seeing is that VRAM is never deallocated. From a cold boot the % VRAM used will continue to increase until 98% or 99% at which point X will crash with the error in the original post. If I restart X and open nvidia-settings no significant amount of VRAM has been deallocated, with >97% VRAM used on an empty desktop after the first crash.

@sandipt: Reproduction steps are simple: install NVidia >=340.46 and play several short video files in VLC (e.g. put several in playlist and play through). Within 10 minutes X will crash with the error in original post. Reproducible 100% of the time.

I can only provide results from 8600M GT because that’s the only NVidia-based system I have.

Exactly! And remember I’m only scrolling a few thumbnails (!) up and down so the memory usage should stay low. In 343.22 I see a slightly different behaviour where video/system memory gets deallocated as soon as I quit the corresponding application (or when the X server gets killed).

I read in the release notes that they fixed a memory leak in 343.22 (?). For me it looks like they just didn’t resolve the issue completely? Have you tried to reproduce the bug with current version of the driver?

Another strange thing: This also happens on a clean Fluxbox-Session, but only with Geeqie (GTK viewer) and not with Gwenview (KDE/QT). I’m not entirely sure if this is hitting the bug you are reporting, but I’m quite sure that it used to work before the 340 update.

@dustbin: Unfortunately I cannot run any driver newer than 340 as NVidia has stopped supporting legacy GPUs in driver releases newer than 340. This is why it is crucial (for me) that this regression is fixed.

I also experience some random freezes running 340.32, but they’re much less frequent and there is no mention of failure to allocate VRAM in Xorg logs when it hangs. Right now I would like NVidia to investigate the regression in the 340.46 release which causes serious issues under regular use.

Hi dustbln, As of now we are not able to duplicate this issue. First reproduce the issue and then please provide nvidia bug report by running nvidia-bug-report.sh script as root user. Is this issue repro with any other application or hardware or gpu? what desktop environment you are running like kde, gnome, xfce etc …?

did you try 340.58? i believe all 340.xx driver versions support the legacy cards

We will try with GeForce 8600M GT (G84) legacy card, But we will prefer to get repro on not much old cards like GTS 450… Fermi or Kepler.

Hi dustbln, any updates on requested information?

On an 8500 GT (G86) card with the 340.xx driver and running the same tests as before I’m also not seeing a memory leak. After running VLC on a loop over the four day weekend, memory usage hadn’t increased; it was still at 37 MiB.