Kodi Community Forum

Full Version: [Live] Serious freezing problem - NVidia drivers -related?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I´m having serious problems with Dharma Live 10.0 “Dharma” and Shuttle XS35GT (ion2).

Problem is that system freezes if I surf around XBMC´s menus, listen to music or watch a HD-video. And this happens always, so XBMC is pretty much unusable because of this.

When watching SD-video system works just fine, but after coming back to menu, it freezes quite instantly. I´ve tested with different ram-modules and different HDD´s with no difference at all. A little before freeze there appears some distortion and flickering in the display. When system freezes this goes much worse. System doesn´t response to mouse or keyboard or remote. CLI trough SSH works fine.

There´s no errors in xbmc.log normally when this happens. Only when watching HD-videos. However dmesg gives always a same kind of error:


When starting music and freezing happens:
[ 42.539526] hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj. <-- this comes when hitting play
[ 76.319169] NVRM: Xid (0001:00): 13, 0003 00000000 0000502d 000002a4 00000000 00000080

when starting hd-video and freezing happens:
[ 57.712085] hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj. <-- this comes when hitting play
[ 93.893719] NVRM: Xid (0001:00): 30, Ch 00000008 M 0000001c D 00000001 intr 00100000

when "surfing" menus and freezing happens:
[ 184.718724] NVRM: Xid (0001:00): 13, 0003 00000000 00008597 00000f00 00003800 00000040

I´ve run memtest without error for long time, and Openelec works just fine on this system, so I think there shouldn´t be anything wrong with my hardware.
Well same here on ubuntu lucid 64-bit and mint 9 also 64-bit.

Nothing extraordinary in xbmc.log, however the /var/log/Xorg.0.log gives me that:

Code:
(II) XKB: generating xkmfile /var/lib/xkb/server-DF25F8757BF3BDBEE86E44C6BA4626168A6E8386.xkm
(II) XKB: reuse xkmfile /var/lib/xkb/server-DF25F8757BF3BDBEE86E44C6BA4626168A6E8386.xkm
(WW) Feb 01 21:12:26 NVIDIA(0): WAIT (2, 6, 0x8000, 0x0000a474, 0x0000bb7c)
(WW) Feb 01 21:12:33 NVIDIA(0): WAIT (1, 6, 0x8000, 0x0000a474, 0x0000bb7c)
(II) XKB: reuse xkmfile /var/lib/xkb/server-DF25F8757BF3BDBEE86E44C6BA4626168A6E8386.xkm
(WW) Feb 01 21:45:51 NVIDIA(0): WAIT (2, 6, 0x8000, 0x00009b58, 0x0000b260)
(WW) Feb 01 21:45:55 NVIDIA(0): WAIT (0, 6, 0x8000, 0x0000b260, 0x0000b260)
(II) XKB: reuse xkmfile /var/lib/xkb/server-DF25F8757BF3BDBEE86E44C6BA4626168A6E8386.xkm

I'm not quite sure if it's dharma related or x-server related. I've tested so far 3 different nvidia drivers an got always same result.

Is there any way to fix this? It makes xbmc unusable.

cheers
/aedon
What does 'cat /proc/interrupts' say?
thethirdnut Wrote:What does 'cat /proc/interrupts' say?

Code:
xbmc@XBMCLive:~$ cat /proc/interrupts
           CPU0       CPU1       CPU2       CPU3
  0:         49          0          0          0   IO-APIC-edge      timer
  1:          2          2          2          2   IO-APIC-edge      i8042
  8:          0          1          0          0   IO-APIC-edge      rtc0
  9:          3          4          4          4   IO-APIC-fasteoi   acpi
