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 » Tue Dec 27, 2011 12:16 pm

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 » Tue Dec 27, 2011 12:25 pm

Ah,yes. Wine 1.3.35

mogorva
Level 4
Level 4
Posts: 106
Joined: Fri Oct 16, 2009 10:27 am
Location: Hungary

Post by mogorva » Tue Dec 27, 2011 12:30 pm

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 » Tue Dec 27, 2011 1:02 pm

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 » Tue Dec 27, 2011 1:26 pm

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: 106
Joined: Fri Oct 16, 2009 10:27 am
Location: Hungary

Post by mogorva » Tue Dec 27, 2011 1:45 pm

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 » Tue Dec 27, 2011 2:01 pm

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: 106
Joined: Fri Oct 16, 2009 10:27 am
Location: Hungary

Post by mogorva » Tue Dec 27, 2011 2:10 pm

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 » Tue Dec 27, 2011 2:26 pm

1. Black screen returned.
2. What's about ALSA?

mogorva
Level 4
Level 4
Posts: 106
Joined: Fri Oct 16, 2009 10:27 am
Location: Hungary

Post by mogorva » Tue Dec 27, 2011 2:32 pm

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 » Tue Dec 27, 2011 2:44 pm

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 » Tue Dec 27, 2011 2:54 pm

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 » Tue Dec 27, 2011 3:08 pm

Well,nothing good with opengl

Fraid
Level 2
Level 2
Posts: 12
Joined: Tue Dec 27, 2011 12:08 pm

Post by Fraid » Wed Dec 28, 2011 12:29 am

Bump.

mogorva
Level 4
Level 4
Posts: 106
Joined: Fri Oct 16, 2009 10:27 am
Location: Hungary

Post by mogorva » Wed Dec 28, 2011 2:40 am

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 » Wed Dec 28, 2011 8:38 am

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 » Wed Dec 28, 2011 4:31 pm

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

Locked