JeffyCN / meta-rockchip

Yocto BSP layer for the Rockchip SOC boards
Other
114 stars 87 forks source link

qt 5.15 camera example get RGA_BLIT fail: Bad address #20

Closed SquallATF closed 2 years ago

SquallATF commented 2 years ago

official example https://doc.qt.io/qt-5/qtmultimedia-multimediawidgets-camera-example.html when click Capture Photo the console will display the following log, is this normal?

arm_release_ver of this libmali is 'g2p0-01eac0', rk_so_ver is '3'.rga_api version 1.3.1_[11] (RGA is compiling with meson base: $PRODUCT_BASE)
10000 is unsupport format now,pilese fix.
10000 is unsupport format now,pilese fix.
10000 is unsupport format now,pilese fix.
10000 is unsupport format now,pilese fix.
10000 is unsupport format now,pilese fix.
10000 is unsupport format now,pilese fix.
 RgaBlit(1356) RGA_BLIT fail: Bad address RgaBlit(1357) RGA_BLIT fail: Bad address
fd-vir-phy-hnd-format[28, (nil), (nil), (nil), 0]
rect[0, 0, 1920, 1080, 3840, 1080, 65536, 0]
f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
fd-vir-phy-hnd-format[38, (nil), (nil), (nil), 0]
rect[0, 0, 1920, 1080, 1920, 1088, 2560, 0]
f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
This output the user patamaters when rga call blit fail
JeffyCN commented 2 years ago

the rga is kind of broken in recent chips. in your case, it could be involved by mpp video encode plugin.

so maybe: 1/ try to downgrade librga(to it's master branch from im2d branch) or 2/ disable rga in gstreamer-rockchip's bb (it might fallback to use slow software conversion)

SquallATF commented 2 years ago

It seems work after switching to the old version.

arm_release_ver of this libmali is 'g2p0-01eac0', rk_so_ver is '3'.Rga built version:274b345f976a
librga:RGA_GET_VERSION:3.02,3.020000
ctx=0x7f98006df0,ctx->rgaFd=45
JeffyCN commented 2 years ago

the rga is broken on 3588, i'm trying to disable it everywhere :(

JoshuaJakowlew commented 11 months ago

I have the same problem on 3568. Error log sin console, but everything seems to work right. Is it broken on 3568 too? Is there any instructions how to downgrade this lib?

JeffyCN commented 11 months ago

don't know much about rga, please mail and ask the rga maintainer.