Skip to content

String table error when using snapshots #116

@kalmard0

Description

@kalmard0

Unfortunately I can't easily create a reproducible example, but I have a codebase that tries to save every step of the user's playthrough via snapshots. Originally it would actually just save the choices and replay them as needed, but that proved to be too slow.

Anyway, when creating a new snapshot, I get the following error from the string table:
Try to fetch not contained string

If I print the actual string it's trying to fetch, it's memory garbage.

Running my code through valgrind & gdb points to the issue being on output.cpp:451:
for (const char* i = _data[iter].get<value_type::string>(); *i; ++i) {

Here i is uninitialized. The exact valgrind message is: Address 0xf5878e0 is 160 bytes inside a block of size 176 in arena "client"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions