Opened 19 years ago

Closed 18 years ago

Last modified 6 years ago

#2514 closed defect (invalid)

ALL: Crash in 3x fullscreen with 320x200 games

Reported by: SF/clemty Owned by: sev-
Priority: normal Component: Port: Win32
Version: Keywords:
Cc: Game:

Description

ScummVM 0.8.1, 0.8.2 under WinXP 32bit FOTAQ 3x or hq3x (with aspect ratio correction)

ScummVM will crash, last and only error message given:

WARNING: SDL_SetVideoMode says we can't switch to that mode!

1) shouldn't that be "ERROR:" if it crashes; 2) why not continue with windowed mode when it says it can't switch?

this only happens with 3x with aspect ratio correction, without aspect ration correction it works.

Ticket imported from: #1441930. Ticket imported from: bugs/2514.

Change History (20)

comment:1 by SF/clemty, 19 years ago

Component: --Unset--

comment:2 by fingolfin, 19 years ago

Re 1: Strictly spoken, yes, it should be an error, because it explicitly *quits*. If it was a regular crash (termination due to a sequence of events not forseen by the developers -- something which is not the case here), then the answer would be "no" by definition :-). But I guess you still mean the right thing, we just use different definitions of the term "crash" :-).

2) That's a feature that is simply (not yet?) implemented, and implementing it is rather tedious, and apparently nobody so far was interested enough to work on it.

Anyway, in 3x+ASR mode, in a 320x200 game, ScummVM tries to allocate a screen surface of size 960x720. Normally, this will cause SDL to switch the vide mode to 1024x768 (at 16 bits). But that can fail, e.g. when your system doesn't support such a video mode.

Not sure if you are requesting help for this, or just wanted to ask questions 1 & 2?

comment:3 by fingolfin, 19 years ago

Status: newpending

comment:4 by SF/clemty, 19 years ago

1) if the program exits and I don't tell it to I call it a "crash"

it did not try to switch to 1024x768 for me - my 2 month old LCD runs with 1284x1024 right now, but windows doesn't seem to have a problem with 1024x768 either.

and of course I want this to be fixed, else I wouldn't post it here!

comment:5 by SF/clemty, 19 years ago

Status: pendingnew

comment:6 by fingolfin, 19 years ago

Well, we use different definitions of "crash", obviously. Not that important, though.

And "of course" you want it fixed? Hmmm, I think we both are reading your original report very diffferently *g*. Maybe next time explicitly state what you want, and leave out the guesses/questions about what we should or shouldn't do :-).

Anyway: Please give more details: * Does it crash with other games, too? Asked the other way around, are there 320x200 / 320x240 games that do work correctly for you? * Any details on your graphics setup would be appreciated (graphics card, drivers, what kind of screen you have).

comment:7 by fingolfin, 19 years ago

Ah, sorry, missed that you said you have an LCD screen -- I am not quite sure how to interpret your statement, though, did you actually test 1024x768 or not? In particular, did you try it at 16 bpp (of course this *should* work, but it never hurts to exlucde as many potential error sources as possible).

comment:8 by SF/clemty, 19 years ago

ScummVM (daily build) XP crashes with BASS, FT and FOTAQ. I set XP to 1024x768x16bit and 1024x768x32bit and XP works with those resolutions

comment:9 by SF/clemty, 19 years ago

to rephrase, no 320x200 game with aspect ratio correction and 3x seems to work for me; gfx chip is NVIDIA 6800, system is an Athlon64 3200+ with 1gig of RAM

comment:10 by fingolfin, 19 years ago

Summary: FOTAQ, ALL: ScummVM crashes in 3x fullscreenALL: Crash in 3x fullscreen with 320x200 games

comment:11 by fingolfin, 19 years ago

So it's not FOTAQ specific, hmm.

In case you can compile ScummVM yourself, could you try building latest SVN (alternatively, try a daily build tomorrow or so). I just added some code to (potentially) add some more information to the error you are getting. Maybe that'll help us to narrow down the issue.

comment:12 by fingolfin, 19 years ago

Status: newpending

comment:13 by fingolfin, 19 years ago

What is the status of this item?

comment:14 by SF/clemty, 19 years ago

Daily build from scummvm.org (Win32, on Athlon64) (Apr 22 2006) gives me:

C:\Programme\ScummVM>scummvm Looking for queen Trying to start game 'Flight of the Amazon Queen' WARNING: SDL_SetVideoMode says we can't switch to that mode (No video mode large enough for 960x720)!

C:\Programme\ScummVM>

same applies when trying BASS instead of the FOTAQ interview demo

comment:15 by SF/clemty, 19 years ago

Status: pendingnew

comment:16 by fingolfin, 19 years ago

Aha, so for some reason, SDL fails to switch to a suitable video mode. Very odd. Normally, when such unusual resolutions are requested, SDL will search through all available video modes, and then pick the next bigger video mode. I.e. in this case it might have selected a 1024x768 mode, if available. No idea why it wouldn't do that. Maybe a bug in SDL, maybe a video card driver bug...

comment:17 by sev-, 19 years ago

What is the status of this item?

comment:18 by sev-, 18 years ago

Clemmy says that now it works for him. Apparently some dirver/OS problem.

comment:19 by sev-, 18 years ago

Owner: set to sev-
Resolution: invalid
Status: newclosed

comment:20 by digitall, 6 years ago

Component: --Unset--Port: Win32
Note: See TracTickets for help on using tickets.