http://bugs.winehq.org/show_bug.cgi?id=9378
Summary: CM: Shock Force 'Could not initialize graphics display' Product: Wine Version: 0.9.43. Platform: PC URL: http://www.battlefront.com/products/cmsf/downloads.html OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-directx AssignedTo: wine-bugs@winehq.org ReportedBy: mailing_list@orange.nl
After starting Combat Mission: Shock Force Demo it stops with the message:
'Could not initialize graphics display. REQUIRED 1024x768, 32-bit color'.
The terminal output doesn't provide any clues:
wine 'CM Shock Force DEMO.exe' ALSA lib conf.c:3939:(snd_config_expand) Unknown parameters 0 ALSA lib control.c:910:(snd_ctl_open_noupdate) Invalid CTL default:0 err:alsa:ALSA_CheckSetVolume Could not find 'PCM Playback Volume' element err:alsa:ALSA_CheckSetVolume Could not find 'PCM Playback Volume' element fixme:wave:ALSA_AddCaptureDevice Add support for DSCapture ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
http://bugs.winehq.org/show_bug.cgi?id=9378
Mies King dkhc25@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #1 from Mies King dkhc25@gmail.com 2007-08-20 04:40:04 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #2 from knan-wine@anduin.net 2007-09-01 06:39:00 --- Hmm. Does http://www.winehq.org/pipermail/wine-patches/2007-June/040747.html help?
http://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #3 from Aniruddha mailing_list@orange.nl 2007-09-01 13:26:47 --- (In reply to comment #2)
Hmm. Does http://www.winehq.org/pipermail/wine-patches/2007-June/040747.html help?
Thanks for the link! I am afraid that I don't have enough knowledge to apply that patch :(
http://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #4 from Austin English austinenglish@gmail.com 2007-09-01 14:52:23 --- http://wiki.winehq.org/RegressionTesting
You need to clone the git repository and apply the patch. This guide should help with that.
http://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #5 from knan-wine@anduin.net 2007-09-02 08:19:21 --- No, the patch doesn't help. Hmm. Can't really tell why it is failing. +x11settings,+relay doesn't tell me much.
http://bugs.winehq.org/show_bug.cgi?id=9378
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000@yahoo.co.uk
--- Comment #6 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2008-01-03 05:54:11 --- The error message has changed: "Could not initialize OpenGl" messagebox. Looks like the game is not happy with what DescribePixelFormat returns:
0009:Call gdi32.DescribePixelFormat(000001fc,00000001,00000000,00000000) ret=00413c9c 0009:trace:wgl:X11DRV_DescribePixelFormat (0x15e758,1,0,(nil)) 0009:trace:wgl:init_formats Number of offscreen formats: 0 0009:trace:wgl:ConvertPixelFormatWGLtoGLX Returning FBConfig=0x7c0dda48 for iPixelFormat=1 0009:trace:wgl:ConvertPixelFormatWGLtoGLX Number of returned pixelformats=1 0009:Ret gdi32.DescribePixelFormat() retval=00000001 ret=00413c9c 0009:Call user32.MessageBoxA(00000000,0065f020 "Could not initialize OpenGL graphics. Please update your OpenGL drivers.",00000000,00001010) ret=00413c28
http://bugs.winehq.org/show_bug.cgi?id=9378
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|_obsolete_directx |-unknown
http://bugs.winehq.org/show_bug.cgi?id=9378
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #7 from Austin English austinenglish@gmail.com 2008-06-12 11:13:52 --- Is this still an issue in current (1.0-rc4 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #8 from knan-wine@anduin.net 2008-09-19 12:58:30 --- Note that the downloadable demo has been updated since this bug was opened. The current downloadable demo is version 1.07, 2008-02-22.
"Could not initialize OpenGL" messagebox reported by Louis is still there in 1.1.5. No fixmes or errors at all.
http://bugs.winehq.org/show_bug.cgi?id=9378
nick ves vespenegeyser@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vespenegeyser@hotmail.com
--- Comment #9 from nick ves vespenegeyser@hotmail.com 2009-06-19 10:06:10 --- bug is still present as 1.1.23
http://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #10 from Austin English austinenglish@gmail.com 2010-11-08 21:59:19 CST --- (In reply to comment #8)
Note that the downloadable demo has been updated since this bug was opened. The current downloadable demo is version 1.07, 2008-02-22.
"Could not initialize OpenGL" messagebox reported by Louis is still there in 1.1.5. No fixmes or errors at all.
Still in wine-1.3.6-304-g4cd2a0e.
http://bugs.winehq.org/show_bug.cgi?id=9378
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |opengl Severity|enhancement |normal
--- Comment #11 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2011-09-23 13:24:45 CDT --- Still present in current git. Setting component to opengl
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #12 from Austin English austinenglish@gmail.com --- With wine-1.7.15, I get: Could not initialize OpenGL graphics. Please update your OpenGL drivers.
http://bugs.winehq.org/show_bug.cgi?id=9378
hanska2@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hanska2@luukku.com
--- Comment #13 from hanska2@luukku.com --- Anyone tested this recently? The link provided out of date...
https://bugs.winehq.org/show_bug.cgi?id=9378
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.battlefront.com/ |http://www.gamershell.com/d |products/cmsf/downloads.htm |ownload_65332.shtml |l | CC| |wylda@volny.cz Summary|CM: Shock Force 'Could not |Combat Mission Shock Force |initialize graphics |DEMO: 'Could not initialize |display' |OpenGL graphics.'
--- Comment #14 from Wylda wylda@volny.cz --- Still present in wine-1.7.29.
https://bugs.winehq.org/show_bug.cgi?id=9378
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #15 from super_man@post.com --- still fails 1.7.54
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #16 from super_man@post.com --- (In reply to super_man from comment #15)
still fails 1.7.54
Still fails wine 1.9.4-git and wine-staging 1.9.4. The failure is pretty much instant.
https://bugs.winehq.org/show_bug.cgi?id=9378
Alexander Puzankov alxpnv@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alxpnv@gmail.com
--- Comment #17 from Alexander Puzankov alxpnv@gmail.com --- Problem is in pixel formats returned by DescribePixelFormat, specifically in the cAlphaShift field. Combat Mission engine enumerates these until cAlphaShift=24 is found (amongst other checks), but Wine always sets 0 there. This patch seems to fix the issue:
--- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1725,7 +1725,7 @@ static int glxdrv_wglDescribePixelFormat ppfd->cGreenBits = gb; ppfd->cGreenShift = bb + ab; ppfd->cAlphaBits = ab; - ppfd->cAlphaShift = 0; + ppfd->cAlphaShift = 24; } else { ppfd->cRedBits = 0; ppfd->cRedShift = 0;
But I'm not entirely sure this doesn't break something else (in other apps), or is otherwise the correct way.
https://bugs.winehq.org/show_bug.cgi?id=9378
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #18 from winetest@luukku.com --- (In reply to Alexander Puzankov from comment #17)
Problem is in pixel formats returned by DescribePixelFormat, specifically in the cAlphaShift field. Combat Mission engine enumerates these until cAlphaShift=24 is found (amongst other checks), but Wine always sets 0 there. This patch seems to fix the issue:
--- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1725,7 +1725,7 @@ static int glxdrv_wglDescribePixelFormat ppfd->cGreenBits = gb; ppfd->cGreenShift = bb + ab; ppfd->cAlphaBits = ab;
- ppfd->cAlphaShift = 0;
- ppfd->cAlphaShift = 24; } else { ppfd->cRedBits = 0; ppfd->cRedShift = 0;
But I'm not entirely sure this doesn't break something else (in other apps), or is otherwise the correct way.
Somehow related bug 38763.
https://bugs.winehq.org/show_bug.cgi?id=9378
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #19 from joaopa jeremielapuree@yahoo.fr --- Created attachment 64668 --> https://bugs.winehq.org/attachment.cgi?id=64668 console output
Bug still occurs with wine-4.9.
https://bugs.winehq.org/show_bug.cgi?id=9378
Kevin2k gbroers@quicknet.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gbroers@quicknet.nl
--- Comment #20 from Kevin2k gbroers@quicknet.nl --- Created attachment 68234 --> https://bugs.winehq.org/attachment.cgi?id=68234 wglinfo results with cAlphaShift, on different hardware + Wine v5.61 Dev
For Reference Regarding https://bugs.winehq.org/attachment.cgi?bugid=9378 wglinfo results with cAlphaShift, on different hardware + Wine v5.61 Dev GB 23-9-2020
Contents - 3DFX Voodoo3 AGP, Windows 98 - AMD Radeon HD6670 PCI-E, Windows XP - Intel UHD620 HP-Notebook, Windows 10 - Intel HD3000 Asus-P53E-Notebook, Windows XP - Nvidia G210 PCI-E, Windows 7 - Nvidia GT710 PCI-E, Windows 7 - Nvidia GT1030 PCI-E, Windows 7 - Nvidia Quadro4-100-NVS PCI, Windows XP - Wine v5.61-Dev
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #21 from joaopa jeremielapuree@yahoo.fr --- Created attachment 68235 --> https://bugs.winehq.org/attachment.cgi?id=68235 fix rgba shift bits
Bug still occurs wine-5.17. Download link is burst. This one works https://www.fileplanet.com/archive/p-24697/Combat-Mission-Shock-Force-Demo/d... Can an administrator put the link at the URL place?
The attached patch fixes the problem for me.
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #22 from Kevin2k gbroers@quicknet.nl --- First I must correct something in my message and attachment from yesterday: Wine 5.61 should read Wine 5.16 there.
@joaopa I am not an openGL or Wine programmer. But I can understand unwillingness to merge the patch by Alexander Puzankov 2017-05-24, as is. That would change cAlphaShift from 0 to 24 for every PixelFormat entry. But as you can see in the real hardware logs that I attached, that is not normal behavior. cAlphaShift is 24 only for select PixelFormat entries. Usually it is indeed 0. (and I see some rare instances of 48.) On the other hand, in all the hardware I tested, only the ancient 3DFX Voodoo3 lacks PixelFormats with cAlphaShift 24. In other words: It appears to be normal practice for real hardware/drivers to offer some PixelFormats with cAlphaShift 24.
Questions that arise: - What is cAlphaShift? - Which Wine/Mesa PixelFormats would a cAlphaShift of 24 apply to? - Is it just a matter of changing the cAlphaShift value for these PixelFormats or does it require more extensive adjustments? - Would it be more practical to ask about this matter at https://www.mesa3d.org?
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #24 from Kevin2k gbroers@quicknet.nl --- joaopa,
I just looked at your Diff attachment from 2020-09-23. Yes, that makes much more sense then the previous workaround from Alexander from 2017. According to what I see in your diff, 'shift' is just the bit-offset of the pixel's r,g,b,a component data.
I do find it odd that in my hardware tests cAlphaShift is 0 for many pixelformats that do have an alpha channel. Does that suggest the alpha channel is the first byte for these modes?
https://bugs.winehq.org/show_bug.cgi?id=9378
Kevin2k gbroers@quicknet.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #68234|wglinfo results with |wglinfo results with description|cAlphaShift, on different |cAlphaShift, on different |hardware + Wine v5.61 Dev |hardware + Wine v5.16 Dev
https://bugs.winehq.org/show_bug.cgi?id=9378
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be URL|http://www.gamershell.com/d |https://www.fileplanet.com/ |ownload_65332.shtml |archive/p-24697/Combat-Miss | |ion-Shock-Force-Demo/downlo | |ad
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #25 from joaopa jeremielapuree@yahoo.fr --- Were your tests performed in real windows box?
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #26 from joaopa jeremielapuree@yahoo.fr --- Created attachment 68245 --> https://bugs.winehq.org/attachment.cgi?id=68245 wglinfo with shift infos
Can you test the improved wglinfo in real windows box?
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #27 from Kevin2k gbroers@quicknet.nl --- Created attachment 68251 --> https://bugs.winehq.org/attachment.cgi?id=68251 wglinfo results with accum buffs, on different hardware.
Yes, All the wglinfo results are from Windows OS running directly on real hardware. No virtual machines. The only exception is the Wine 5.16 result that I added.
For Reference Regarding https://bugs.winehq.org/attachment.cgi?bugid=9378 output from: wglinfo with extra information (accum buffs), supplied by joaopa, on different hardware. GB 25-9-2020
Contents - Intel UHD620 HP-Notebook, Windows 10 - Intel HD3000 Asus-P53E-Notebook, Windows XP - Nvidia G210 PCI-E, Windows 7 - Nvidia GT710 PCI-E, Windows 7
https://bugs.winehq.org/show_bug.cgi?id=9378
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net URL|https://www.fileplanet.com/ |https://web.archive.org/web |archive/p-24697/Combat-Miss |/20210309081751/https://us. |ion-Shock-Force-Demo/downlo |softpedia-secure-download.c |ad |om/dl/958b51bc6f6d18df8aa41 | |a4dfb57eddf/60472e9f/200076 | |810/games/demo/CMSF_DEMO_v1 | |30_Setup.exe
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #28 from joaopa jeremielapuree@yahoo.fr --- Bug is fixed in wine-8.7 Commit that fix this bug is: 01c59b3f18dca1f4db42425eda2f95296da61a63
Thanks @Paul Gofman
My patch was essentially correct :D
Can an administrator close this bug as FIXED?
https://bugs.winehq.org/show_bug.cgi?id=9378
temp82@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82@luukku.com
--- Comment #29 from temp82@luukku.com --- indeed the game can be started now. I tried to play it too, but Ist I had trouble getting into game and finally I figured it out I didn't know how to play it. There are some black squares which I assume should be filled with some content.
wine 8.7.
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #30 from joaopa jeremielapuree@yahoo.fr --- That's not related with this bug report. Please don't polluate this report with other bugs.
https://bugs.winehq.org/show_bug.cgi?id=9378
--- Comment #31 from Kevin2k gbroers@quicknet.nl --- All Current Combat Mission games startup, run and display fine for me, with Wine 8.7.something. That is the the whole series of games at their current update-level. Four of them World War 2 themed, and three of them post-WW2. The developers call it CMx2 at Engine 4 update level. I am using a Radeon HD7750 card with AMD GPU driver.
Thanks @Paul Gofman
https://bugs.winehq.org/show_bug.cgi?id=9378
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |01c59b3f18dca1f4db42425eda2 | |f95296da61a63 Status|NEW |RESOLVED CC| |damjan.jov@gmail.com Resolution|--- |FIXED Keywords| |patch
--- Comment #32 from Damjan Jovanovic damjan.jov@gmail.com --- Resolving fixed by popular opinion.
Thank you everyone.
https://bugs.winehq.org/show_bug.cgi?id=9378
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #33 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.12.
https://bugs.winehq.org/show_bug.cgi?id=9378
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0.x