Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-23-10, 10:41 AM   #1
SmSpillaz
Registered User
 
Join Date: Jul 2008
Posts: 15
Default Exceptions in NVIDIA driver caused by certain application code

Hey everyone / NVIDIA corporation fellows

I've written some application code that uses OpenGL and it seems to be causing exceptions in the NVIDIA driver. It's a compiz plugin, but unfortunately, it's from the development version, meaning that if you need to try and reproduce any bugs you might have to compiz the development version of compiz yourself [0.9.0].

A guide for doing so can be found here : http://wiki.compiz.org/C%2B%2BCompiling

Once you have an install ready, the plugin can be found here: http://www.speedyshare.com/settings....1f9879ad5d83f7

Compile it using cmake in a dedicated build directory and install it to an appropriate prefix.

Here is a log of the exception messages I get from NVRM in when the plugin is initialized

Code:
NVRM: Xid (0001:00): 13, 0003 00000000 00008297 00001310 00000000 00000040
NVRM: Xid (0001:00): 13, 0003 00000000 00008297 00001310 00000000 00000040
NVRM: Xid (0001:00): 13, 0003 00000000 00008297 00001310 00000000 00000040
NVRM: Xid (0001:00): 13, 0003 00000000 00008297 00001310 00000000 00000040
NVRM: Xid (0001:00): 13, 0003 00000000 00008297 00001688 00000000 00000040
NVRM: Xid (0001:00): 13, 0003 00000000 00008297 00001688 00000000 00000040
NVRM: Xid (0001:00): 13, 0003 00000000 00008297 00001310 00000000 00000040
NVRM: Xid (0001:00): 13, 0003 00000000 00008297 00001310 00000000 00000040
I doubt that is of much use [unless they can be combined with debugging symbols internally or something].

Here is information about my particular setup (nvidia-settings -q all)

Code:
Attributes for XPS-FEDORA:1.0:

  Attribute 'OperatingSystem' (XPS-FEDORA:1.0): 0.
    The valid values for 'OperatingSystem' are in the range 0 - 2 (inclusive).
    'OperatingSystem' is a read-only attribute.
    'OperatingSystem' can use the following target types: X Screen, GPU.

  Attribute 'NvidiaDriverVersion' (XPS-FEDORA:1.0): 190.53 

  Attribute 'NvControlVersion' (XPS-FEDORA:1.0): 1.20 

  Attribute 'GLXServerVersion' (XPS-FEDORA:1.0): 1.4 

  Attribute 'GLXClientVersion' (XPS-FEDORA:1.0): 1.4 

  Attribute 'OpenGLVersion' (XPS-FEDORA:1.0): 3.2.0 NVIDIA 190.53 

  Attribute 'XRandRVersion' (XPS-FEDORA:1.0): 1.3 

  Attribute 'XF86VidModeVersion' (XPS-FEDORA:1.0): 2.2 

  Attribute 'XvVersion' (XPS-FEDORA:1.0): 2.2 

  Attribute 'TwinView' (XPS-FEDORA:1.0): 1.
    'TwinView' is a boolean attribute; valid values are: 1 (on/true) and 0
    (off/false).
    'TwinView' is a read-only attribute.
    'TwinView' can use the following target types: X Screen.

  Attribute 'ConnectedDisplays' (XPS-FEDORA:1.0): 0x00030000.
    'ConnectedDisplays' is a bitmask attribute.
    'ConnectedDisplays' is a read-only attribute.
    'ConnectedDisplays' can use the following target types: X Screen, GPU.

  Attribute 'EnabledDisplays' (XPS-FEDORA:1.0): 0x00030000.
    'EnabledDisplays' is a bitmask attribute.
    'EnabledDisplays' is a read-only attribute.
    'EnabledDisplays' can use the following target types: X Screen, GPU.

