Skip to content

Engine crash in Debug compiled mode due to assert error: Eninge started #716

Description

@CodeFHD

As of BLC v2.11.0:

When using the engine in Debug-compiled mode, the engine crashes when the preview engine is used.
An assert is being triggered, hence Debug-only:

assert (started);

In BLC, the respective call is happening in the destructor:
https://github.com/LuxCoreRender/BlendLuxCore/blob/094e238a2730461d83d3cc8f6e5c84935a6be44e/engine/base.py#L81

For the time being, I can workaround by calling Stop only when the engine is not started (tested and found no adverse effects.)
It seems there is already a proper stop for each instance within BLC. I.e. the crash is due to a double-call to Stop().

However, the mechanism in LuxCore should be revised.
It seems that the value of started is only set to false inside threads, but not the main engine instance.

An Issue to consider in combination:
#693

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions