Hard-Locks and graphics card driver issues

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
fabian büttner

Hard-Locks and graphics card driver issues

Post by fabian büttner »

Hello,
This is my first post on this list.

I am experiencing very often hard-locks while using different wine
versions (from wine 0.9.58 until 1.0-rc3).

My OS is Fedora 9 x86_64 and I also compiled 1.0-rc3 how the wine wiki
told me to do.
I am also experiencing hard-locks just by using winetricks.
The hard-locks appear not immediately but sporadically.

But that's a kernel issue I guess, eh?
My kernel version is 2.6.25.4-42. (had that issue also with 2.6.25.3)

Then about my graphics driver issue. When trying to load Heroes of Might
and Magic 3, I get the following errors on my console:

err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat
err:d3d:InitAdapters Failed to get a gl context for default adapter
fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from
32 to 16
err:ole:CoGetClassObject class {5959df60-2911-11d1-b049-0020af30269a}
not registered
err:ole:CoGetClassObject no class object
{5959df60-2911-11d1-b049-0020af30269a} could be created for context 0x1
fixme:dplay:IDirectPlayLobby3AImpl_RegisterApplication :stub

I don't see what's wrong with my nvidia drivers.
my driver version: akmod-nvidia-173.14.05-2

Any ideas?
regards,
Fabian
Marcel W. Wysocki

Hard-Locks and graphics card driver issues

Post by Marcel W. Wysocki »

On Thu, 05 Jun 2008 00:03:17 +0200
fabian büttner <[email protected]> wrote:
Hello,
This is my first post on this list.

I am experiencing very often hard-locks while using different wine
versions (from wine 0.9.58 until 1.0-rc3).

My OS is Fedora 9 x86_64 and I also compiled 1.0-rc3 how the wine wiki
told me to do.
I am also experiencing hard-locks just by using winetricks.
The hard-locks appear not immediately but sporadically.

But that's a kernel issue I guess, eh?
My kernel version is 2.6.25.4-42. (had that issue also with 2.6.25.3)

Then about my graphics driver issue. When trying to load Heroes of Might
and Magic 3, I get the following errors on my console:

err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat
err:d3d:InitAdapters Failed to get a gl context for default adapter
fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from
32 to 16
err:ole:CoGetClassObject class {5959df60-2911-11d1-b049-0020af30269a}
not registered
err:ole:CoGetClassObject no class object
{5959df60-2911-11d1-b049-0020af30269a} could be created for context 0x1
fixme:dplay:IDirectPlayLobby3AImpl_RegisterApplication :stub

I don't see what's wrong with my nvidia drivers.
my driver version: akmod-nvidia-173.14.05-2

Any ideas?
regards,
Fabian
does your box hardlock with native opengl apps too ?

--
Marcel W. Wysocki <[email protected]>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-us ... chment.pgp
fabian büttner

Hard-Locks and graphics card driver issues

Post by fabian büttner »

On Thu, 2008-06-05 at 10:38 +0200, Marcel W. Wysocki wrote:
On Thu, 05 Jun 2008 00:03:17 +0200
fabian büttner <[email protected]> wrote:
Hello,
This is my first post on this list.

I am experiencing very often hard-locks while using different wine
versions (from wine 0.9.58 until 1.0-rc3).

My OS is Fedora 9 x86_64 and I also compiled 1.0-rc3 how the wine wiki
told me to do.
I am also experiencing hard-locks just by using winetricks.
The hard-locks appear not immediately but sporadically.

But that's a kernel issue I guess, eh?
My kernel version is 2.6.25.4-42. (had that issue also with 2.6.25.3)

Then about my graphics driver issue. When trying to load Heroes of Might
and Magic 3, I get the following errors on my console:

err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat
err:d3d:InitAdapters Failed to get a gl context for default adapter
fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from
32 to 16
err:ole:CoGetClassObject class {5959df60-2911-11d1-b049-0020af30269a}
not registered
err:ole:CoGetClassObject no class object
{5959df60-2911-11d1-b049-0020af30269a} could be created for context 0x1
fixme:dplay:IDirectPlayLobby3AImpl_RegisterApplication :stub

I don't see what's wrong with my nvidia drivers.
my driver version: akmod-nvidia-173.14.05-2

