ValueError: Invalid Output resolution 1920x0

I am working on a Pynq z2 and my image is the 3.0.1, but I have faced this error also in 2.7.

When I try to run the default hdmi streaming pipeline from base overlay:



it gives me this error:

ValueError                                Traceback (most recent call last)
Input In [2], in <cell line: 2>()
      1 hdmi_in.configure()
----> 2 hdmi_out.configure(hdmi_in.mode)
      4 hdmi_in.start()
      5 hdmi_out.start()

File /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/lib/video/, in VideoOut.configure(self, mode, pixelformat)
    261 self._color.colorspace = pixelformat.out_color
    262 self._pixel.bits_per_pixel = pixelformat.bits_per_pixel
--> 263 self._hdmi.mode = mode
    264 self._vdma.writechannel.mode = mode
    265 self._hdmi.start()

File /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/lib/video/, in HDMIOutFrontend.mode(self, value)
    140     self._display.mode(_outputmodes[resolution])
    141 else:
--> 142     raise ValueError(
    143         "Invalid Output resolution {}x{}".format(value.width, value.height)
    144     )

ValueError: Invalid Output resolution 1920x0

I am sure I have connected the hdmi properly and they work fine when I try to stream my screen to another monitor. I also tried to run a streaming video but with USB webcam and it works, so the problem is the hdmi input. Is there anything I can do to solve this problem ? Is the board broken ?
Just to mention that I’ve worked with base overlay one week ago and it started correctly, so I don’t understand where is the problem.

It looks like the HDMI resolution is not being detected properly.

You coudl try checking this by printing:
after you run:
However, I expect this will show: 1920x0

You could try manually setting hdmi out:
hdmi_out.configure(1920, 1080)

Have you tried a lower resolution? 1920x1080 on the PYNQ Z2 is a little outside the HDMI timing specification. It can sometimes work with some equipment but is not guaranteed.