...

  Attribute 'FSAAAppControlled' (XPS-FEDORA:1.0): 1.
    'FSAAAppControlled' is a boolean attribute; valid values are: 1 (on/true)
    and 0 (off/false).
    'FSAAAppControlled' can use the following target types: X Screen.

  Attribute 'LogAnisoAppControlled' (XPS-FEDORA:1.0): 1.
    'LogAnisoAppControlled' is a boolean attribute; valid values are: 1
    (on/true) and 0 (off/false).
    'LogAnisoAppControlled' can use the following target types: X Screen.

  Attribute 'OpenGLImageSettings' (XPS-FEDORA:1.0): 1.
    The valid values for 'OpenGLImageSettings' are in the range 0 - 3
    (inclusive).
    'OpenGLImageSettings' can use the following target types: X Screen.

  Attribute 'FSAAAppEnhanced' (XPS-FEDORA:1.0): 0.
    'FSAAAppEnhanced' is a boolean attribute; valid values are: 1 (on/true) and
    0 (off/false).
    'FSAAAppEnhanced' can use the following target types: X Screen.

  Attribute 'SliMosaicModeAvailable' (XPS-FEDORA:1.0): 1.
    'SliMosaicModeAvailable' is a boolean attribute; valid values are: 1
    (on/true) and 0 (off/false).
    'SliMosaicModeAvailable' is a read-only attribute.
    'SliMosaicModeAvailable' can use the following target types: X Screen, GPU,
    VCS.

  Attribute 'BusType' (XPS-FEDORA:1.0): 2.
    The valid values for 'BusType' are in the range 0 - 3 (inclusive).
    'BusType' is a read-only attribute.
    'BusType' can use the following target types: X Screen, GPU, SDI Input
    Device.

  Attribute 'VideoRam' (XPS-FEDORA:1.0): 524288.
    'VideoRam' is an integer attribute.
    'VideoRam' is a read-only attribute.
    'VideoRam' can use the following target types: X Screen, GPU.

  Attribute 'Irq' (XPS-FEDORA:1.0): 16.
    'Irq' is an integer attribute.
    'Irq' is a read-only attribute.
    'Irq' can use the following target types: X Screen, GPU, SDI Input Device.

  Attribute 'GPUCoreTemp' (XPS-FEDORA:1.0): 66.
    'GPUCoreTemp' is an integer attribute.
    'GPUCoreTemp' is a read-only attribute.
    'GPUCoreTemp' can use the following target types: X Screen, GPU.

  Attribute 'GPU2DClockFreqs' (XPS-FEDORA:1.0): 169,100.
    The valid values for 'GPU2DClockFreqs' are in the ranges 42 - 338, 25 -
    1100 (inclusive).
    'GPU2DClockFreqs' can use the following target types: X Screen, GPU.

  Attribute 'GPU3DClockFreqs' (XPS-FEDORA:1.0): 475,702.
    The valid values for 'GPU3DClockFreqs' are in the ranges 118 - 950, 175 -
    1100 (inclusive).
    'GPU3DClockFreqs' can use the following target types: X Screen, GPU.

  Attribute 'GPUDefault2DClockFreqs' (XPS-FEDORA:1.0): 169,100.
    'GPUDefault2DClockFreqs' is a packed integer attribute.
    'GPUDefault2DClockFreqs' is a read-only attribute.
    'GPUDefault2DClockFreqs' can use the following target types: X Screen,
    GPU.

  Attribute 'GPUDefault3DClockFreqs' (XPS-FEDORA:1.0): 475,702.
    'GPUDefault3DClockFreqs' is a packed integer attribute.
    'GPUDefault3DClockFreqs' is a read-only attribute.
    'GPUDefault3DClockFreqs' can use the following target types: X Screen,
    GPU.

  Attribute 'GPUCurrentClockFreqs' (XPS-FEDORA:1.0): 475,702.
    'GPUCurrentClockFreqs' is a packed integer attribute.
    'GPUCurrentClockFreqs' is a read-only attribute.
    'GPUCurrentClockFreqs' can use the following target types: X Screen, GPU.

  Attribute 'BusRate' (XPS-FEDORA:1.0): 16.
    The valid values for 'BusRate' are in the range 1 - 16 (inclusive).
    'BusRate' is a read-only attribute.
    'BusRate' can use the following target types: X Screen, GPU, SDI Input
    Device.

  Attribute 'GPUErrors' (XPS-FEDORA:1.0): 0.
    'GPUErrors' is an integer attribute.
    'GPUErrors' is a read-only attribute.
    'GPUErrors' can use the following target types: X Screen.

  Attribute 'GPUPowerSource' (XPS-FEDORA:1.0): 0.
    'GPUPowerSource' is an integer attribute.
    'GPUPowerSource' is a read-only attribute.
    'GPUPowerSource' can use the following target types: X Screen, GPU.

  Attribute 'GPUCurrentPerfMode' (XPS-FEDORA:1.0): 1.
    'GPUCurrentPerfMode' is an integer attribute.
    'GPUCurrentPerfMode' is a read-only attribute.
    'GPUCurrentPerfMode' can use the following target types: X Screen, GPU.

  Attribute 'GPUCurrentPerfLevel' (XPS-FEDORA:1.0): 2.
    'GPUCurrentPerfLevel' is an integer attribute.
    'GPUCurrentPerfLevel' is a read-only attribute.
    'GPUCurrentPerfLevel' can use the following target types: X Screen, GPU.

  Attribute 'GPUAdaptiveClockState' (XPS-FEDORA:1.0): 1.
    'GPUAdaptiveClockState' is an integer attribute.
    'GPUAdaptiveClockState' is a read-only attribute.
    'GPUAdaptiveClockState' can use the following target types: X Screen, GPU.

  Attribute 'GPUPerfModes' (XPS-FEDORA:1.0): perf=0, nvclock=169, memclock=100
  ; perf=1, nvclock=275, memclock=301 ; perf=2, nvclock=475, memclock=702 

  Attribute 'GvoSupported' (XPS-FEDORA:1.0): 0.
    'GvoSupported' is a boolean attribute; valid values are: 1 (on/true) and 0
    (off/false).
    'GvoSupported' is a read-only attribute.
    'GvoSupported' can use the following target types: X Screen.

  Attribute 'IsGvoDisplay' (XPS-FEDORA:1.0): 0.
    'IsGvoDisplay' is a boolean attribute; valid values are: 1 (on/true) and 0
    (off/false).
    'IsGvoDisplay' is a read-only attribute.
    'IsGvoDisplay' can use the following target types: X Screen, GPU.

  Attribute 'DigitalVibrance' (XPS-FEDORA:1.0; display device: DFP-0): 0.
    The valid values for 'DigitalVibrance' are in the range 0 - 1023
    (inclusive).
    'DigitalVibrance' is display device specific.
    'DigitalVibrance' can use the following target types: X Screen, GPU.

  Attribute 'DigitalVibrance' (XPS-FEDORA:1.0; display device: DFP-1): 0.
    The valid values for 'DigitalVibrance' are in the range 0 - 1023
    (inclusive).
    'DigitalVibrance' is display device specific.
    'DigitalVibrance' can use the following target types: X Screen, GPU.

  Attribute 'FrontendResolution' (XPS-FEDORA:1.0; display device: DFP-0):
  1680,1050.
    'FrontendResolution' is a packed integer attribute.
    'FrontendResolution' is a read-only attribute.
    'FrontendResolution' is display device specific.
    'FrontendResolution' can use the following target types: X Screen, GPU.

  Attribute 'FrontendResolution' (XPS-FEDORA:1.0; display device: DFP-1):
  1680,1050.
    'FrontendResolution' is a packed integer attribute.
    'FrontendResolution' is a read-only attribute.
    'FrontendResolution' is display device specific.
    'FrontendResolution' can use the following target types: X Screen, GPU.

  Attribute 'BackendResolution' (XPS-FEDORA:1.0; display device: DFP-0):
  1680,1050.
    'BackendResolution' is a packed integer attribute.
    'BackendResolution' is a read-only attribute.
    'BackendResolution' is display device specific.
    'BackendResolution' can use the following target types: X Screen, GPU.

  Attribute 'BackendResolution' (XPS-FEDORA:1.0; display device: DFP-1):
  1680,1050.
    'BackendResolution' is a packed integer attribute.
    'BackendResolution' is a read-only attribute.
    'BackendResolution' is display device specific.
    'BackendResolution' can use the following target types: X Screen, GPU.

  Attribute 'FlatpanelNativeResolution' (XPS-FEDORA:1.0; display device:
  DFP-0): 1680,1050.
    'FlatpanelNativeResolution' is a packed integer attribute.
    'FlatpanelNativeResolution' is a read-only attribute.
    'FlatpanelNativeResolution' is display device specific.
    'FlatpanelNativeResolution' can use the following target types: X Screen,
    GPU.

  Attribute 'FlatpanelNativeResolution' (XPS-FEDORA:1.0; display device:
  DFP-1): 1680,1050.
    'FlatpanelNativeResolution' is a packed integer attribute.
    'FlatpanelNativeResolution' is a read-only attribute.
    'FlatpanelNativeResolution' is display device specific.
    'FlatpanelNativeResolution' can use the following target types: X Screen,
    GPU.

  Attribute 'FlatpanelBestFitResolution' (XPS-FEDORA:1.0; display device:
  DFP-0): 1680,1050.
    'FlatpanelBestFitResolution' is a packed integer attribute.
    'FlatpanelBestFitResolution' is a read-only attribute.
    'FlatpanelBestFitResolution' is display device specific.
    'FlatpanelBestFitResolution' can use the following target types: X Screen,
    GPU.

  Attribute 'FlatpanelBestFitResolution' (XPS-FEDORA:1.0; display device:
  DFP-1): 1680,1050.
    'FlatpanelBestFitResolution' is a packed integer attribute.
    'FlatpanelBestFitResolution' is a read-only attribute.
    'FlatpanelBestFitResolution' is display device specific.
    'FlatpanelBestFitResolution' can use the following target types: X Screen,
    GPU.

  Attribute 'DFPScalingActive' (XPS-FEDORA:1.0; display device: DFP-0): 0.
    'DFPScalingActive' is a boolean attribute; valid values are: 1 (on/true)
    and 0 (off/false).
    'DFPScalingActive' is a read-only attribute.
    'DFPScalingActive' is display device specific.
    'DFPScalingActive' can use the following target types: X Screen, GPU.

  Attribute 'DFPScalingActive' (XPS-FEDORA:1.0; display device: DFP-1): 0.
    'DFPScalingActive' is a boolean attribute; valid values are: 1 (on/true)
    and 0 (off/false).
    'DFPScalingActive' is a read-only attribute.
    'DFPScalingActive' is display device specific.
    'DFPScalingActive' can use the following target types: X Screen, GPU.

  Attribute 'GPUScaling' (XPS-FEDORA:1.0; display device: DFP-0): 2,1.
    Valid values for 'GPUScaling' are: [1 and 2], [1, 2 and 3].
    'GPUScaling' is display device specific.
    'GPUScaling' can use the following target types: X Screen, GPU.

  Attribute 'GPUScaling' (XPS-FEDORA:1.0; display device: DFP-1): 2,1.
    Valid values for 'GPUScaling' are: [1 and 2], [1, 2 and 3].
    'GPUScaling' is display device specific.
    'GPUScaling' can use the following target types: X Screen, GPU.

  Attribute 'GPUScalingActive' (XPS-FEDORA:1.0; display device: DFP-0): 0.
    'GPUScalingActive' is a boolean attribute; valid values are: 1 (on/true)
    and 0 (off/false).
    'GPUScalingActive' is a read-only attribute.
    'GPUScalingActive' is display device specific.
    'GPUScalingActive' can use the following target types: X Screen, GPU.

  Attribute 'GPUScalingActive' (XPS-FEDORA:1.0; display device: DFP-1): 0.
    'GPUScalingActive' is a boolean attribute; valid values are: 1 (on/true)
    and 0 (off/false).
    'GPUScalingActive' is a read-only attribute.
    'GPUScalingActive' is display device specific.
    'GPUScalingActive' can use the following target types: X Screen, GPU.

  Attribute 'RefreshRate' (XPS-FEDORA:1.0; display device: DFP-0): 60.02 Hz.
    'RefreshRate' is an integer attribute.
    'RefreshRate' is a read-only attribute.
    'RefreshRate' is display device specific.
    'RefreshRate' can use the following target types: X Screen, GPU.

  Attribute 'RefreshRate' (XPS-FEDORA:1.0; display device: DFP-1): 59.95 Hz.
    'RefreshRate' is an integer attribute.
    'RefreshRate' is a read-only attribute.
    'RefreshRate' is display device specific.
    'RefreshRate' can use the following target types: X Screen, GPU.

  Attribute 'RefreshRate3' (XPS-FEDORA:1.0; display device: DFP-0): 60.017 Hz.
    'RefreshRate3' is an integer attribute.
    'RefreshRate3' is a read-only attribute.
    'RefreshRate3' is display device specific.
    'RefreshRate3' can use the following target types: X Screen, GPU.

  Attribute 'RefreshRate3' (XPS-FEDORA:1.0; display device: DFP-1): 59.954 Hz.
    'RefreshRate3' is an integer attribute.
    'RefreshRate3' is a read-only attribute.
    'RefreshRate3' is display device specific.
    'RefreshRate3' can use the following target types: X Screen, GPU.

  Attribute 'OverscanCompensation' (XPS-FEDORA:1.0; display device: DFP-0): 0.
    The valid values for 'OverscanCompensation' are in the range 0 - 200
    (inclusive).
    'OverscanCompensation' is display device specific.
    'OverscanCompensation' can use the following target types: X Screen, GPU.

  Attribute 'OverscanCompensation' (XPS-FEDORA:1.0; display device: DFP-1): 0.
    The valid values for 'OverscanCompensation' are in the range 0 - 200
    (inclusive).
    'OverscanCompensation' is display device specific.
    'OverscanCompensation' can use the following target types: X Screen, GPU.

  Attribute 'XVideoTextureBrightness' (XPS-FEDORA:1.0): 0.
    The valid values for 'XVideoTextureBrightness' are in the range -1000 -
    1000 (inclusive).
    'XVideoTextureBrightness' can use the following target types: X Screen.

  Attribute 'XVideoTextureContrast' (XPS-FEDORA:1.0): 0.
    The valid values for 'XVideoTextureContrast' are in the range -1000 - 1000
    (inclusive).
    'XVideoTextureContrast' can use the following target types: X Screen.

  Attribute 'XVideoTextureHue' (XPS-FEDORA:1.0): 0.
    The valid values for 'XVideoTextureHue' are in the range -1000 - 1000
    (inclusive).
    'XVideoTextureHue' can use the following target types: X Screen.

  Attribute 'XVideoTextureSaturation' (XPS-FEDORA:1.0): 0.
    The valid values for 'XVideoTextureSaturation' are in the range -1000 -
    1000 (inclusive).
    'XVideoTextureSaturation' can use the following target types: X Screen.

  Attribute 'XVideoTextureSyncToVBlank' (XPS-FEDORA:1.0): 1.
    The valid values for 'XVideoTextureSyncToVBlank' are in the range 0 - 1
    (inclusive).
    'XVideoTextureSyncToVBlank' can use the following target types: X Screen.

  Attribute 'XVideoSyncToDisplay' (XPS-FEDORA:1.0): 0x00010000.
    'XVideoSyncToDisplay' is a bitmask attribute.
    'XVideoSyncToDisplay' can use the following target types: X Screen.
As for the code, most of the magic that makes the plugin different occurs in StackswitchScreen::glPaintOutput. I don't have time to make a separate test case.

Kind Regards,

-Sm
SmSpillaz is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:06 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.