12:          5          2          2          4   IO-APIC-edge      i8042
16:       1681       1681       1695       1689   IO-APIC-fasteoi   uhci_hcd:usb5, hda_intel, nvidia
17:         49         46         43         52   IO-APIC-fasteoi   hda_intel
18:       2036       2034       2021       2047   IO-APIC-fasteoi   uhci_hcd:usb4, mmc0, jmb38x_ms:slot0
19:          0          0          0          0   IO-APIC-fasteoi   uhci_hcd:usb3, wlan0
23:          0          1          2          0   IO-APIC-fasteoi   ehci_hcd:usb1, uhci_hcd:usb2
27:        777        794        780        781   PCI-MSI-edge      ahci
28:        448        436        454        422   PCI-MSI-edge      eth0
NMI:          0          0          0          0   Non-maskable interrupts
LOC:      13167      11453       9622       9540   Local timer interrupts
SPU:          0          0          0          0   Spurious interrupts
PMI:          0          0          0          0   Performance monitoring interrupts
PND:          0          0          0          0   Performance pending work
RES:        222        166        122        270   Rescheduling interrupts
CAL:       1714       3461       3408       3298   Function call interrupts
TLB:        408        264        532        764   TLB shootdowns
TRM:          0          0          0          0   Thermal event interrupts
THR:          0          0          0          0   Threshold APIC interrupts
MCE:          0          0          0          0   Machine check exceptions
MCP:          1          1          1          1   Machine check polls
ERR:          3
MIS:          0
uname -a
Code:
Linux htpc 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 x86_64 GNU/Linux

free -m
Code:
total       used       free     shared    buffers     cached
Mem:          7499       7421         77          0        142       5734
-/+ buffers/cache:       1544       5954
Swap:        16386          0      16386


/proc/interrupts
Code:
CPU0       CPU1      
  0:         27        560   IO-APIC-edge      timer
  1:          0          4   IO-APIC-edge      i8042
  6:          0          2   IO-APIC-edge      floppy
  7:          1          0   IO-APIC-edge    
  8:          0          1   IO-APIC-edge      rtc0
  9:          0          0   IO-APIC-fasteoi   acpi
12:          0          6   IO-APIC-edge      i8042
17:    5854948    6683405   IO-APIC-fasteoi   saa7146 (0)
20:      13310      20769   IO-APIC-fasteoi   ohci_hcd:usb4, HDA Intel
21:     585171    2411396   IO-APIC-fasteoi   ohci_hcd:usb3, nvidia
22:          0          2   IO-APIC-fasteoi   ehci_hcd:usb2
23:          0          3   IO-APIC-fasteoi   ehci_hcd:usb1
26:       5191    1521630   PCI-MSI-edge      ahci
27:      53817    9862317   PCI-MSI-edge      eth0
NMI:          0          0   Non-maskable interrupts
LOC:  111708932    5672708   Local timer interrupts
SPU:          0          0   Spurious interrupts
PMI:          0          0   Performance monitoring interrupts
PND:          0          0   Performance pending work
RES:   10301788    6778214   Rescheduling interrupts
CAL:      98370     154271   Function call interrupts
TLB:      26412     151550   TLB shootdowns
TRM:          0          0   Thermal event interrupts
THR:          0          0   Threshold APIC interrupts
MCE:          0          0   Machine check exceptions
MCP:        322        322   Machine check polls
ERR:          1
MIS:          0


~/.nvidia-settings-rc
Code:
#
# Configuration file for nvidia-settings - the NVIDIA X Server Settings utility
# Generated on Tue Feb  1 16:55:08 2011
#

# ConfigProperties:

RcFileLocale = C
ToolTips = Yes
DisplayStatusBar = No
SliderTextEntries = Yes
IncludeDisplayNameInConfigFile = No
ShowQuitDialog = No
Timer = PowerMizer_Monitor_(GPU_0),Yes,1000
Timer = Thermal_Monitor_(GPU_0),Yes,1000

# Attributes:

0/CursorShadow=0
0/CursorShadowAlpha=64
0/CursorShadowRed=0
0/CursorShadowGreen=0
0/CursorShadowBlue=0
0/CursorShadowXOffset=4
0/CursorShadowYOffset=2
0/SyncToVBlank=0
0/LogAniso=0
0/FSAA=0
0/TextureSharpen=0
0/AllowFlipping=1
0/FSAAAppControlled=1
0/LogAnisoAppControlled=1
0/OpenGLImageSettings=1
0/FSAAAppEnhanced=0
0/RedBrightness=0.000000
0/GreenBrightness=0.000000
0/BlueBrightness=0.000000
0/RedContrast=0.000000
0/GreenContrast=0.000000
0/BlueContrast=0.000000
0/RedGamma=1.000000
0/GreenGamma=1.000000
0/BlueGamma=1.000000
0/DigitalVibrance[DFP-0]=0
0/ImageSharpening[DFP-0]=127
0/GPUScaling[DFP-0]=131075
0/OverscanCompensation[DFP-0]=97
0/XVideoTextureBrightness=0
0/XVideoTextureContrast=0
0/XVideoTextureHue=0
0/XVideoTextureSaturation=0
0/XVideoTextureSyncToVBlank=1
0/XVideoSyncToDisplay=65536

