Opened 21 months ago

Closed 2 weeks ago

Last modified 2 weeks ago

#14258 closed defect (fixed)

AGS: Dreams in the Witch House: character briefly appearing after logo

Reported by: antoniou79 Owned by: tag2015
Priority: low Component: Engine: AGS
Version: Keywords: Dreams in the Witch House
Cc: Game:

Description (last modified by antoniou79)

I am testing with ScummVM 2.8git (latest, built locally from master HEAD) on Windows 10 x64.

The version of the game is from GOG, current version 1.02, English language.

The issues that I have so far encountered with the game:

  1. During credits (accessible from the game's start menu) the game would randomly crash and also randomly display white-ish artifacts at the bottom of the screen while the text crawl is ongoing.
  2. Switching back and forth from Credits view to Start Menu view would also cause white-ish artifacts to be dispayed on screen. A crash could randomly happen in this screen as well. This might be connected to the previous issue though and have the same cause.
  3. At least some font glyphs render very different than when playing the game as standalone (from it's executable, without ScummVM). Like the capital "S" seems to be rendered as a small case "s". This is the most striking to me, but other glyphs are different too. I will be attaching screenshots for this.
  4. Some text overlaps out of its "container" and it does not look as it's supposed to be. In the "standalone" launch the text fits in its containers properly. I will be attaching screenshots for this too.
  5. This is a minor glitch, but it is different than what the "standalone" launch of the game does. Sometimes, when launching the game, after the first logo animation for "Atom Brain Games", on ScummVM there is a brief glimpse of the main character. On "standalone" launch this glimpse is not there, and it's a smooth fade out/fade in to the Start menu screen. (Maybe this is due to the debug mode being really slow, in which case it's probably not a serious bug)

When testing with my MinGW x64 builds for cases 1 and 2, ScummVM would either abruptly exit to desktop with no message at all or crash with a "Segmentation fault".

When debugging with Visual Studio, at the point when the game crashed, the code execution was either:

  • In ags/lib/allegro/gfx.cpp, putpixel(), line 248-249, "case 4", and the VS message was "Exception thrown at 0x00007FF652203AF3 in scummvm.exe: 0xC0000005: Access violation writing location 0x0000018FDFEACD34." This was the most often one I got (probably the address locations would vary -- I didn't notice). When this happens, variable y has a value of "-1".
  • In ags/engine/media/audio/sound.cpp, my_load_static_ogg(), lines 74-75. I didn't get this more than once, so it could be a side effect of the invalid memory access of the previous issue.

What seems to have solved issue 1 (and possibly issue 2, if they are connected).

Since this "fix", I did not get issues 1 nor 2. I could create a PR for this, but maybe someone more familiar with the engine could do it -- even without a PR. It's quite a simple fix, and it seems that the code for it in the AGS source tree is from a really old commit (11 years ago).

Attachments (11)

scummvm-dreamswitchhouse-00000.png (12.4 KB ) - added by antoniou79 21 months ago.
Screenshot 2023-02-21 19.32.43.jpg (119.9 KB ) - added by antoniou79 21 months ago.
scummvm-dreamswitchhouse-00003.png (18.5 KB ) - added by antoniou79 21 months ago.
WitchopediaStandalone.jpg (143.7 KB ) - added by antoniou79 21 months ago.
ScummVM-DevelopedBy.jpg (183.1 KB ) - added by antoniou79 21 months ago.
Standalone-DevelopedBy.jpg (181.1 KB ) - added by antoniou79 21 months ago.
ScummVM-Proofreading.jpg (190.1 KB ) - added by antoniou79 21 months ago.
Standalone-Proofreading.jpg (188.1 KB ) - added by antoniou79 21 months ago.
ScummVM-AGSModules.jpg (208.0 KB ) - added by antoniou79 21 months ago.
Standalone-AGSModules.jpg (208.3 KB ) - added by antoniou79 21 months ago.
patchDiff.txt (1.4 KB ) - added by antoniou79 21 months ago.

Download all attachments as: .zip

Change History (22)

by antoniou79, 21 months ago

by antoniou79, 21 months ago

by antoniou79, 21 months ago

by antoniou79, 21 months ago

Attachment: WitchopediaStandalone.jpg added

by antoniou79, 21 months ago

Attachment: ScummVM-DevelopedBy.jpg added

by antoniou79, 21 months ago

Attachment: Standalone-DevelopedBy.jpg added

by antoniou79, 21 months ago

Attachment: ScummVM-Proofreading.jpg added

by antoniou79, 21 months ago

Attachment: Standalone-Proofreading.jpg added

by antoniou79, 21 months ago

Attachment: ScummVM-AGSModules.jpg added

by antoniou79, 21 months ago

Attachment: Standalone-AGSModules.jpg added

comment:1 by antoniou79, 21 months ago

Description: modified (diff)

comment:2 by antoniou79, 21 months ago

Description: modified (diff)

by antoniou79, 21 months ago

Attachment: patchDiff.txt added

comment:3 by criezy, 21 months ago

The patch looks good and I committed it as is. This means issue 1 and possibly 2 should be fixed.

Issue 3 is likely the same as bug #12940.

comment:4 by tag2015, 21 months ago

Thanks for the accurate report antoniou79!
I added the entry to the wiki and linked your bugreport
https://wiki.scummvm.org/index.php?title=AGS/Games

comment:5 by tag2015, 19 months ago

Summary: AGS: Crash and text glitches for Dreams in the Witch HouseAGS: Dreams in the Witch House: Text/graphical glitches

comment:6 by tag2015, 15 months ago

All the issues should have been addressed, with the exception of the character briefly appearing after the logo fadeout.
Maybe we could close this bug and open a low priority one for that issue?

comment:7 by antoniou79, 15 months ago

Yes, the text issues seem fixed as far as I can tell.

I am also not getting the "character appearing after the logo" for the couple of times that I've tried, so maybe that was fixed too? Testing on Windows 10 with 2.8.0git (release mode).

in reply to:  7 comment:8 by tag2015, 15 months ago

Replying to antoniou79:

I am also not getting the "character appearing after the logo" for the couple of times that I've tried, so maybe that was fixed too? Testing on Windows 10 with 2.8.0git (release mode).

I can still reproduce the issue, but only if the game is set to fullscreen

comment:9 by tag2015, 14 months ago

Keywords: crash fonts glyphs removed
Priority: normallow
Summary: AGS: Dreams in the Witch House: Text/graphical glitchesAGS: Dreams in the Witch House: character briefly appearing after logo

comment:10 by tag2015, 2 weeks ago

Owner: set to tag2015
Resolution: fixed
Status: newclosed

Seems that the upgrade to AGS 3.6.1 fixed this issue, I can't reproduce it anymore.

Closing, please reopen if needed

comment:11 by antoniou79, 2 weeks ago

Testing on Windows 10, with ScummVM 2.9.0git built locally from master HEAD, in release mode, I also do not seem to get the issue of "character appearing after the logo" any more.

Thank you for the fixes!

Note: See TracTickets for help on using tickets.