[GZDoom 2.2pre1993 Bug] Crash just before the first screen

Bugs that have been resolved.

Moderator: Graf Zahl

drako
Posts: 18
Joined: Wed Aug 10, 2016 19:28

[GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by drako »

1. Builds 1905 and earlier run fine (both x32 and x64)
2. After executing gzdoom.exe resolution changes but no initial screen of doom appears. What appears is the crash report window.
3. I attach crash reports
CrashReport_x32_vAug10.zip
(15.02 KiB) Downloaded 52 times
CrashReport_x64_vAug10.zip
(16.08 KiB) Downloaded 46 times
CrashReport_vAug062016.zip
(15.14 KiB) Downloaded 50 times
and dxdiag info
DxDiag.zip
(12.89 KiB) Downloaded 47 times
.
dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by dpJudas »

Do we have the pdb files for the pre builds?
drako
Posts: 18
Joined: Wed Aug 10, 2016 19:28

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by drako »

The problem is still present in the newest build 2013. Something goes very wrong:

Code: C0000005 (Access Violation - tried to write address 00000000)
Address: 00000000
Flags: 00000000

Windows NT 6.0 Build 6002 Service Pack 2

GS=002b FS=0053 ES=002b DS=002b
EAX=002ff5e8 EBX=04789a8c ECX=047899f8 EDX=00000001
ESI=00000001 EDI=047899f8
EBP=002ff5f4 EIP=00000000 ESP=002ff5d4 CS=0023 SS=002b
EFlags=00010282
CF- PF- AF- ZF- SF+ TF- IF+ DF- OF- NT- RF+ VM- AC- VI- VP-

FPU State:
ControlWord=027f StatusWord=0122 TagWord=ffff
ErrorOffset=10899da2
ErrorSelector=00000023
DataOffset=002ff548
DataSelector=0000002b

MM0=a000000000000000
MM1=f000000000000000
MM2=8000000000000000
MM3=0000000000000000
MM4=0000002b00000000
MM5=00000001047899f8
MM6=002ff5f4002ff5e8
MM7=0000002b002ff5d4

Running threads:
00001630 at 00000000*
000010dc
00001384
0000162c
00000e90

Loaded modules:
00F20000 - 015E8FFF gzdoom.exe
776D0000 - 7782FFFF ntdll.dll
75EF0000 - 75FFFFFF kernel32.dll
75720000 - 757EFFFF USER32.dll
75980000 - 75A0FFFF GDI32.dll
75E20000 - 75EE6FFF ADVAPI32.dll
755D0000 - 756BFFFF RPCRT4.dll
75200000 - 7525FFFF Secur32.dll
76000000 - 76B10FFF SHELL32.dll
75A60000 - 75B09FFF msvcrt.dll
75560000 - 755B8FFF SHLWAPI.dll
76BF0000 - 76D34FFF ole32.dll
752F0000 - 7537DFFF OLEAUT32.dll
75870000 - 758E2FFF COMDLG32.dll
74BA0000 - 74D3DFFF COMCTL32.dll
75080000 - 75086FFF WSOCK32.dll
75DF0000 - 75E1CFFF WS2_32.dll
755C0000 - 755C5FFF NSI.dll
730C0000 - 730F1FFF WINMM.dll
73080000 - 730BDFFF OLEACC.dll
73490000 - 7355AFFF OPENGL32.dll
73600000 - 73622FFF GLU32.dll
733A0000 - 73484FFF DDRAW.dll
735F0000 - 735F5FFF DCIMAN32.dll
753C0000 - 75549FFF SETUPAPI.dll
71EC0000 - 71ECBFFF dwmapi.dll
756C0000 - 7571FFFF IMM32.DLL
76B20000 - 76BE7FFF MSCTF.dll
753B0000 - 753B8FFF LPK.DLL
757F0000 - 7586CFFF USP10.dll
702C0000 - 702C2FFF api-ms-win-core-synch-l1-2-0.dll
73570000 - 735E3FFF riched20.dll
729A0000 - 72A1FFFF UxTheme.dll
74D60000 - 74D69FFF wtsapi32.dll
745C0000 - 745E4FFF WINSTA.dll
6B800000 - 6B8CBFFF openal32.dll
758F0000 - 75973FFF CLBCatQ.DLL
6F480000 - 6F4A7FFF MMDevApi.dll
67F40000 - 67FAFFFF dsound.dll
72390000 - 723A9FFF POWRPROF.dll
6F380000 - 6F3A0FFF AUDIOSES.DLL
6EB20000 - 6EB85FFF audioeng.dll
75550000 - 75556FFF PSAPI.DLL
74420000 - 74426FFF AVRT.dll
74FE0000 - 7500CFFF WINTRUST.dll
74AA0000 - 74B94FFF CRYPT32.dll
75060000 - 75071FFF MSASN1.dll
75040000 - 7505DFFF USERENV.dll
75380000 - 753A9FFF imagehlp.dll
6E9E0000 - 6EA0EFFF wdmaud.drv
750B0000 - 750B3FFF ksuser.dll
73560000 - 73568FFF msacm32.drv
722E0000 - 722F3FFF MSACM32.dll
73050000 - 73056FFF midimap.dll
64AF0000 - 64C69FFF fmodex.dll
6D670000 - 6D6A2FFF dinput8.dll
723C0000 - 723C8FFF HID.DLL
10000000 - 10AFEFFF ig4icd32.dll
722C0000 - 722C5FFF IconCodecService.dll
67E40000 - 67F33FFF WindowsCodecs.dll

Bytes near EIP:
FFFFFFF0: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
00000000: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
00000010: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Possible call trace:
00000000 BOOM
00fe8f29 call [015100ec]
012CFB23 jmp 0121EE70
00FE977B call 00FE8F00
00FE9A4E call 00FE96F0
00FE7857 call 00FE9970
0102AFF9 call 00FE7830
0102b7c7 call [eax+0x90]
0102AE81 call 0102B6C0
012cec4a
00F4E34F call 0102ADC0
012cf65b
00f3c8fe call [eax+0xc]
0113FA33 call 00F3C8A0
012CACF3 jmp 00F4DF00
00F4EF51 call 0113FA20
012cad2f
011400C4 call eax
0105C352 call 01140060
012d0011
01000b1e
01000000
00F4B251 call 0121F290
010101a8
0121ee87 call [012e9140]
01046834 call 0121EE70
012CFB23 jmp 0121EE70
00F4A1E5 call 010467C0
00F4A21F call 0128AB4F
01003220
0108E00D call 012B6734
010087B6 call 0108DFD0
01046CD1 call 01008780
012CF394 jmp 011DA1F0
01045741 call 01046C10
012cf31f
00F48008 call 0105B610
00f483b0
012ca8eb
00f4923a call [012e91ac]
00F49260 call 00F47B40
0128B74E call 00F491F0
012a38e0
0128b7c5
0128b7c5

Stack Contents:
002FF5D4: 00fe8f2f 00008d40 a7399b23 00000001 /···@···#·9·····
002FF5E4: 047899f8 002ff670 012cfb28 ffffffff ··x·p·/·(·,·····
002FF5F4: 00000002 00fe9780 00000000 047899f8 ··············x·
002FF604: 00000280 000001e0 00000001 00fe9a53 ············S···
002FF614: 00000280 000001e0 04bcc0f0 002ff67c ············|·/·
002FF624: 04bcb648 049510b8 000084c0 00fe785c H···········\x··
002FF634: 00000000 00000000 00000000 000001e0 ················
002FF644: 04bcb648 0102affe 0102b7cd 00000000 H···············
002FF654: 01532750 0102ae86 a73998ab 00000280 P'S·······9·····
002FF664: 0323fc00 000001e0 04bcb648 002ff6ac ··#·····H·····/·
002FF674: 012cec4a 00000000 002ff6b8 00f4e354 J·,·······/·T···
002FF684: 00010001 00000280 000001e0 00000020 ············ ···
002FF694: 0000004b 049510b8 a739986f 002ff700 K·······o·9···/·
002FF6A4: 002ff734 002ff6fc 002ff710 012cf65b 4·/···/···/·[·,·
002FF6B4: 00000000 002ff71c 00f3c901 04bcb648 ······/·····H···
002FF6C4: 000001e0 a7399801 00000000 00000000 ······9·········
002FF6D4: 002ff734 007017c0 a7399801 0113fa38 4·/···p···9·8···
002FF6E4: 002ff6fc 002ff700 00000000 002ff710 ··/···/·······/·
002FF6F4: 012cacf8 00f4ef56 00000280 000001e0 ··,·V···········
002FF704: 00000020 a73999cb 0323fc00 002ff78c ·····9···#···/·
002FF714: 012cad2f ffffffff 002ff798 011400c6 /·,·······/·····
002FF724: 00000280 000001e0 00000008 000001e0 ················
002FF734: 00000280 3f800000 0105c357 a739994f ·······?W···O·9·
002FF744: 00000165 000001f8 00000140 00000000 e·······@·······
002FF754: 00702f48 00000000 0137b824 00000000 H/p·····$·7·····
002FF764: 00710e08 02fb1d74 646e6957 2073776f ··q·t···Windows
002FF774: 0137b824 00000000 00000000 00000000 $·7·············
002FF784: 00000000 00000000 002ffbfc 012d0011 ··········/···-·
002FF794: 00000003 61502065 32206b63 ffff000a ····e Pack 2····
002FF7A4: 776fb001 77701858 00000001 7771e54e ··owX·pw····N·qw
002FF7B4: 7770183e 74406f69 006f6dd0 006f6dd4 >·pwio@t·mo··mo·
002FF7C4: 00000000 002ffaa0 00000000 02080000 ······/·········
002FF7D4: 002ff7fc 002ffa70 002ff810 00000000 ··/·p·/···/·····
002FF7E4: 00000000 06300035 00000000 00000000 ····5·0·········
002FF7F4: 006f6dd4 002ffa58 00000000 006800c4 ·mo·X·/·······h·
002FF804: 00687058 00000178 006f6dc8 00680000 Xph·x····mo···h·
002FF814: 00680000 006f6dc8 00000000 0000000a ··h··mo·········
002FF824: 00660908 00660000 002ff920 00000178 ··f···f· ·/·x···
002FF834: 00680000 00000000 002ff920 00001ed1 ··h····· ·/·····
002FF844: 002ff88c 77700356 00660958 0000007f ··/·V·pwX·f····
002FF854: 00660960 006600c4 0000007f 00000010 `·f···f········
002FF864: 00660908 0000000a 006600c4 006600c4 ··f·······f···f·
002FF874: 00660928 00770000 0000007f 000003f8 (·f···w········
002FF884: 0000007f 00001ed1 00000010 0000000a ···············
002FF894: 00660908 002ff9ac 776fed82 00660130 ··f···/···ow0·f·
002FF8A4: 776fec80 74406ce5 00660000 00000048 ··ow·l@t··f·H···
002FF8B4: 00660910 00200020 00650053 00760072 ··f· · ·S·e·r·v·
002FF8C4: 00000000 00200065 00001ed8 002ff9c4 ····e· ·······/·
002FF8D4: 00000003 00660000 00660908 002ff9c4 ······f···f···/·
002FF8E4: 776fa83d 777333b1 74406c8d 00660000 =·ow·3sw·l@t··f·
002FF8F4: 00000000 00660194 00660148 00660000 ······f·H·f···f·
002FF904: 01000b1e 01000000 00680000 00660148 ··········h·H·f·
002FF914: 002ffa04 00001ed8 002ffa00 00660148 ··/·······/·H·f·
002FF924: 00660000 00660910 00000003 776fae10 ··f···f·······ow
002FF934: 74406ced 00680000 00000000 006801c4 ·l@t··h·······h·
002FF944: 0000000a 006608bc 00bf0023 00000010 ······f·#·······
002FF954: c5001edb 006600c4 00000000 00660870 ······f·····p·f·
002FF964: 00660000 0b01000a 00b60024 00000010 ··f·····$·······
002FF974: 00000000 0068ad78 0069b9a8 00080000 ····x·h···i·····
002FF984: 00660000 00000000 002ffa7c 776fa967 ··f·····|·/·g·ow
002FF994: 00660130 776faabd 74406f35 00000000 0·f···ow5o@t····
002FF9A4: 00660000 00660878 00000000 00000040 ··f·x·f·····@···
002FF9B4: 00000140 00000048 0066091c 00000048 @···H·····f·H···
002FF9C4: 00660960 00660148 00000010 00660000 `·f·H·f·······f·
002FF9D4: 00660148 00000002 00000010 00660148 H·f·········H·f·
002FF9E4: cf001ed1 01319070 cf001ed1 00000013 ····p·1·········
002FF9F4: 00000000 01303cd8 00000003 00000000 ·····<0·········
002FFA04: 00000013 00000000 00000048 cf001ed1 ········H·······
002FFA14: 00000013 00680000 00660960 00000140 ······h·`·f·@···
002FFA24: 006a05a8 002ffa3c 00000013 00680000 ··j·<·/·······h·
002FFA34: 00000000 00000000 002ffa74 00660148 ········t·/·H·f·
002FFA44: 006f3438 00660878 00660960 00f4b256 84o·x·f·`·f·V···
002FFA54: 002ffa8c 00000000 00000098 010101a8 ··/·············
002FFA64: 002ff99c 002ffa90 002ffad0 7778436a ··/···/···/·jCxw
002FFA74: 03000581 fffffffe 776faabd 776fa5b4 ··········ow··ow
002FFA84: 00000000 00660878 00000039 00000165 ····x·f·9···e···
002FFA94: 00000140 002ffaac 75f74531 00660000 @·····/·1E·u··f·
002FFAA4: 00000000 00660870 002ffadc 0121ee8d ····p·f···/···!·
002FFAB4: 00660000 00000000 00660878 01046839 ··f·····x·f·9h··
002FFAC4: a739940b 00000006 00660884 002ffbfc ··9·······f···/·
002FFAD4: 012cfb28 00000000 002ffc08 00f4a1ea (·,·······/·····
002FFAE4: 012ee9ac 012ee90c 00000006 00000000 ··.···.·········
002FFAF4: 00001772 002ffb14 00f4a224 0000009c r·····/·$·······
002FFB04: 00000006 00000000 00001772 00000002 ········r·······
002FFB14: 76726553 20656369 6b636150 01003220 Service Pack 2··
002FFB24: 00680000 00000000 006a0560 002ffb74 ··h·····`·j·t·/·
002FFB34: 0108e012 006a0560 006f3450 010087bb ····`·j·P4o·····
002FFB44: 00000000 00000040 006f3438 01046cd6 ····@···84o··l··
002FFB54: 002ffb64 a73995a3 00000008 006f3438 d·/···9·····84o·
002FFB64: 00000000 002ffb84 012cf399 00000003 ······/···,·····
002FFB74: 002ffb90 01045746 a7399547 000001f8 ··/·FW··G·9·····
002FFB84: 002ffbfc 012cf31f 00000000 002ffc08 ··/···,·······/·
002FFB94: 00000002 a739994f 002ffc08 00f4800d ····O·9···/·····
002FFBA4: a73992df 00f20000 015a1180 fffde000 ··9·······Z·····
002FFBB4: 00000001 000f4240 00000000 00000000 ····@B··········
002FFBC4: 00f483b0 00000000 00000000 00f20000 ················
002FFBD4: 132203e3 00010003 00000000 00000000 ··"·············
002FFBE4: 012ee528 75ef0000 0130dcd4 0066084c (·.····u··0·L·f·
002FFBF4: 00f20000 002ffba4 002ffd98 012ca8eb ······/···/···,·
002FFC04: 00000000 00000000 00000003 006c2e84 ·············.l·
002FFC14: 00000392 00000000 002ffc90 b90001b8 ··········/·····
002FFC24: 00000312 00000000 006d9228 75f036e0 ········(·m··6·u
002FFC34: a40f1ae9 00681834 00646463 00000000 ····4·h·cdd·····
002FFC44: 00000000 00000000 00000000 00000000 ················
002FFC54: 00000000 00000000 04010401 0000007c ············|···
002FFC64: 007e00a0 00000000 00000000 00000000 ··~·············
002FFC74: 00000000 00000000 00000000 00000000 ················
002FFC84: 00000000 00000000 00000000 00000000 ················
002FFC94: 00000000 00000000 00000000 00000000 ················
002FFCA4: 00000020 00000500 00000400 00000000 ···············
002FFCB4: 0000004b 00000000 00000000 00000000 K···············
002FFCC4: 00000000 00000000 00000000 00000000 ················
002FFCD4: 00000000 00000000 00000000 000001f8 ················
002FFCE4: 00000165 4f445a47 67204d4f 70322e32 e···GZDOOM g2.2p
002FFCF4: 322d6572 2d333130 38653467 61363961 re-2013-g4e8a96a
002FFD04: 32282020 2d363130 312d3830 39302034 (2016-08-14 09
002FFD14: 3a34313a 2b203632 30303230 002f0029 :14:26 +0200)·/·
002FFD24: fffddc00 002ffd98 75faff5a d1d0b681 ······/·Z··u····
002FFD34: fffffffe 75f05156 00f49240 ffffffff ····VQ·u@·······
002FFD44: 00000000 ffffffff a73992df 002ffda8 ··········9···/·
002FFD54: 00f49265 00f20000 00000000 0128b753 e···········S·(·
002FFD64: 00f20000 00000000 006869fa 00000001 ·········ih·····
002FFD74: a739937f 00000000 00000000 fffde000 ·9·············
002FFD84: 002ffd00 c0000005 00000000 002ffd74 ··/·········t·/·
002FFD94: 002ff1b0 002ffde4 012a38e0 a62026c7 ··/···/··8*··& ·
002FFDA4: 00000000 002ffdb4 75f7f964 fffde000 ······/·d··u····
002FFDB4: 002ffdf4 7774e369 fffde000 744068bd ··/·i·tw·····h@t
002FFDC4: 00000000 00000000 fffde000 c0000005 ················
002FFDD4: 75f8d953 75f8d953 002ffdc0 002ff1b8 S··uS··u··/···/·
002FFDE4: ffffffff 7778436a 030018d9 00000000 ····jCxw········
002FFDF4: 002ffe0c 7774e57b 0128b7c5 fffde000 ··/·{·tw··(·····
002FFE04: 00000000 00000000 00000000 00000000 ················
002FFE14: 0128b7c5 fffde000 00000000 00000000 ··(·············
002FFE24: 00000000 00000000 00000000 00000000 ················
002FFE34: 00000000 00000000 00000000 00000000 ················
002FFE44: 00000000 00000000 00000000 00000000 ················
002FFE54: 00000000 00000000 00000000 00000000 ················
002FFE64: 00000000 00000000 00000000 00000000 ················
002FFE74: 00000000 00000000 00000000 00000000 ················
002FFE84: 00000000 00000000 00000000 00000000 ················
002FFE94: 00000000 00000000 00000000 00000000 ················
002FFEA4: 00000000 00000000 00000000 00000000 ················
002FFEB4: 00000000 00000000 00000000 00000000 ················
002FFEC4: 00000000 00000000 00000000 00000000 ················
002FFED4: 00000000 00000000 00000000 00000000 ················
002FFEE4: 00000000 00000000 00000000 00000000 ················
002FFEF4: 00000000 00000000 00000000 00000000 ················
002FFF04: 00000000 00000000 00000000 00000000 ················
002FFF14: 00000000 00000000 00000000 00000000 ················
002FFF24: 00000000 00000000 00000000 00000000 ················
002FFF34: 00000000 00000000 00000000 00000000 ················
002FFF44: 00000000 00000000 00000000 00000000 ················
002FFF54: 00000000 00000000 00000000 00000000 ················
002FFF64: 00000000 00000000 00000000 00000000 ················
002FFF74: 00000000 00000000 00000000 00000000 ················
002FFF84: 00000000 00000000 00000000 00000000 ················
002FFF94: 00000000 00000000 00000000 00000000 ················
002FFFA4: 00000000 00000000 00000000 00000000 ················
002FFFB4: 00000000 00000000 00000000 00000000 ················
002FFFC4: 00000000 00000000 00000000 00000000 ················
002FFFD4: 00000000 00000000 00000000 00000000 ················
002FFFE4: 00000000 00000000 00000000 00000000 ················
002FFFF4: 00000000 00000000 00000000 ············
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by Graf Zahl »

Looks like it's trying to call an OpenGL function that does not exist on your system.
drako
Posts: 18
Joined: Wed Aug 10, 2016 19:28

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by drako »

That may be the case - my card supports OpenGL 2.1 only.
drako
Posts: 18
Joined: Wed Aug 10, 2016 19:28

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by drako »

Still the same problem in pre-build 2.2 2052. Is it the case that gzdoom again requires OpenGL 3.0? I hope you will be able to keep compatibility with openGL 2.1.
User avatar
NeoHippo
Posts: 407
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by NeoHippo »

drako wrote:Still the same problem in pre-build 2.2 2052. Is it the case that gzdoom again requires OpenGL 3.0? I hope you will be able to keep compatibility with openGL 2.1.
Those who have a graphic card which supports OpenGL 2.1, but not 3.0 and up, should take note of this previous post
http://forum.drdteam.org/viewtopic.php? ... 366#p58366
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by Graf Zahl »

Why should people take notice of that? If there's problems with the current master on GL 2.x they need to get fixed. The fact that the last official release still had an 1.x branch is irrelevant, that code has long been retired.
drako
Posts: 18
Joined: Wed Aug 10, 2016 19:28

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by drako »

I investigated the problem a little bit and I discovered that the function glCheckFramebufferStatus does not exist on my system and that one is the function which craches gzdoom starting from prebuild 2.2 1958 from August 06, 2016. The prebuild 2.2 1905 from Jul 30, 2016 runs just fine on my system. It seems glCheckFramebufferStatus has never been callled in that build. Interestingly, on another laptop which also only supports OpenGL 2.1 all the newest prebuilds run just fine.
dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by dpJudas »

Thanks for tracking this down.

Looking at the log from your original post I can see that your card supports EXT_framebuffer_object (2.x) instead of ARB_framebuffer_object (3.0+). Apparently the OpenGL binding code doesn't fall back to the older extension. I'll add a fix for this tomorrow. The other laptop probably does support the newer extension. :)
dpJudas
Developer
Developer
Posts: 798
Joined: Sat Jul 23, 2016 7:53

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by dpJudas »

Seems my assumption was slightly wrong. It does fall back.

The problem is that glCheckFramebufferStatus is missing at https://github.com/coelckers/gzdoom/blo ... e.cpp#L294. Probably easier for someone to just add it than me doing a full PR for it.
drako
Posts: 18
Joined: Wed Aug 10, 2016 19:28

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by drako »

Thanks for figuring this out.

BTW. Is it difficult to set up a compile environment for gzdoom on my local machine (windows Vista/7 x64)? Can you recommend some online tutorial for that?
Blue Shadow
Global Moderator
Global Moderator
Posts: 308
Joined: Sun Aug 29, 2010 6:09

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by Blue Shadow »

drako wrote:Can you recommend some online tutorial for that?
http://zdoom.org/wiki/Compile_ZDoom_on_Windows
(yes, it's for ZDoom, but compiling GZDoom is pretty much the same).
drako
Posts: 18
Joined: Wed Aug 10, 2016 19:28

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by drako »

dpJudas wrote:Seems my assumption was slightly wrong. It does fall back.

The problem is that glCheckFramebufferStatus is missing at https://github.com/coelckers/gzdoom/blo ... e.cpp#L294. Probably easier for someone to just add it than me doing a full PR for it.
According to GiT activity log that update have been made. However, the newest build (2090, aug 27, 2016) still crashes in the same way as previously (call [0] ).

Update. Take a look at the screenshot.
call0bug.jpg
call0bug.jpg (268.58 KiB) Viewed 1182 times
When I debugged the Aug 06, 2016 build that memory location was full of non-zero addresses of Opengl functions. This time the gzdoom crashes at the first access to that memory location (memory breakpoint at 017029d0). It seems that the table of addressees of OpenGL functions is not initialized at all. That is very strange.

Update2. I investigated the problem further. The last build which initializes this portion of memory is 2025 from Aug 19, 2016. Take a look at the screenshot.
call0bugAug19.jpg
call0bugAug19.jpg (292.75 KiB) Viewed 1177 times


It seems to me that the following commit from Aug 21, 2016 causes that problem https://github.com/coelckers/gzdoom/com ... 702511ff53 (maybe that line of code should be more less like that : if (gl.glslversion < 3) glEnable(GL_TEXTURE_2D); )


I will try to confirm that. (I have to work with a debugger because I do not have a compile environment set up).
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: [GZDoom 2.2pre1993 Bug] Crash just before the first screen

Post by Graf Zahl »

Normally it should not matter because if shaders are used, GL_TEXTURE_2D has no meaning anymore. Then again, who knows what those ancient drivers were thinking. Keep in mind, though, that GL 2.x support at the moment is still a bit shaky with all the new additions. There's definitely some need for testing here.
Locked

Return to “Closed Bugs”