/etc/X11/xorg.conf
Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@yellow)  Fri Apr  9 11:51:21 UTC 2010

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Toshiba"
    ModelName      "TSB TOSHIBA-TV"
    HorizSync       15.0 - 46.0
    VertRefresh     49.0 - 61.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8200"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "1360x768_60 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Hi,

dont know which nvidia driver version dharma-live uses, but i know about issues with early drivers from version 260 and systems with 1GB RAM. thats why openelec has downgraded this time to version 256. this issue should be fixed with with 260.19.21 and later (http://www.nvidia.com/object/linux-displ...river.html "Fixed a bug in VDPAU that caused it to attempt allocation of huge blocks of system memory. This regression was introduced in the 260.* driver series.")
Well dunno about Dharma Live. I'm using this one: https://launchpad.net/~lars-opdenkamp/+a...lter=lucid on Linux Mint LTS.
I'm still using the 195.36.24 driver from the official Ubuntu restricted. The 260.xx.xx driver, however, had the same problem. Nevertheless I've just spotted the 270.18.xx in yaVDR repository. Let me test it.
dpkg -l |grep xorg

Code:
ii  python-xkit                           0.4.2.2                                         library for the manipulation of the xorg.con
ii  xorg                                  1:7.5+5ubuntu1                                  X.Org X Window System
ii  xorg-docs-core                        1:1.5-1                                         Core documentation for the X.org X Window Sy
ii  xserver-xorg                          1:7.5+5ubuntu1                                  the X.Org X server
ii  xserver-xorg-core                     2:1.7.6-2ubuntu7                                Xorg X server - core server
ii  xserver-xorg-input-all                1:7.5+5ubuntu1                                  the X.Org X server -- input driver metapacka
ii  xserver-xorg-input-evdev              1:2.3.2-5ubuntu1                                X.Org X server -- evdev input driver
ii  xserver-xorg-input-mouse              1:1.5.0-1                                       X.Org X server -- mouse input driver
ii  xserver-xorg-input-synaptics          1.2.2-1ubuntu4                                  Synaptics TouchPad driver for X.Org server
ii  xserver-xorg-input-vmmouse            1:12.6.5-4ubuntu2                               X.Org X server -- VMMouse input driver to us
ii  xserver-xorg-input-wacom              1:0.10.5-0ubuntu4                               X.Org X server -- Wacom input driver
ii  xserver-xorg-video-all                1:7.5+5ubuntu1                                  the X.Org X server -- output driver metapack
ii  xserver-xorg-video-apm                1:1.2.2-1                                       X.Org X server -- APM display driver
ii  xserver-xorg-video-ark                1:0.7.2-1                                       X.Org X server -- ark display driver
ii  xserver-xorg-video-ati                1:6.13.0-1ubuntu5                               X.Org X server -- AMD/ATI display driver wra
ii  xserver-xorg-video-chips              1:1.2.2-1                                       X.Org X server -- Chips display driver
ii  xserver-xorg-video-cirrus             1:1.3.2-1ubuntu1                                X.Org X server -- Cirrus display driver
ii  xserver-xorg-video-fbdev              1:0.4.1-1ubuntu1                                X.Org X server -- fbdev display driver
ii  xserver-xorg-video-i128               1:1.3.3-1                                       X.Org X server -- i128 display driver
ii  xserver-xorg-video-intel              2:2.9.1-3ubuntu5                                X.Org X server -- Intel i8xx, i9xx display d
ii  xserver-xorg-video-mach64             6.8.2-2                                         X.Org X server -- ATI Mach64 display driver
ii  xserver-xorg-video-mga                1:1.4.11.dfsg-2ubuntu1                          X.Org X server -- MGA display driver
ii  xserver-xorg-video-neomagic           1:1.2.4-2                                       X.Org X server -- Neomagic display driver
ii  xserver-xorg-video-nouveau            1:0.0.15+git20100219+9b4118d-0ubuntu5           X.Org X server -- Nouveau display driver (ex
ii  xserver-xorg-video-nv                 1:2.1.15-1ubuntu3                               X.Org X server -- NV display driver
ii  xserver-xorg-video-openchrome         1:0.2.904+svn827-1                              X.Org X server -- VIA display driver
ii  xserver-xorg-video-r128               6.8.1-2ubuntu1                                  X.Org X server -- ATI r128 display driver
ii  xserver-xorg-video-radeon             1:6.13.0-1ubuntu5                               X.Org X server -- AMD/ATI Radeon display dri
ii  xserver-xorg-video-rendition          1:4.2.3-1                                       X.Org X server -- Rendition display driver
ii  xserver-xorg-video-s3                 1:0.6.3-1                                       X.Org X server -- legacy S3 display driver
ii  xserver-xorg-video-s3virge            1:1.10.4-1                                      X.Org X server -- S3 ViRGE display driver
ii  xserver-xorg-video-savage             1:2.3.1-1ubuntu1                                X.Org X server -- Savage display driver
ii  xserver-xorg-video-siliconmotion      1:1.7.3-1                                       X.Org X server -- SiliconMotion display driv
ii  xserver-xorg-video-sis                1:0.10.2-2                                      X.Org X server -- SiS display driver
ii  xserver-xorg-video-sisusb             1:0.9.3-1                                       X.Org X server -- SiS USB display driver
ii  xserver-xorg-video-tdfx               1:1.4.3-1                                       X.Org X server -- tdfx display driver
ii  xserver-xorg-video-trident            1:1.3.3-1                                       X.Org X server -- Trident display driver
ii  xserver-xorg-video-tseng              1:1.2.3-1                                       X.Org X server -- Tseng display driver
ii  xserver-xorg-video-v4l                1:0.2.0-4                                       X.Org X server -- Video 4 Linux display driv
ii  xserver-xorg-video-vesa               1:2.3.0-1ubuntu1                                X.Org X server -- VESA display driver
ii  xserver-xorg-video-vmware             1:10.16.9-1                                     X.Org X server -- VMware display driver
ii  xserver-xorg-video-voodoo             1:1.2.3-1                                       X.Org X server -- Voodoo display driver

So after installing 270.18 nvidia driver i get following:

/var/log/Xorg.0.log
Code:
(II) XKB: reuse xkmfile /var/lib/xkb/server-9444312A1B7871FCD45C1129E5151AB3EAFC6D4F.xkm
(WW) Feb 03 00:10:12 NVIDIA(0): WAIT (2, 6, 0x8000, 0x0000ea14, 0x00000570)
(WW) Feb 03 00:10:17 NVIDIA(0): WAIT (0, 6, 0x8000, 0x00000570, 0x00000570)

~/.xbmc/temp/xbmc.log
Code:
00:10:14 T:140218029192960 M:6624772096   DEBUG: CDVDPlayerAudio:: Discontinuity - was:4651645736.190201, should be:4651974540.310912, error:328804.120711
00:10:15 T:140218029192960 M:6624772096 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
00:10:21 T:140218037585664 M:6678482944   ERROR: VDPAU Device Preempted - attempting recovery
00:10:21 T:140218037585664 M:6678482944   ERROR:  (VDPAU) Error: The display was pre-empted, or a fatal error occurred.(2) at VDPAU.cpp:1122
00:10:21 T:140218037585664 M:6678482944  NOTICE: Attempting recovery
00:10:21 T:140218037585664 M:6678482944  NOTICE:  (VDPAU) FiniVDPAUOutput
00:10:22 T:140218037585664 M:6678450176  NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
00:10:22 T:140218037585664 M:6678450176   DEBUG: CDVDPlayerVideo - video decoder was flushed

Then XBMC is gone and takes X-Servver with it. The only thing I can do is to reboot the system via ssh.

Any ideas?
Cheers
/aedon
Do you have adjust refreshrate turned on? There's a problem with that on 64 bit nvidia systems.
Indeed, I did, however it was not the problem. I found out that strange behavior was caused by a mismatched BIOS of my Asus M3N78-VM (nvidia 8200 on-board). I even had some issues on erasing blocks while re-flashing the BIOS. XBMC is rock stable since yesterday. Thank you all for your input!

Cheers
/aedon
No vertical blank sync on.

Just tested with 2GB RAM, still freezing.
I´ve tested hardware now with Win7 and XBMC. There´s no freezing, only some pixelation on videos on start and after pausing.

Can it still be a hardware-issue, or is there something wrong with XBMC Live tha causes my system to freeze?

I´m getting very tired with this problem. Easy way would be to send the machine to Shuttle for check up, but I have to pay for shipping if there´s nothing wrong with hardware. Sad