Skip to content

Cannot change game cvar #98

@demoth

Description

@demoth

after changing this cvar (which is "latched"), loading a new map gives a ConcurrentModificationException:

Exception in thread "main" java.util.ConcurrentModificationException
at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1493)
at java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1521)
at jake2.qcommon.exec.Cvar.updateLatchedVars(Cvar.java:358)
at jake2.server.SV_MAIN.initializeServerCvars(SV_MAIN.java:1068)
at jake2.server.SV_MAIN.SV_Map_f(SV_MAIN.java:1413)
at jake2.qcommon.exec.Cmd.ExecuteString(Cmd.java:301)
at jake2.qcommon.exec.Cbuf.Execute(Cbuf.java:187)
at jake2.client.CL.SendCommand(CL.java:1405)
at jake2.client.CL.Frame(CL.java:1455)
at jake2.fullgame.Jake2.main(Jake2.java:126)

Looks like one of these functions (FS.SetGamedir or FS.ExecAutoexec) are messing with the cvarMap collection

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingservertechnicalno impact on the gameplay

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions