#6775 closed defect (fixed)
ZVISION: Core dump when starting Zork Nemesis
Reported by: | SF/robertwenner | Owned by: | bluegr |
---|---|---|---|
Priority: | normal | Component: | Engine: ZVision |
Version: | Keywords: | ||
Cc: | Game: | Zork Grand Inquisitor |
Description
ScummVM (nighly build downloaded from SourceForge) crashes with core dump when I try to start Zork Nemesis.
robert@habanero:~/scummvm$ scummvm
WARNING: SDL mixer output buffer size: 2048 differs from desired: 4096!
User picked target 'znemesis' (gameid 'zvision')...
Looking for a plugin supporting this gameid... ZVision
Starting 'ZVision Game'
WARNING: Could not open file u000b51c.tga!
scummvm: ../../src-master/src/common/file.cpp:140: virtual uint32
Common::File::read(void*, uint32): Assertion `_handle' failed.
Aborted (core dumped)
There is no file by that name in lower case, but in upper case:
robert@habanero:~/spiele/zork-nemesis/installed$ find . -name U000B51C.TGA
./DATA3/ZASSETS/GLOBAL3/U000B51C.TGA
./DATA2/ZASSETS/GLOBAL2/U000B51C.TGA
./DATA1/ZASSETS/GLOBAL/U000B51C.TGA
I downloaded the game from gog.com, installed it in wine, then copied the folder from wine:
cp -ra .wine/drive_c/Program\ Files\ \(x86\)/GOG.com/Zork\ Nemesis\ -\ The\ Forbidden\ Lands/ spiele/zork-nemesis/installed
robert@habanero:~/scummvm$ scummvm -t | grep Nemesis
znemesis Zork Nemesis: The Forbidden Lands (DOS/English)
The game plays in Zengine.
I tried renaming all files to lowercase file names, but that did not make a difference.
robert@habanero:~/scummvm$ scummvm --version
ScummVM 1.8.0git2619-g9f00880 (Jan 17 2015 06:08:09)
Features compiled in: TAINTED Vorbis FLAC MP3 ALSA SEQ TiMidity RGB zLib
FluidSynth Theora FreeType2 JPEG PNG
robert@habanero:~/scummvm$ uname -a
Linux habanero 3.11.0-20-generic #35-Ubuntu SMP Fri May 2 21:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
robert@habanero:~/scummvm$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
Ticket imported from: bugs/6775.
Change History (9)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Sorry for messing up the game. However, it also happens for Zork Grand Inquisitor:
robert@habanero:~/scummvm$ scummvm
WARNING: SDL mixer output buffer size: 2048 differs from desired: 4096!
User picked target 'zgi-win' (gameid 'zvision')...
Looking for a plugin supporting this gameid... ZVision
Starting 'ZVision Game'
WARNING: FSDirectory::cacheDirectory: name clash when building cache, ignoring file 'Inquis.ini'!
WARNING: FSDirectory::cacheDirectory: name clash when building cache, ignoring file 'Inquis.ini'!
WARNING: Could not open file gjd2f011.tga!
scummvm: ../../src-master/src/common/file.cpp:140: virtual uint32 Common::File::read(void*, uint32): Assertion `_handle' failed.
Aborted (core dumped)
robert@habanero:~/scummvm$ scummvm -t | grep Inquis
zgi-win Zork: Grand Inquisitor (CD/Windows/English)
comment:3 by , 10 years ago
I don't have the GOG versions myself, but just to rule out one really simple explanation (and since I seem to recall making that mistake myself the other day), have you checked that you have read permission on the game data files?
comment:4 by , 10 years ago
Summary: | Core dump when starting Zork Nemesis → ZVISION: Core dump when starting Zork Nemesis |
---|
comment:5 by , 10 years ago
Permissions are ok, all files are 644, all directories are 755, all files owned by me.
comment:6 by , 10 years ago
I can reproduce this. Bisected, and it's a regression in d70503cc9842059302c73c7861ada557e25a52b5.
comment:7 by , 10 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:8 by , 10 years ago
My bad, I ripped out the part of the code that handles files in case-sensitive file systems. Restored in commit 7c23eae102.
I've double checked on my Ubuntu system, and ZVision is working as expected. Thanks for bisecting this, wjp.
Closing as fixed.
I can attach the core dump (34MB) if you think it will be helpful.