Any ideas?
regards,
Fabian
does your box hardlock with native opengl apps too ?
No it does not hardlock with native opengl apps. But it's much likely to
be a kernel issue, isn't it?
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: Hard-Locks and graphics card driver issues

Post by dimesio »

fabian büttner wrote:On Thu, 2008-06-05 at 10:38 +0200, Marcel W. Wysocki wrote:
No it does not hardlock with native opengl apps. But it's much likely to
be a kernel issue, isn't it?
It's a known bug in Fedora 9: https://bugzilla.redhat.com/show_bug.cgi?id=443552
fabian büttner

Hard-Locks and graphics card driver issues

Post by fabian büttner »

ok,
with the latest kernel at least the hard-locks are gone (2.6.25.6-55).
Thanks for the link dimesio.

But I still have the graphics card driver issues. I don't get it.
My nvidia kmod build just fine.
Compiz is disabled too. I am on a TwinView rig (maybe this is useful for
someone). Any ideas?

here some console samples:

Heroes of Might and Magic 3:
err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat
err:d3d:InitAdapters Failed to get a gl context for default adapter
fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from
32 to 16
err:ole:CoGetClassObject class {5959df60-2911-11d1-b049-0020af30269a}
not registered
err:ole:CoGetClassObject no class object
{5959df60-2911-11d1-b049-0020af30269a} could be created for context 0x1
fixme:dplay:IDirectPlayLobby3AImpl_RegisterApplication :stub

Warcraft 3 Frozen Throne:
err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat
err:d3d:InitAdapters Failed to get a gl context for default adapter
err:wine_d3d:WineDirect3DCreate Direct3D8 is not available without
opengl
fixme:dbghelp:dump_system_info fill in CPU vendorID and feature set


Guildwars:
err:ole:apartment_getclassobject DllGetClassObject returned error
0x80040111
err:ole:CoGetClassObject no class object
{fbf23b40-e3f0-101b-8488-00aa003e56f8} could be created for context 0x1
err:ole:apartment_getclassobject DllGetClassObject returned error
0x80040111
err:ole:CoGetClassObject no class object
{fbf23b40-e3f0-101b-8488-00aa003e56f8} could be created for context 0x1
fixme:shell:DllCanUnloadNow stub
[victorio@wolf Games]$ fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
fixme:shell:DllCanUnloadNow stub
err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat
err:d3d:InitAdapters Failed to get a gl context for default adapter
err:wine_d3d:WineDirect3DCreate Direct3D9 is not available without
opengl
err:wine_d3d:WineDirect3DCreate Direct3D8 is not available without
opengl
err:seh:raise_exception Exception frame is not in stack limits => unable
to dispatch exception.

regards,
Fabian
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Hard-Locks and graphics card driver issues

Post by vitamin »

fabian büttner wrote:err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat
Try virtual desktop. Check that everything is fine with 'glxinfo' especially that direct rendering is "on". Also that you don't have anywhere stale libGLs from mesa (they all should be nVidia's).
fabian büttner

Hard-Locks and graphics card driver issues

Post by fabian büttner »

On Thu, 2008-06-12 at 08:46 -0500, vitamin wrote:
fabian büttner wrote:
err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat
Try virtual desktop. Check that everything is fine with 'glxinfo' especially that direct rendering is "on". Also that you don't have anywhere stale libGLs from mesa (they all should be nVidia's).

I already tried using virtual desktop, unfortunately it did not help.

su -
glxinfo | grep direct
direct rendering: Yes

without "su -", I get an error:
NVIDIA: could not open the device file /dev/nvidiactl (Permission
denied).
NVIDIA: Direct rendering failed; attempting indirect rendering
direct rendering: No (If you want to find out why, try setting
LIBGL_DEBUG=verbose)

Could this be the error? I never tried running wine as root.

could you elaborate how to find out that i don't have anywhere stale
libGLs from mesa?

regards,
Fabian
fabian büttner

Hard-Locks and graphics card driver issues

Post by fabian büttner »

I changed the permissions of /dev/nvidiactl and /dev/nvidia0.

glxinfo | grep direct
direct rendering: Yes

