Can read wsl2 rmed file only after copying to windows directory

Paraview 5.13.1, Windows 10

Directly opening a .rmed file created on wsl2 fails with errors.
Example path \wsl.localhost\smeca\home\user\NoHook3\NoHook_StudyD_NL.rmed

The file opens fine after copying to a directory on the windows C: drive

Installing paraview directly on wsl2 failed because of libxcb problems.
Windows paraview work great so far, but it would certainly be more convenient to not have to copy the files from wsl to the c: drive. Is there a workaround to enable that workflow ?
Thank you.

What error do you have ?

Are you able to open other formats ?

ERROR: In vtkQuadraturePointsGenerator.cxx, line 220
vtkMEDQuadraturePointsGenerator (000002BB0A7CDC20): configuration error

ERROR: In vtkMEDQuadraturePointsGenerator.cxx, line 73
vtkMEDQuadraturePointsGenerator (000002BB0A7CDC20): Filter data has not been configured correctly. Aborting.

ERROR: In vtkQuadraturePointsGenerator.cxx, line 220
vtkMEDQuadraturePointsGenerator (000002BB0A7CDC20): configuration error

ERROR: In vtkMEDQuadraturePointsGenerator.cxx, line 73
vtkMEDQuadraturePointsGenerator (000002BB0A7CDC20): Filter data has not been configured correctly. Aborting.

Generic Warning: In vtkSMColorMapEditorHelper.cxx, line 706
Could not determine array range.

Exception has been thrown in vtkMEDReader::RequestInformation :  File : "\\wsl.localhost\smeca\home\user\NoHook4\NoHookStudyE_Lin.rmed" has been detected as unreadable by MED file : impossible to read anything !
ERROR: In vtkExecutive.cxx, line 730
vtkPVCompositeDataPipeline (000002BB088C4ED0): Algorithm vtkFileSeriesGroupReader (000002BB0BB21E00) returned failure for request: vtkInformation (000002BB76294C30)
  Debug: Off
  Modified Time: 42856391
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1



Exception has been thrown in vtkMEDReader::RequestInformation :  File : "\\wsl.localhost\smeca\home\user\NoHook4\NoHookStudyE_Lin.rmed" has been detected as unreadable by MED file : impossible to read anything !
ERROR: In vtkExecutive.cxx, line 730
vtkPVCompositeDataPipeline (000002BB088C3BB0): Algorithm vtkMEDReader (000002BB088C33D0) returned failure for request: vtkInformation (000002BB76296980)
  Debug: Off
  Modified Time: 42856422
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1

I have not tried other formats. I’m getting started with salome-mecam, and am generating lots of rmed files at the moment. The embedded paraview within salome-meca is less performant, and also goes through periods of frequent segmentation faults. So far so good with the windows version.

Please check if this is a .med specific issue or present with any format.

Opening from directory C:\Users\REDACTED\femTests\NoHookE file Mesh_1.cgns works fine, using the CGNS Series Reader.

Opening from directory \wsl.localhost\smeca\home\user\NoHook4 file Mesh_1.cgns generates the errors:

ERROR: In vtkIOSSReaderInternal.cxx, line 328
vtkIOSSReader (000002BB059199E0): Error in UpdateTimeInformation: 
ERROR: Unable to open CGNS database '//wsl.localhost/smeca/home/user/NoHook4/Mesh_1.cgns' for read access.
[0] CGNS Error: 'cgio_open_file:File-open error'


ERROR: In vtkExecutive.cxx, line 730
vtkPVCompositeDataPipeline (000002BB722D6980): Algorithm vtkIOSSReader (000002BB059199E0) returned failure for request: vtkInformation (000002BB0C618F90)
  Debug: Off
  Modified Time: 44649853
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1



ERROR: In vtkExecutive.cxx, line 730
vtkPVCompositeDataPipeline (000002BB722D6980): Algorithm vtkIOSSReader (000002BB059199E0) returned failure for request: vtkInformation (000002BB7606FAF0)
  Debug: Off
  Modified Time: 44653132
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1
  FROM_OUTPUT_PORT: 0

Looks like there is an issue with the way Windows “mount” wsl folders. Can you navigate to the folder in the windows explorer ? Which path is displayed in that case ?

Yes, of course - the path to the directory is \wsl.localhost\smeca\home\user\NoHook4

That is from copy-paste from the navication bar.
It displays differently, as shown in the screen shot

This issues is here: https://gitlab.kitware.com/paraview/paraview/-/issues/21476

No fixes yet I’m afraid.

Thank you. It seems different from the description in the issue, because paraview does not crash or freeze - it simply opens the file as an empyt vtk data set collection. 0 cells, 0 points … 0 memory. The empty stub can be delted with out apparent consequence.

I have a similar issue when opening samrai file from WSL Ubuntu. It works fine by copying it from WSL2 to Windows.

No matter using a mapped drive or the UNC path like \wsl.localhost.…

ERROR: In vtkVisItSAMRAIReader.cxx, line 135
vtkVisItSAMRAIReader (00000288DC0B4CF0): There was an error opening Z:\home\michael\simulation\ibamr-run\BScompisite\ibfe-ex4-tracer\viz_IB2d\visit_dump.00000\summary.samrai. It may be an invalid file.

ERROR: In vtkExecutive.cxx, line 730
vtkPVCompositeDataPipeline (00000288DC8E2B10): Algorithm vtkFileSeriesReader (00000288DB853950) returned failure for request: vtkInformation (00000288BC601260)
  Debug: Off
  Modified Time: 430674
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA_OBJECT
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1



ERROR: In vtkAvtSTMDFileFormatAlgorithm.cxx, line 127
vtkVisItSAMRAIReader (00000288DC0B4CF0): Unable to find any meshes

ERROR: In vtkExecutive.cxx, line 730
vtkPVCompositeDataPipeline (00000288DC8E2B10): Algorithm vtkFileSeriesReader (00000288DB853950) returned failure for request: vtkInformation (00000288BC601260)
  Debug: Off
  Modified Time: 430674
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA_OBJECT
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1



ERROR: In vtkAvtSTMDFileFormatAlgorithm.cxx, line 127
vtkVisItSAMRAIReader (00000288DC0B4CF0): Unable to find any meshes

ERROR: In vtkExecutive.cxx, line 730
vtkPVCompositeDataPipeline (00000288DC8E2B10): Algorithm vtkFileSeriesReader (00000288DB853950) returned failure for request: vtkInformation (00000288BC601260)
  Debug: Off
  Modified Time: 430674
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA_OBJECT
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1




I opened an issue for wsl: