snu-quiqcl / iquip

Ion trap Quantum computing User Interface Project
GNU General Public License v3.0
7 stars 0 forks source link

Cannot synchronize the dataset if it was already too large #260

Closed kangz12345 closed 8 months ago

kangz12345 commented 8 months ago

Describe the bug

2024-03-22 17:44:31: [iquip.apps.dataviewer] Failed to synchronize the dataset.
Traceback (most recent call last):
  File "C:\Users\QC109_3\iquip\iquip\apps\dataviewer.py", line 966, in run
    self._initialize()
  File "C:\Users\QC109_3\iquip\iquip\apps\dataviewer.py", line 943, in _initialize
    rawDataset = json.loads(self.websocket.recv())
                            ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\QC109_3\.conda\envs\artiq\Lib\site-packages\websockets\sync\connection.py", line 201, in recv
    raise self.protocol.close_exc from self.recv_events_exc
websockets.exceptions.ConnectionClosedError: sent 1009 (message too big) over size limit (? > 1048576 bytes); no close frame received

When start sync if the dataset was already too large. Cannot see the data.

Expected behavior

Can see the data without any error.

BECATRUE commented 8 months ago

Oh.. I will find how to send large dataset in chunks.

BECATRUE commented 8 months ago

I found how to set the maximum size of websocket contents.

BECATRUE commented 8 months ago

As discussed with Jiyong, I will set the maximum size for client to 2MB temporarily.

BECATRUE commented 8 months ago

@kangz12345 How about setting it to None?