Black screen

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Black screen

Post by Fraid »

Hello, guys. I know, that this is old bug, but still... I tried to use patch from bug 19948, but it does not work. I launch Neverwinter Nights and see only black screen instead of main menu. Here is Wine output

Code: Select all

fraid@fraid-laptop:/media/D/NWN1$ wine nwmain.exe
ALSA lib pcm_pulse.c:1008:(_snd_pcm_pulse_open) Unknown field handle_underrun
err:winediag:AUDDRV_GetAudioEndpoint PulseAudio "default" -22 without handle_underrun. Audio may hang. Please upgrade to alsa_plugins >= 1.0.24
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 32 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 32 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
err:ole:COMPOBJ_DllList_Add couldn't load in-process dll L"a3dapi.dll"
err:ole:CoGetClassObject no class object {92fa2c24-253c-11d2-90fb-006008a1f441} could be created for context 0x1
fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList
fixme:win:EnumDisplayDevicesW ((null),0,0x32f040,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f040,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f040,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f040,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f040,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f040,0x00000000), stub!
After that I cant even close Wine window. Any suggestions?
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

Ah,yes. Wine 1.3.35
mogorva
Level 4
Level 4
Posts: 107
Joined: Fri Oct 16, 2009 10:27 am

Post by mogorva »

This could be bug 28869 instead.
Try winetricks ddr=gdi (or remove in-game videos).
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

Thanks, I'l try it. After that, I'll post the result of my test :)
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

A lot of thanks! winetricks ddr=gdi really solved my problem!
But now I have another problem - all games in Wine are working slow :( Sound is normal,but picture is lagging. Dont know what to do.
mogorva
Level 4
Level 4
Posts: 107
Joined: Fri Oct 16, 2009 10:27 am

Post by mogorva »

Fraid wrote:But now I have another problem - all games in Wine are working slow :( Sound is normal,but picture is lagging. Dont know what to do.
You need to create a separate wineprefix for NWN, so other games won't be affected by ddr=gdi.
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

mogorva wrote:
Fraid wrote:But now I have another problem - all games in Wine are working slow :( Sound is normal,but picture is lagging. Dont know what to do.
You need to create a separate wineprefix for NWN, so other games won't be affected by ddr=gdi.
Well,even NWN have the same problem. I have lags even in old games such as Fallout 2.
mogorva
Level 4
Level 4
Posts: 107
Joined: Fri Oct 16, 2009 10:27 am

Post by mogorva »

1. is everything back to normal if you revert the change, e.g. winetricks ddr=opengl (or by removing the key in HKCU/Software/Wine/Direct3D)?

2. this doesn't look good
ALSA lib pcm_pulse.c:1008:(_snd_pcm_pulse_open) Unknown field handle_underrun
err:winediag:AUDDRV_GetAudioEndpoint PulseAudio "default" -22 without handle_underrun. Audio may hang. Please upgrade to alsa_plugins >= 1.0.24
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

1. Black screen returned.
2. What's about ALSA?
mogorva
Level 4
Level 4
Posts: 107
Joined: Fri Oct 16, 2009 10:27 am

Post by mogorva »

Fraid wrote:1. Black screen returned.
Of course it returned, but what about the performance in other games?
2. What's about ALSA?
Do what the message tells you: upgrade the alsa-plugins package. Btw. what distro are you using?
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

1.Hold on,wait a minute then.
2.It's Ubuntu 10.10
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

Now that's odd. Fallout 2 now have black screen with opengl.
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

Well,nothing good with opengl
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

Bump.
mogorva
Level 4
Level 4
Posts: 107
Joined: Fri Oct 16, 2009 10:27 am

Post by mogorva »

1. Start regedit (wine regedit) and locate the key DirectDrawRenderer under HKEY_CURRENT_USER\Software\Wine\Direct3D.
What value has it? Is it gdi or opengl?
Delete the key. This will restore the original state.

2. Take the second workaround for NWN: remove all videos from the movies directory (move them to another location).

Now NWN should start normally with the default opengl renderer (you won't see videos obviously).
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

It was opengl.
Yup, it launched. But it's still slow. =(
Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid »

Ahaha. All lags in NWN 1 disappeared! I've just turned all video settings to minimum :) This topic should be closed now.
Locked