-
Notifications
You must be signed in to change notification settings - Fork 215
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
connection to ISAAC server seems to be good, but no visualization #4870
Comments
Hi @onezillion thanks for opening the issue. I need to retest if we broke something with the current dev branch. We switched with PIConGPU dev fully to native alpaka instead of using the cupla library. |
@PrometheusPi We need to test ISAAC with the latest dev branch. |
@psychocoderHPC Thanks for pinging - I will have a look |
Thanks for your reply. and in isaac.param, I use I use 4_isaac.cfg without modification Thanks again for your reply. |
Hi @onezillion, ![]() The only issue I had was that I had to use a previously compiled server. However, that software did not change for years (that's why I had issues building it.) From the log files you shared, I see a few strange things:
but your image is only showing simulation ID 0. Do you run two simulations?
Did you adjust any of the 3 ports that are set by default or did the server or client needed to reroute, e.g. the web port? (because data transfer seems to work) |
PS: did you activate moving window? Because your Dimensions look different than the default. |
Thank you for your replies. Sorry that I am away for a business trip. I do remember that similar messages have occurred in server stdout: As for the slider, I have been trying changing the max/min limits and playing around the color map before I posted this issue (I did click the update button). I will also check this again. I have tried both modified and default port settings. The tunelling settings are as suggested by the isaac page. I think there is no firewall between the vm machine and my pc terminal, or at least the default ports are not blocked. I cannot remember the moving window setting, but I did not change this setting. Sorry that I am still away for a business trip until this weekend. I will check these suggestions on this weekend. |
I am attaching the stdout and screenshots throughout the whole procedure from loading spack modules to establishing the visualization in the following. PIConGPU startupload spack modules
load isaac_server & put it into backgroundThe port settings are all default
use client "visualisation.html" to connect to isaac server; server stdout:the message
I use default example, LWFA, and modify isaac.param
use 4_isaac.cfg
build PIConGPUpic-build -c"-DPIC_USE_ISAAC=ON -DPIC_USE_openPMD=ON -DPIC_USE_PNGwriter=ON" run PIConGPUI found that the moving window is OFF by default this time, the ID numbers are the same in the terminal stdout,
use the "observe" button to see the visualizationa message showed up in the terminal I tried the max/min interval button try different slider/colormap settingsjust found that I pick the wrong weight option. will redo this test and update later. |
I assume the problem is that you installed ISAAC with spack. Due to time constrains we stopped maintaining the spack packages for ISAAC. You can grep all required commands from our CI job: picongpu/share/ci/install/isaac.sh Lines 9 to 27 in d18b682
And for the server the install description of ISAAC should work fine if you provide libwebsockets with spack https://github.com/ComputationalRadiationPhysics/isaac/blob/dev/INSTALL.md#the-server |
@onezillion Did building the software stack, as @psychocoderHPC recommended, solved our problem? |
Do you klicked on
What do you mean by this? Is it sometimes working? Which browser do you use? I suggest testing firefox and Chrome if you not already tested these. |
There is on option for the server what all images get stored as jpg in the server folder. I do not think that the VM is the issue. |
Thank you for your reply.
Yes, I did click the update button. I even clicked on all the update buttons that I could find in the page
No, I mean: since it seems that this issue only happened to me (I do not see similar case being reported except one, which was quickly solved somehow), I guess that maybe certain settings in our VM machine lead to this issue.
I am using chrome, also tried firefox and edge when I first tried isaac and found no visualization. That was like 2-3 weeks ago. At that time, I also turned on jpeg output, and all I got was just blank & black images. Anyway, let me try this again with manually compiled isaac later. Actually, my very first try was with only jpeg output and without server connection and found all are just blank & black images. Then I tried the server connection. Then you know the results. |
Dear all, I tried jpeg output from isaac server but no luck. Here is the screenshot and a jpeg file. I also tried edge, chrome, chrome in privacy and firefox in the screenshot. All other settings are the same as my last shot: isaac from source and other deps from spack. I also did git fetch && git pull for picongpu. isaac server is loaded by Could it be due to libjpeg-turbo? If that is possible, I will try install libjpeg from source later. |
This could be. I suggest try to compile it. I am out of ideas if this is not working :-( |
You could also try to change the background color of the simulation, under the simulation image in the web control interface. |
I assume because if I remember correctly the background is already rendered into the image on the device. |
@onezillion I tried it now by my own on our dev server, here are some snippets how I compiled. I mixed spack and glm compile by hand because I have not tested the latest glm releases. install
compile picongpu
compile server
start server./isaac
Using web_port=2459, tcp_port=2458 and sim_port=2460
lwsts[1526522]: Initial logging level 1031
lwsts[1526522]: Libwebsockets version: 2.2.0 rwidera@hal8999-
lwsts[1526522]: IPV6 not compiled in
lwsts[1526522]: libev support not compiled in
lwsts[1526522]: libuv support not compiled in
lwsts[1526522]: Threads: 1 each 1024 fds
lwsts[1526522]: mem: platform fd map: 8192 bytes
lwsts[1526522]: Compiled with OpenSSL support
lwsts[1526522]: SSL disabled: no LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
lwsts[1526522]: Creating Vhost 'default' port 2459, 2 protocols, IPv6 off
lwsts[1526522]: Listening on port 2459
lwsts[1526522]: mem: per-conn: 568 bytes + protocol rx buf
lwsts[1526522]: canonical_hostname = hal8999 start PIConGPU LWFA
I got images in the client without changing any slider. |
@onezillion take care I increased the required glm version for ISAAC to 1.0.0 ComputationalRadiationPhysics/isaac#181 |
Thanks for the reply. Our VM is down for a few days and may be up next week. I will try the suggestions then. |
Dear all,
I am trying to use PIConGPU with ISAAC visualization. My current status is very similar to issue #3410 (part of).
The installation is mostly via spack, and isaac & isaac-server are installed with @develop (1.6.0). Anyway, installation went smoothly.
PIConGPU is on dev branch with tag of 0.7.0-530-g71ec38322 (though it shows 0.8.0-dev during simulation).
The simulation is running on a linux VM with ubuntu 22.04 and with 2x4 GPU cores.
The current situation is, the simulation runs smoothly (myLWFA example, with 4.cfg or 4_isaac.cfg). The png figures looks good; openpmd data looks good; stdout of compiling and of the simulation looks ok.
During compiling I can see:
...
-- ISAAC_RENDERER_OPTIMIZED is enabled
-- Found ISAAC: /home/u07khl00/spack/opt/spack/linux-ubuntu22.04-skylake_avx512/gcc-12.3.0/isaac-develop-52jjftkdf6t3sxsio3ahd2c5sbdjftys/lib/cmake/ISAAC
Optional Dependencies:
openPMD: ON
PNGwriter: ON
ISAAC: ON
...
During the beginning of the simulation, I can see:
...
PIConGPUVerbose INPUT_OUTPUT(32) | ISAAC Init succeded
...
The server is running on the same machine (localhost) in the background. And when the simulation starts (isaac connect to localhost), from the server stdout, I can see:
...
New connection, giving id 1 (control)
Group complete, sending to connected interfaces
...
I am using the tunnel via putty (as mentioned in isaac: tunnel.md), and I open isaac\client\html\visualisation.html.
I click on the observe button and go into the observing page. The message of server stdout shows
...
URIImageConnector: Openend URI JPEG Stream
...
Everything looks find except there is no visualization of the simulation (fields, particles, etc.).
The particle num is correct, the cell num is correct, the time step shows good correspondence to simulation stdout. The dimension is also correct. I also tried clicking the "update minmax interval" button repeatedly, and the max/min values are updated repeatedly with reasonable values.
I tried running simulation and server on two different VMs, but still got no visualization.
In the earlier post #3410, there is no mentioning on how to solve this. It was just fixed somehow.
I'm here seeking help to solve this issue. Thank you in advance.
The text was updated successfully, but these errors were encountered: