VOGONS


First post, by TheoGeek

User metadata
Rank Newbie
Rank
Newbie

Interesting issue that cropped up recently, and I have no idea why. DOSBox will crash if ALL of the following are true:

1. Rendering engine set to opengl
2. start in fullscreen
3. any advanced scaling mode

If I want to use opengl, I have to start in windowed mode and go fullscreen by pressing ALT-ENTER, but that is highly annoying.

Any ideas?

TIA!

Reply 1 of 7, by robertmo

User metadata
Rank l33t++
Rank
l33t++

update your gfx drivers
what is your dosbox version and where have you got it from?
what is your Operating System?
what are your PC specifications?
post content of "DOSBox Status Window"
enclose your dosbox's config file

Reply 2 of 7, by TheoGeek

User metadata
Rank Newbie
Rank
Newbie

update your gfx drivers

I always keep my graphics drivers current.

what is your dosbox version and where have you got it from?

0.73 from the latest D-Fend Reloaded installation

what is your Operating System?

Windows 7 x64

what are your PC specifications?

Athlon 64 X2 6000+ 3.11 GHz Dual core
8GB RAM
Radeon HD 3870

post content of "DOSBox Status Window"

This is from the stdout.txt file:
DOSBox version 0.73
Copyright 2002-2009 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file C:\Users\Jeff\AppData\Local\Temp\DOSBOX.CONF
MIDI:Opened device:win32
DOS keyboard layout loaded with main language code US for layout US
SHELL:Redirect output to nul
Exit to error: Could not set fullscreen video mode 1280x1024-32: DirectDraw2::CreateSurface(PRIMARY): Undefined error!

Iteresting that it is using DirectDraw2 even though I specified opengl.

enclose your dosbox's config file

[sdl]
fullscreen=true
fulldouble=false
fullresolution=0x0
windowresolution=original
output=opengl
autolock=true
sensitivity=100
waitonerror=true
usecancodes=true
priority=higher,normal
mapperfile=C:\Users\Jeff\D-Fend Reloaded\mapper.txt

[dosbox]
machine=svga_s3
captures=C:\Users\Jeff\D-Fend Reloaded\Capture\Master of Orion\
memsize=16

[render]
frameskip=0
aspect=false
scaler=tv2x

[cpu]
core=dynamic
cputype=auto
cycles=fixed 10000
cycleup=500
cycledown=20

[mixer]
nosound=false
rate=44100
blocksize=2048
prebuffer=10

[midi]
mpu401=intelligent
mididevice=default
midiconfig=

[sblaster]
sbtype=sb16
sbbase=220
irq=7
dma=1
hdma=5
sbmixer=true
oplmode=auto
oplrate=44100
oplemu=default

[gus]
gus=true
gusrate=22050
gusbase=240
gusirq=5
gusdma=1
ultradir=C:\ULTRASND

[speaker]
pcspeaker=true
pcrate=44100
tandy=auto
tandyrate=44100
disney=true

[dos]
xms=true
ems=true
umb=true
keyboardlayout=US

[joystick]
joysticktype=none
timed=true
autofire=false
swap34=false
buttonwrap=false

[serial]
serial1=dummy
serial2=dummy
serial3=disabled
serial4=disabled

[autoexec]
@echo off
SET PATH=Z:\
keyb US 437
mount C "D:\DOS\VIRTUA~1\"
C:
cd\
cd \MOO
Z:\config.com -securemode > nul
ORION.EXE
exit

Thanks for looking!

Reply 3 of 7, by robertmo

User metadata
Rank l33t++
Rank
l33t++

get dosbox from www.dosbox.com and don't use dfend

Reply 4 of 7, by TheoGeek

User metadata
Rank Newbie
Rank
Newbie

>> get dosbox from www.dosbox.com and don't use dfend

The DOSBox that comes with D-Fend is the same that is downloaded from dosbox.com - 0.73. But I tried it anyway - same problem. Starting fullscreen with opengl and any advanced scaling causes a crash. Starting windowed then fullscreening by pressing "ALT-ENTER" results in no crash. Starting fullscreen with no or "normal" scalers is fine. Startig DOSBox fullscreen and typing in the commands to run the game at the command prompt crashes. Starting DOSBox windowed and manually typing in the commands at the command prompt works fine.

There is an issue with starting fullscreen using opengl and advanced scalers. The workaround, of course, is to use direct draw which is fine, but the opengl thing is an interesting error.

It could very well be my ATI Catalyst drivers - anybody else experiencing this issue?

Reply 5 of 7, by robertmo

User metadata
Rank l33t++
Rank
l33t++

does it happen with fullresolution=original too? what is your desktop resolution?

Reply 6 of 7, by TheoGeek

User metadata
Rank Newbie
Rank
Newbie

>> does it happen with fullresolution=original too?
Yes

>> what is your desktop resolution?
1280x1024. I did try changing this setting to lower resolutions to no avail.

It is interesting that this is only an issue with the "advanced" scalers, and only when starting in fullscreen, and only with "opengl". Another thing I tried is that in D-Fend, there is an SDL videodriver option. When I set that to "Win DIB" (from "Direct X"), the game does not crash, but there is no video. The sounds work, and it responds to mouse clicks, but there is no video.

At this point, it is really just a "puzzle" of sorts. It works just fine with ddraw, but I'd like to figure out this "opengl" thing. I have even gone as far as to download a different sdl.dll file, but it didn't change any behavior.

Reply 7 of 7, by Glurak

User metadata
Rank Newbie
Rank
Newbie

Sorry for bring this thread form the graveyard. But i running atm into the same Problem

Starting with OpenGL and Fullscreen results in a crash after starting any game.

But Windowed works fine and changing to fullscreen after that but the game then dont get scaled to fullscreen