Skip to content

Crash after calling IEngine::stop() #186

@adazem009

Description

@adazem009

Calling IEngine::stop() (Engine::stop() in the private implementation) should stop the project (remove all running scripts from the running scripts list).

There's also a list of finished scripts (scripts to remove). Engine::stop() only clears the list of running scripts, but doesn't clear the list of scripts to remove. This causes a crash when trying to remove finished scripts when the list of running scripts is empty.

A simple fix should be to clear the list of scripts to remove in Engine::stop():

void Engine::stop()
{
    m_runningScripts.clear();
    m_scriptsToRemove.clear();
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Priority: CriticalbugSomething isn't workingcrashIssues involving a crashgood first issueGood for newcomers

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions