Skip to content

[Bug] Nodes are reloaded twice #2882

@Alxiice

Description

@Alxiice

Description

for plugin in meshroom.core.pluginManager.getPlugins().values():
for node in plugin.nodes.values():
if node.reload():
nodeTypes.append(node.nodeDescriptor.__name__)

For some reason when I trigger the plugins hot-reload they are reloaded twice.
It doesn't seem to depend on the number of node instance

Reproduction steps

  1. Create a dummy plugin, for example :
class TestNode(desc.Node):

    print("Load TestNode")

    category = 'TestPlugin'
    documentation = """Test node"""
    
    size = desc.StaticNodeSize(1)
    parallelization = None

    inputs = [
        desc.File(
            name='inputA',
            label='input',
            description='',
            value='',
        ),
        desc.File(
            name='inputB',
            label='input',
            description='',
            value='',
        )
    ]

    outputs = [
        desc.File(
            name='outputFolder',
            label='outputFolder',
            description='outputFolder',
            value="{nodeCacheFolder}",
            group='',
        ),
    ]

    def processChunk(self, chunk):
        pass
  1. Launch meshroom
  2. Change the code of the plugin (e.g. remove inputB)
  3. Trigger the hot-reload
Image
  1. You can see that TestNode is reloaded twice

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfor actual bugs (unsure? use type:question)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions