viser icon indicating copy to clipboard operation
viser copied to clipboard

`ViewerCameraMessage.__init__()` missing `near, far` positional arguments in `viser==0.20.0`

Open bhung-bdai opened this issue 11 months ago • 1 comments

Hi,

When I attempt to run a camera example or start up a basic ViserServer(), I get the following message and it will either stall or not fully render. Do you have any ideas on why this message is appearing? It appears the keyword arguments aren't being passed properly through the viser interface. All of this is being run on a fresh virtualenv where the only installed package is viser.

Example 04_camera_poses.py image Visual output image

Example 05_camera_commands.py image Visual output image

Basic reproducible example:

import time

from viser import ViserServer

if __name__ == "__main__":
    server = ViserServer()
    while True:
        time.sleep(0.1)

bhung-bdai avatar Jan 14 '25 19:01 bhung-bdai

Is there any chance you have a browser tab open that was launched from an older version of Viser? It looks like the first client that connects works fine, but the second one sends a message that matches an older format.

#367 should also reduce the likelihood of this issue.

brentyi avatar Jan 14 '25 20:01 brentyi