Unfortunately I still get the same error :(
> err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable
iPixelFormat

regards,
fabian
fabian büttner

Hard-Locks and graphics card driver issues

Post by fabian büttner »

vitamin, i guess i understand what you meant ...
here the mesa libs I have installed.
Shall I remove them?

rpm -qa | grep mesa
mesa-libGL-devel-7.1-0.31.fc9.x86_64
mesa-libGLU-7.1-0.31.fc9.i386
mesa-libGLU-7.1-0.31.fc9.x86_64
mesa-libGL-7.1-0.31.fc9.i386
mesa-libGL-7.1-0.31.fc9.x86_64
mesa-libGL-devel-7.1-0.31.fc9.i386
mesa-libGLU-devel-7.1-0.31.fc9.i386
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Hard-Locks and graphics card driver issues

Post by vitamin »

fabian büttner wrote:su -
glxinfo | grep direct
direct rendering: Yes

without "su -", I get an error:
NVIDIA: could not open the device file /dev/nvidiactl (Permission
denied).
What user & group is the owner of those? Should be root.video. And your user should be part of video group.
fabian büttner

Hard-Locks and graphics card driver issues

Post by fabian büttner »

I changed the group to my user's name and thus i could access the file.
there exists no group called video if I rightclick in nautilus on the
file to change its permission.
After I received your email i reverted the group back to root as the
group video does not exist on my system.

ls -l | grep nvidia
crw------- 1 root root 195, 0 2008-05-28 18:45 nvidia0
crw------- 1 root root 195, 1 2008-05-28 18:45 nvidia1
crw------- 1 root root 195, 2 2008-05-28 18:45 nvidia2
crw------- 1 root root 195, 3 2008-05-28 18:45 nvidia3
crw------- 1 root root 195, 255 2008-05-28 18:45 nvidiactl
IG0R
Newbie
Newbie
Posts: 1
Joined: Sun Apr 18, 2010 4:24 am

Post by IG0R »

I had the following error when I was trying to play Diablo 2

Code: Select all

[igor@virus ~]$ wine .wine/drive_c/Program\ Files/Diablo\ II/Game.exe 
fixme:advapi:SetSecurityInfo stub
err:wgl:X11DRV_WineGL_InitOpenglInfo  couldn't initialize OpenGL, expect problems
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
After a week of googling, crazy ideas and tries, I finally added my username to group called video and it solved my problem.

Code: Select all

[root@virus ~]# id igor
uid=500(igor) gid=500(igor) skupiny=500(igor),1234(dokumenty)
[root@virus ~]# usermod -aG video igor
[root@virus ~]# id igor
uid=500(igor) gid=500(igor) skupiny=500(igor),39(video),1234(dokumenty)
newbie mistake :)
Das Letzte Einhorn
Level 4
Level 4
Posts: 194
Joined: Thu Jun 12, 2008 12:40 pm

Post by Das Letzte Einhorn »

IG0R wrote:I had the following error when I was trying to play Diablo 2

Code: Select all

[igor@virus ~]$ wine .wine/drive_c/Program\ Files/Diablo\ II/Game.exe 
fixme:advapi:SetSecurityInfo stub
err:wgl:X11DRV_WineGL_InitOpenglInfo  couldn't initialize OpenGL, expect problems
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
After a week of googling, crazy ideas and tries, I finally added my username to group called video and it solved my problem.

Code: Select all

[root@virus ~]# id igor
uid=500(igor) gid=500(igor) skupiny=500(igor),1234(dokumenty)
[root@virus ~]# usermod -aG video igor
[root@virus ~]# id igor
uid=500(igor) gid=500(igor) skupiny=500(igor),39(video),1234(dokumenty)
newbie mistake :)
I am experiencing this issue as well.

Code: Select all

err:wgl:X11DRV_WineGL_InitOpenglInfo  couldn't initialize OpenGL, expect problems
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
But I am already in the video group

Code: Select all

video::27:root,boinc,xavier
My device drivers are also properly installed and the nvidia interface is selected.

Code: Select all

*  x11-drivers/nvidia-drivers
      Latest version available: 195.36.15
      Latest version installed: 195.36.15
      Size of files: 79,297 kB
      Homepage:      http://www.nvidia.com/
      Description:   NVIDIA X11 driver and GLX libraries
      License:       NVIDIA

Code: Select all

xavier-pc ~ # eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11
Anybody has other leads in order to fix this? Thanks!
Locked