[Scummvm-tracker] [ScummVM :: Bugs] #12416: Assert in POSIXFilesystemNode::getChild
ScummVM :: Bugs
trac at scummvm.org
Sun Apr 11 21:43:38 UTC 2021
#12416: Assert in POSIXFilesystemNode::getChild
-------------------+-------------------------
Reporter: criezy | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: AGS
Version: | Keywords:
Game: |
-------------------+-------------------------
A user reported on the forum that while playing Blackwell Deception and
Technobabylon he encountered a crash after a while with
```
scummvm: backends/fs/posix/posix-fs.cpp:132: virtual AbstractFSNode*
POSIXFilesystemNode::getChild(const Common::String&) const: Assertion
`!n.contains('/')' failed.
```
I have played a good chunk of Blackwell Deception without seeing that
assert yet and this will need to be investigated further.
I also looked at the code and we are calling `FSNode::getChild()` in two
places, both in `Common::FSNode getFSNode(const char *path)` in
stdio_compat.cpp, and as far as I can see the logic there seems correct
(it splits the path using '/' to look recursively for subdirs and then the
file).
So I don't know what could be triggering the assert.
--
Ticket URL: <https://bugs.scummvm.org/ticket/12416>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list