Skip to content

Failed texture setup leaves extension worker permanently broken (self._model = None) #239

Description

@OmarB97

Environment: Ubuntu (kernel 7.0), RTX 5090 (Blackwell sm_120), NVIDIA driver w/ CUDA 13.3 userland, Modly AppImage v0.4.x, embedded Python 3.11.9, data dir relocated to a large secondary disk. Found while driving Modly headlessly (REST + MCP) for a game-asset pipeline.

If an enable_texture generation fails during its lazy texgen setup (e.g. missing xatlas), the extension worker is left with self._model = None. Every subsequent generation on that worker then raises:

TypeError: 'NoneType' object is not callable

…until the worker process is manually killed.

Suggested fix: guard generate() with a model-loaded check that triggers a reload, or recycle the worker when setup fails.

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