Skip to content

Presets Menu dies when the optionsPresets.json is corrupted/empty #1088

@Damgam

Description

@Damgam

As in the title.

[t=00:00:24.287963][f=-000001] fail during rename

[t=00:00:24.288415][f=-000001] [Chili] Error: in `Battle Room Window`:btnOptionPresets : [string "LuaMenu/Widgets/gui_optionpresets_panel.lua"]:441: bad argument #1 to 'sort' (table expected, got string)

[t=00:00:24.288502][f=-000001] [Chili] Error: stacktrace:
    [C]: in sort
    [string "LuaMenu/Widgets/gui_optionpresets_panel.lua"]:441: in refreshPresetMenu
    [string "LuaMenu/Widgets/gui_optionpresets_panel.lua"]:566: in PopulatePresetPanel
    [string "LuaMenu/Widgets/gui_optionpresets_panel.lua"]:707: in CreateOptionpresetWindow
    ... (10 calls)
    [string "LuaHandler/Utilities/specialCallinHandlers.lua"]:229
    [string "libs/chiliui/chili/controls/object.lua"]:728: in CallListeners

Source of the corruption is unknown at the moment, but the widget should not completely die when the file is there but empty/broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions