Samsung Galaxy S9 + renderscript error

I work with the Camera2 API and I use Renderscript to do some image processing. Everything works as expected on various devices (Nexus 5 / 5x, Pixel, Pixel 2, S8 +, Note 8), with the exception of S9 +.

Basically, I create Allocation to get camera data, and another Allocation , which will use camera data, apply the conversion and display the result on Surface , which will act as a camera preview. On S9 +, I get a black screen (no preview), and LogCat shows the following error:

renderscript error

I read other posts about this type of error, and they do not apply to my case, because the code works as expected on other devices!

I was able to track down an error while loading a downloadable library: Stacktrace

This only happens on S9, other Samsung devices work without any problems.

S8 + is on Android Nougat (24), and S9 + is on Oreo (26), both have OpenGL ES 3.2.

Does anyone know how to fix this?

PS: tested on other devices working without Oreo without problems.

Edit

I updated S9 + to the latest version ( R16NW.G965FXXU1ARCC ), but the problem still remains. In addition, based on the comments suggestion, I checked the / vendor / lib64 folder to check for libbccArm and libccc , but only one of them is present:

enter image description here

LATER EDIT

libbcc.so found on the system, but S9 + does not seem to have a 32-bit version (S8 + on the left, S9 + on the right)

enter image description here

+5
source share

Source: https://habr.com/ru/post/1276228/


All Articles