8000 UDPSampler crashes · Issue #12 · CFEL-CMI/pymepix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

UDPSampler crashes #12

Open
troehling opened this issue Jun 14, 2021 · 1 comment
Open

UD A2D3 PSampler crashes #12

troehling opened this issue Jun 14, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@troehling
Copy link
Contributor

The UDP samples crashes if no data is received and recording is active.

To reproduce:

  1. Launch pymepixviewer
  2. Start recording data (without actually receiving any)
  3. Stop recording after a few seconds
  4. Start recording again
  5. Stop recording --> Now the GUI hangs

Stacktrace

2021-06-14 16:07:27,069 - pymepix.Raw2Disk - INFO - File /test.raw opening
Process UdpSampler-5:
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/home/cfelcmi/timepix/pymepix/pymepix/processing/udpsampler.py", line 311, in run
    copy=False,
  File "/home/cfelcmi/.local/lib/python3.7/site-packages/zmq/sugar/socket.py", line 505, in send
    return super(Socket, self).send(data, flags=flags, copy=copy, track=track)
  File "zmq/backend/cython/socket.pyx", line 718, in zmq.backend.cython.socket.Socket.send
  File "zmq/backend/cython/socket.pyx", line 759, in zmq.backend.cython.socket.Socket.send
  File "zmq/backend/cython/socket.pyx", line 135, in zmq.backend.cython.socket._check_closed
zmq.error.ZMQError: Socket operation on non-socket
2021-06-14 16:07:32,053 - pymepixviewer.main - INFO - file /test.raw closed
@troehling troehling added the bug Something isn't working label Jun 14, 2021
@BenMoon
Copy link
Contributor
BenMoon commented Jun 15, 2021

This seems to be an edge case and happens only if the udpsampler buffer is empty while recording file should be closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
0