rerun-io / rerun

Visualize streams of multimodal data. Free, fast, easy to use, and simple to integrate. Built in Rust.
https://rerun.io/
Apache License 2.0
6.56k stars 334 forks source link

Rerun serve does not work correctly on the server #8024

Open npmhung opened 6 days ago

npmhung commented 6 days ago

Describe the bug rr.serve does not work as expected when running on the server.

To Reproduce Steps to reproduce the behavior:

def log_data() -> None: SIZE = 10

pos_grid = np.meshgrid(*[np.linspace(-10, 10, SIZE)]*3)
positions = np.vstack([d.reshape(-1) for d in pos_grid]).T

col_grid = np.meshgrid(*[np.linspace(0, 255, SIZE)]*3)
colors = np.vstack([c.reshape(-1) for c in col_grid]).astype(np.uint8).T

rr.log(
    "my_points",
    rr.Points3D(positions, colors=colors, radii=0.5)
)

rr.init("rerun_example_my_data", spawn=False)

log_data() rr.connect('0.0.0.0:9876')


- The log on the terminal showed that my data has been sent to the rerun host: "New SDK client connected from: 127.0.0.1:39080"
- On the local machine, I open http://localhost:9090?url=ws://localhost:9877 on the browser. However, only the default page shows up.
![image](https://github.com/user-attachments/assets/22e7538e-a8b4-4a77-9af3-3bac82f9fc84)

**Expected behavior**
I expect the web viewer to show to correct data such as https://rerun.io/examples/feature-showcase/minimal.
If I do all of these steps on my local machine only, the the web viewer shows the correct data.

**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->

**Backtrace**
<!-- If this is a crash, include the backtrace in a code-block (```[STACKTRACE]```). -->

**Desktop (please complete the following information):**
 - OS: <!-- e.g. macOS Monterey 12.6 -->
 - Local machine/server: Ubuntu 22.04

**Rerun version**
<!-- Paste the output of `rerun --version` here. --> 
0.19.1

**Additional context**
<!-- Add any other context about the problem here. -->
emilk commented 5 days ago

Is there any helpful output in the developer console of the browser? This is maybe a CORS issue?

npmhung commented 5 days ago

@emilk I don't know how to do that or what should I look for, but I'm happy to try if you can provide me some instructions. I also try to load an rrd directly from the server side with rerun *.rrd --serve, but it did not work too.