Scala is irrelevant.
I had also meet this problem before. It's a hardware problem with CPU. Found in some of Chinese phones. Huawei and xiaomi are known brands which devices may have this problem.
Load this library error occurs when application can't find a correct platform *.so
.
From name libmaliinstr
, I assume it related to Mali instrument Wiki. Mali is a low-level hardware driver, supporting enhanced OpenGL/GLES especially for browser rendering.
I reproduce it on CPU MT6582 (Hongmi 1S), which means this device missing a system lib libmaliinstr.so
. So app can't use openglperf
as usual.
Current solution:
Skip this device and ignore the error. (we may not have permission to modify a system library)
Addition:
You can disable hardware accelerate in these devices for sure.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…