Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loguru caught a signal: SIGSEGV #13

Open
LiChengChen666 opened this issue Jul 24, 2023 · 4 comments
Open

Loguru caught a signal: SIGSEGV #13

LiChengChen666 opened this issue Jul 24, 2023 · 4 comments

Comments

@LiChengChen666
Copy link

LiChengChen666 commented Jul 24, 2023

I use simple.LoadPlugin to load plugin,
the code :

@smproxy.filter()
@smproperty.input(name="Input")
@smdomain.datatype(dataTypes=["vtkMultiBlockDataSet"], composite_data_supported=True)
class PythonCR3BPTrajSource(VTKPythonAlgorithmBase):
    """
    Example filter demonstrating how to write a filter that preserves the input
    dataset type.
    """
    def __init__(self):
        super().__init__(nInputPorts=1, inputType="vtkMultiBlockDataSet", nOutputPorts=1, outputType="vtkMultiBlockDataSet")
        from vtkmodules.vtkFiltersSources import vtkPolyLineSource

    def RequestData(self, request, inInfo, outInfo):
        inData = self.GetInputData(inInfo, 0, 0)
        self.mu = inData.GetFieldData().GetArray('mu').GetComponent(0,0)
        print(self.mu)
        return 1
@jourdain
Copy link
Collaborator

What is the question? It seems that you are providing the answer to your own question.

@LiChengChen666
Copy link
Author

sorry, i forget to change the title ,the error is "Loguru caught a signal: SIGSEGV". this code can run in local paraview and visualizer.

@LiChengChen666 LiChengChen666 changed the title how to load python plugins Loguru caught a signal: SIGSEGV Jul 25, 2023
@jourdain
Copy link
Collaborator

I'm not sure what would be different with paraview-visualizer compared to paraview and old visualizer.

@LiChengChen666
Copy link
Author

Thanks, this issue has been fixed, it seems to be a version issue with paraview .
Whether it is necessary to rewrite Python plugins in C++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants