HaarigerHarald / omxiv

OpenMax image viewer for the Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple layer functionality seems to be broken on rpi4

microwax opened this issue · comments

Hi,

When attempting to display two images simultaneously on the rpi4 (each in its own layer), omxiv fails with error "ilclient.c:747:ilclient_change_component_state():error == OMX_ErrorNone".

e.g.
omxiv --layer 1 "test-image-01.jpg" &
omxiv --layer 2 "test-image-02.jpg" &

The first image displays okay. However, omxiv fails when attempting to display the second image. The second image can only be displayed if I kill the first instance of omxiv.

Multiple layers worked fine on the rpi3. This appears to be an issue specific to the rpi4 (or perhaps to more recent versions of Raspbian / Raspberry Pi OS).

Thanks, David.

Whoops, I've today discovered that this error was caused by insufficient memory having been allocated to the GPU.

I resolved this by increasing the GPU allocation (gpu_mem) in /boot/config.txt. (This was a setting that I had previously applied to my rpi3 but had forgotten to apply to the rpi4). Everything now working as expected.

So, my apologies. This was a case of user error on my part, and I'm now closing the issue.