Closed PhilippeAccorsi closed 4 years ago
Just delete ".zip" at end of filename piplus-teeth.stl.zip
Test with code in branch Feature/151 better vtk builder
2019-11-22 16:07:05 INFO [PreviewGenerator:21][b'uWSGIWorker1Core0'] New Preview builder of class<class 'preview_generator.preview.builder.cad__vtk.ImagePreviewBuilderVtk'>
2019-11-22 16:07:05 INFO [PreviewGenerator:21][b'uWSGIWorker1Core0'] New Preview builder of class<class 'preview_generator.preview.builder.cad__vtk.ImagePreviewBuilderVtk'>
ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, line 445
vtkXOpenGLRenderWindow (0x557993994ff0): bad X server connection. DISPLAY=Fri Nov 22 16:07:07 2019 - Respawned uWSGI worker 2 (new pid: 2010)
Fri Nov 22 16:07:07 2019 - DAMN ! worker 1 (pid: 2007) died, killed by signal 6 :( trying respawn ...
Fri Nov 22 16:07:07 2019 - Respawned uWSGI worker 1 (new pid: 2011)
Test with code in branch Feature/151 better vtk builder
2019-11-22 16:07:05 INFO [PreviewGenerator:21][b'uWSGIWorker1Core0'] New Preview builder of class<class 'preview_generator.preview.builder.cad__vtk.ImagePreviewBuilderVtk'> 2019-11-22 16:07:05 INFO [PreviewGenerator:21][b'uWSGIWorker1Core0'] New Preview builder of class<class 'preview_generator.preview.builder.cad__vtk.ImagePreviewBuilderVtk'> ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, line 445 vtkXOpenGLRenderWindow (0x557993994ff0): bad X server connection. DISPLAY=Fri Nov 22 16:07:07 2019 - Respawned uWSGI worker 2 (new pid: 2010) Fri Nov 22 16:07:07 2019 - DAMN ! worker 1 (pid: 2007) died, killed by signal 6 :( trying respawn ... Fri Nov 22 16:07:07 2019 - Respawned uWSGI worker 1 (new pid: 2011)
This issue happened because we are in a headless environnement. check this: https://github.com/vtkiorg/vtki/issues/155
Solution for this can be used xvfb but with simple test, it doesn't work as expected. I get :
XIO: fatal IO error 0 (Success) on X server ":2123779251"
after 55 requests (55 known processed) with 0 events remaining.
in Tracim using patched code https://github.com/algoo/preview-generator/tree/fix/163__fix_x_issue_with_vtk , this also close directly Tracim process which is not nice at all. Seems that something is not properly close.
fixed by #167
At present
I have this error :
Preview of file not working.