-
Notifications
You must be signed in to change notification settings - Fork 4
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
add docker files #107
Comments
Hi @jorgensd, I created a docker image on my forked repository: https://github.com/keiyamamo/VaSP/pkgs/container/vasp Here is the command I used.
I tried to add Do you have any idea how to fix the issue? |
This is the error message I get specifically when trying to run VaSP with docker --- Visualizing flow split at outlets, inlet flow rate, and probes in VTK render window.
--- Press 'q' inside the render window to exit.
2023-12-11 10:26:15.700 ( 70.182s) [ 1F4E300]vtkXOpenGLRenderWindow.:651 ERR| vtkXOpenGLRenderWindow (0x40754ff860): Cannot create GLX context. Aborting.
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted |
I managed to run
To make
and
outside the container. |
I get it to run by calling: xhost +
docker run --network=host -e DISPLAY=$DISPLAY --rm -w /home/shared/ -v $PWD:/home/shared/ -it ghcr.io/keiyamamo/vasp:master It renders the gears nicely (using ubuntu:22.04 with an intel core i7) |
Thank you for trying it out! Yes, the gears work nicely, but the problem happens with Now I’m trying to create an image with arm64 but I got an error https://github.com/keiyamamo/VaSP/actions/runs/7168742081/job/19517580928 Do you have any suggestion how to fix this? |
Vmtk Depends on VtK? It is likely that we cannot use conda to build the docker environment, and have to build dependencies from source. |
Yes, |
There is a docker file for building vmtk from source in the VMTKScripts repository on KVSlab. It's been a while since I made it, so I am not sure if it is still usable. |
@johannesring Thanks for letting me know! I will check it out. |
This is a minimal working example of this problem with import vtk
# Create a renderer and a render window
renderer = vtk.vtkRenderer()
render_window = vtk.vtkRenderWindow()
render_window.AddRenderer(renderer)
# Create a render window interactor
interactor = vtk.vtkRenderWindowInteractor()
render_window.Render()
interactor.Start() which gives
I’m not sure if this is specific to my Mac book pro or general problem. Would it be possible to test it on your laptop? |
@keiyamamo - I have been looking into this today and tried a few different things on my laptop with Ubuntu and a Intel graphics card. I found that your Docker image I also tried your minimal vtk example above but that failed for me both inside and outside of Docker with the same error message: 2024-01-17 09:38:04.710 ( 0.391s) [ EFE9740]vtkXRenderWindowInterac:322 ERR| vtkXRenderWindowInteractor (0x55b15d9786c0): No renderer defined! I had to modify the example to make it run: import vtk
# Create a renderer and a render window
renderer = vtk.vtkRenderer()
render_window = vtk.vtkRenderWindow()
render_window.AddRenderer(renderer)
# Create a render window interactor
interactor = vtk.vtkRenderWindowInteractor()
interactor.SetRenderWindow(render_window)
# Create a cube as a simple example
cube_source = vtk.vtkCubeSource()
cube_mapper = vtk.vtkPolyDataMapper()
cube_mapper.SetInputConnection(cube_source.GetOutputPort())
cube_actor = vtk.vtkActor()
cube_actor.SetMapper(cube_mapper)
# Add the cube actor to the renderer
renderer.AddActor(cube_actor)
# Set up the renderer, render window, and interactor
render_window.Render()
interactor.Start() I see the same issue with this example. No window pops up when using your Docker image (using |
Thank you for checking this out! Originally, I was using If the docker image with |
Yes, I agree. |
No description provided.
The text was updated successfully, but these errors were encountered: