Is it possible to use swiftshader to act as a replacement for render libraries on imx8mp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to use swiftshader to act as a replacement for render libraries on imx8mp

1,467 Views
SigMartin
Contributor I

On imx8mp,  I want to use swiftshader( libEGL_swiftshader.so,  libGLESv1_CM_swiftshader.so,  libGLESv2_swiftshader.so) to replace /vendor/lib/egl  ( libEGL_VIVANTE.so,  libGLESc1_CM_VIVANTE.so, libGLESv2_VIVANTE.so ) 

I know it sound wired, but for some reasons I'm trying to not use the vendor provided lib/GPU device on android , and that's why I'm testing swiftshader.

Screen displaying:  after entering  the launcher,  bootanimation will be restarted.
 
The crash log as follows:
--------- beginning of crash
06-28 07:44:33.717   336   374 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 374 (isp_media_serve), pid 336 (isp_media_serve)
06-28 07:44:33.786   470   470 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-28 07:44:33.786   470   470 F DEBUG   : Build fingerprint: 'Android/evk_8mp/evk_8mp:11/
06-28 07:44:33.787   470   470 F DEBUG   : Revision: '0'
06-28 07:44:33.787   470   470 F DEBUG   : ABI: 'arm64'
06-28 07:44:33.788   470   470 F DEBUG   : Timestamp: 2021-06-28 07:44:33+0000
06-28 07:44:33.789   470   470 F DEBUG   : pid: 336, tid: 374, name: isp_media_serve  >>> /vendor/bin/isp_media_server <<<
06-28 07:44:33.789   470   470 F DEBUG   : uid: 0
06-28 07:44:33.789   470   470 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
06-28 07:44:33.789   470   470 F DEBUG   : Cause: null pointer dereference
06-28 07:44:33.789   470   470 F DEBUG   :     x0  0000000000000000  x1  0000007c5b803590  x2  0000000000000200  x3  006769666e6f4376
06-28 07:44:33.789   470   470 F DEBUG   :     x4  0000007a493debe8  x5  0000007c5b8035b1  x6  72446d6143697349  x7  6769666e6f437672
06-28 07:44:33.789   470   470 F DEBUG   :     x8  0000000000000000  x9  0000000000000001  x10 0000000000004001  x11 0000000000000000
06-28 07:44:33.789   470   470 F DEBUG   :     x12 0000007c5b71c7a6  x13 000000000000011d  x14 0000007c5b71e7aa  x15 ffffffffffffffff
06-28 07:44:33.789   470   470 F DEBUG   :     x16 0000007c5b7ff448  x17 0000007c5b7d43f0  x18 0000007a48442000  x19 0000000000000000
06-28 07:44:33.789   470   470 F DEBUG   :     x20 0000007a493dedfc  x21 b400007a595f61d0  x22 0000007a493dee28  x23 0000007a493e0008
06-28 07:44:33.789   470   470 F DEBUG   :     x24 b400007a796158d0  x25 b400007a79615900  x26 b400007a895ebe70  x27 00000000000fd000
06-28 07:44:33.789   470   470 F DEBUG   :     x28 00000000000fb000  x29 0000007a493dede0
06-28 07:44:33.789   470   470 F DEBUG   :     lr  0000007c59f23c94  sp  0000007a493deca0  pc  0000007c59f23c94  pst 0000000080000000
06-28 07:44:33.801   470   470 F DEBUG   : backtrace:
06-28 07:44:33.802   470   470 F DEBUG   :       #00 pc 0000000000092c94  /vendor/lib64/libcam_device.so (camdev::SensorOps::queryCaps(HalHolder*, vvcam_mode_info_array*, unsigned int*, unsigned int*)+136) (BuildId: 51c34ec2d1ecf0f25618d6d319a61b8478754914)
06-28 07:44:33.802   470   470 F DEBUG   :       #01 pc 00000000000a5648  /vendor/lib64/libcam_device.so (camdev::CitfSensor::queryCaps(Json::Value&, Json::Value&)+68) (BuildId: 51c34ec2d1ecf0f25618d6d319a61b8478754914)
06-28 07:44:33.802   470   470 F DEBUG   :       #02 pc 00000000000a5450  /vendor/lib64/libcam_device.so (camdev::CitfSensor::process(int, Json::Value&, Json::Value&)+60) (BuildId: 51c34ec2d1ecf0f25618d6d319a61b8478754914)
06-28 07:44:33.802   470   470 F DEBUG   :       #03 pc 000000000005947c  /vendor/lib64/libmedia_server.so (MediaPipeline::jsonRequest(int, int, Json::Value&, Json::Value&)+452) (BuildId: 8653df1da4e49272a18b4ec773d683e166c0c7ed)
06-28 07:44:33.802   470   470 F DEBUG   :       #04 pc 0000000000059884  /vendor/lib64/libmedia_server.so (MediaPipeline::handleEvent(EventData&)+896) (BuildId: 8653df1da4e49272a18b4ec773d683e166c0c7ed)
06-28 07:44:33.802   470   470 F DEBUG   :       #05 pc 0000000000010920  /vendor/bin/isp_media_server (EventSource::notifyAll(EventData&)+88) (BuildId: 9c7b8ceba151bf147b9ed2b091009ccbc513c852)
06-28 07:44:33.803   470   470 F DEBUG   :       #06 pc 000000000000effc  /vendor/bin/isp_media_server (V4l2Event::eventLoop()+1828) (BuildId: 9c7b8ceba151bf147b9ed2b091009ccbc513c852)
06-28 07:44:33.803   470   470 F DEBUG   :       #07 pc 00000000000103fc  /vendor/bin/isp_media_server (void* std::__ndk1::__thread_proxy<std::__ndk1::tuple<std::__ndk1::unique_ptr<std::__ndk1::__thread_struct, std::__ndk1::default_delete<std::__ndk1::__thread_struct> >, V4l2Event::V4l2Event()::$_5> >(void*)+44) (BuildId: 9c7b8ceba151bf147b9ed2b091009ccbc513c852)
06-28 07:44:33.803   470   470 F DEBUG   :       #08 pc 00000000000b0c08  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: f81965d884d6ebc5e5c3fd825c17a209)
06-28 07:44:33.803   470   470 F DEBUG   :       #09 pc 00000000000505d0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: f81965d884d6ebc5e5c3fd825c17a209)
06-28 07:44:33.854     0     0 D logd    : logdr: UID=0 GID=1006 PID=470 n tail=50 logMask=8 pid=336 start=0ns timeout=0ns
06-28 07:44:33.855     0     0 D logd    : logdr: UID=0 GID=1006 PID=470 n tail=50 logMask=1 pid=336 start=0ns timeout=0ns
06-28 07:44:33.865     0     0 D logd    : logdr: UID=0 GID=1006 PID=470 n tail=0 logMask=8 pid=336 start=0ns timeout=0ns
06-28 07:44:33.878     0     0 D logd    : logdr: UID=0 GID=1006 PID=470 n tail=0 logMask=1 pid=336 start=0ns timeout=0ns
06-28 07:44:33.982     0     0 I android_work: sent uevent USB_STATE=CONNECTED
06-28 07:44:34.014     0     0 I configfs-gadget gadget: high-speed config #1: b
06-28 07:44:34.020     0     0 I android_work: sent uevent USB_STATE=CONFIGURED
06-28 07:44:37.920     0     0 E apexd   : Can't open /system_ext/apex for reading : No such file or directory
06-28 07:44:37.928     0     0 E apexd   : Can't open /product/apex for reading : No such file or directory
06-28 07:44:37.936     0     0 E apexd   : Can't open /vendor/apex for reading : No such file or directory
06-28 07:44:38.490     0     0 I         : package-parsing (570) used greatest stack depth: 10528 bytes left
06-28 07:44:38.846     0     0 I init    : Control message: Processed ctl.start for 'idmap2d' from pid: 523 (system_server)
06-28 07:44:39.003     0     0 W healthd : battery l=85 v=3 t=35.0 h=2 st=2 c=400000 fc=4000000 cc=32 chg=au
06-28 07:44:39.010     0     0 I AidlLazyServiceRegistrar: Process has 1 (of 1 available) client(s) in use after notification android.apex.IApexService has clients: 1
06-28 07:44:39.010     0     0 I AidlLazyServiceRegistrar: Process has 0 (of 1 available) client(s) in use after notification android.apex.IApexService has clients: 0
06-28 07:44:39.010     0     0 I AidlLazyServiceRegistrar: Shutdown prevented by forcePersist override flag.
06-28 07:44:39.434     0     0 I init    : processing action (sys.sysctl.extra_free_kbytes=*) from (/system/etc/init/hw/init.rc:990)
06-28 07:44:40.296     0     0 I         : read descriptors
06-28 07:44:40.299     0     0 I         : read strings
06-28 07:44:40.302     0     0 I         : read descriptors
06-28 07:44:40.305     0     0 I         : read strings
06-28 07:44:40.327     0     0 I         : acc_open
06-28 07:44:40.329     0     0 I         : acc_release
06-28 07:44:40.585     0     0 I         : Generic PHY 30be0000.ethernet-1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=30be0000.ethernet-1:01, irq=POLL)
06-28 07:44:48.991     0     0 I init    : Sending signal 9 to service 'idmap2d' (pid 403) process group...
06-28 07:44:49.005     0     0 I libprocessgroup: Successfully killed process cgroup uid 1000 pid 403 in 5ms
06-28 07:44:49.014     0     0 I init    : Control message: Processed ctl.stop for 'idmap2d' from pid: 523 (system_server)
06-28 07:44:49.023     0     0 I init    : Service 'idmap2d' (pid 403) received signal 9
06-28 07:44:49.279   684  1064 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2900 in tid 1064 (RenderThread), pid 684 (ndroid.systemui)
06-28 07:44:49.386  1081  1081 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-28 07:44:49.387  1081  1081 F DEBUG   : Build fingerprint: 'Android/evk_8mp/evk_8mp:11/
06-28 07:44:49.387  1081  1081 F DEBUG   : Revision: '0'
06-28 07:44:49.387  1081  1081 F DEBUG   : ABI: 'arm64'
06-28 07:44:49.388  1081  1081 F DEBUG   : Timestamp: 2021-06-28 07:44:49+0000
06-28 07:44:49.388  1081  1081 F DEBUG   : pid: 684, tid: 1064, name: RenderThread  >>> com.android.systemui <<<
06-28 07:44:49.388  1081  1081 F DEBUG   : uid: 10121
06-28 07:44:49.388  1081  1081 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2900
06-28 07:44:49.388  1081  1081 F DEBUG   :     x0  0000000000000a40  x1  000000000000000a  x2  0000000000000000  x3  b4000076be6e1050
06-28 07:44:49.388  1081  1081 F DEBUG   :     x4  0000000000000000  x5  0000000000000000  x6  0000000000000000  x7  7f7f7f7f7f7f7f7f
06-28 07:44:49.388  1081  1081 F DEBUG   :     x8  0000000000000006  x9  0000000000019ee0  x10 0000000000019f20  x11 00000000000018b0
06-28 07:44:49.388  1081  1081 F DEBUG   :     x12 00000000000018b2  x13 00000000000184b0  x14 00000000000098c0  x15 0000000000000000
06-28 07:44:49.388  1081  1081 F DEBUG   :     x16 0000000000000a40  x17 0000000000000a40  x18 0000000000000a40  x19 b400007921058230
06-28 07:44:49.388  1081  1081 F DEBUG   :     x20 b40000792105cf70  x21 0000000000000002  x22 0000000000000000  x23 b400007691122050
06-28 07:44:49.388  1081  1081 F DEBUG   :     x24 b4000076be6e1050  x25 0000007713fb5a46  x26 b4000078b1126000  x27 0000000000000001
06-28 07:44:49.388  1081  1081 F DEBUG   :     x28 00000000000fc000  x29 0000007690216c70
06-28 07:44:49.388  1081  1081 F DEBUG   :     lr  00000077142fc3c8  sp  0000007690216340  pc  00000078b1126538  pst 0000000080000000
06-28 07:44:49.800  1081  1081 F DEBUG   : backtrace:
06-28 07:44:49.800  1081  1081 F DEBUG   :       #00 pc 0000000000000538  [anon:scudo:primary]
06-28 07:44:49.800  1081  1081 F DEBUG   :       #01 pc 00000000003b33c4  /vendor/lib64/egl/libGLESv2_swiftshader.so (sw::Renderer::executeTask(int)+372) (BuildId: 55dc68f545784192f6cc342a87124194)
06-28 07:44:49.800  1081  1081 F DEBUG   :       #02 pc 477fff00477fff00  <unknown>
06-28 07:44:50.097     0     0 D logd    : logdr: UID=10121 GID=10121 PID=1081 n tail=50 logMask=8 pid=684 start=0ns timeout=0ns
06-28 07:44:50.101     0     0 D logd    : logdr: UID=10121 GID=10121 PID=1081 n tail=50 logMask=1 pid=684 start=0ns timeout=0ns
06-28 07:44:50.479     0     0 D logd    : logdr: UID=10121 GID=10121 PID=1081 n tail=0 logMask=8 pid=684 start=0ns timeout=0ns
06-28 07:44:50.483     0     0 D logd    : logdr: UID=10121 GID=10121 PID=1081 n tail=0 logMask=1 pid=684 start=0ns timeout=0ns
06-28 07:44:50.542     0     0 I init    : Untracked pid 1081 exited with status 0
06-28 07:44:50.568     0     0 I init    : Untracked pid 1083 exited with status 0
06-28 07:44:50.627     0     0 I binder  : 523:775 transaction failed 29189/-22, size 124-0 line 3125
06-28 07:44:50.834     0     0 I binder  : 523:523 transaction failed 29189/-22, size 92-0 line 3125
06-28 07:44:51.471   523  1148 F libc    : Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x78b1071000 in tid 1148 (RenderThread), pid 523 (Binder:523_3)
06-28 07:44:51.607  1152  1152 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-28 07:44:51.607  1152  1152 F DEBUG   : Build fingerprint: 'Android/evk_8mp/evk_8mp:11/
06-28 07:44:51.607  1152  1152 F DEBUG   : Revision: '0'
06-28 07:44:51.607  1152  1152 F DEBUG   : ABI: 'arm64'
06-28 07:44:51.608  1152  1152 F DEBUG   : Timestamp: 2021-06-28 07:44:51+0000
06-28 07:44:51.608  1152  1152 F DEBUG   : pid: 523, tid: 1148, name: RenderThread  >>> system_server <<<
06-28 07:44:51.608  1152  1152 F DEBUG   : uid: 1000
06-28 07:44:51.608  1152  1152 F DEBUG   : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x78b1071000
06-28 07:44:51.608  1152  1152 F DEBUG   :     x0  000000763dd23900  x1  b40000765666e250  x2  0000007714e2d910  x3  0000000000000000
06-28 07:44:51.608  1152  1152 F DEBUG   :     x4  00000076702cde30  x5  0000000000000010  x6  fefefefeff646d68  x7  7f7f7f7f7f7f7f7f
06-28 07:44:51.609  1152  1152 F DEBUG   :     x8  b4000078b1071000  x9  e98074d538218cba  x10 0000000000000001  x11 0000000000000000
06-28 07:44:51.609  1152  1152 F DEBUG   :     x12 00000076702cdf50  x13 0000000000000014  x14 00000076702cf298  x15 000000007d000000
06-28 07:44:51.609  1152  1152 F DEBUG   :     x16 0000007945af4740  x17 0000007945c33bf0  x18 000000764b950000  x19 b400007801049e90
06-28 07:44:51.609  1152  1152 F DEBUG   :     x20 0000007713fb5a46  x21 00000076702d0000  x22 0000007714e2d910  x23 0000007714e2d938
06-28 07:44:51.609  1152  1152 F DEBUG   :     x24 00000076702d0000  x25 b400007741078360  x26 0000000000000000  x27 00000000000fe000
06-28 07:44:51.609  1152  1152 F DEBUG   :     x28 00000000000fc000  x29 00000076702cf7e0
06-28 07:44:51.609  1152  1152 F DEBUG   :     lr  00000077142c2f40  sp  00000076702cf6f0  pc  00000078b1071000  pst 0000000060000000
06-28 07:44:51.754     0     0 I binder  : 523:1092 transaction failed 29189/-22, size 0-0 line 3125
06-28 07:44:51.886     0     0 I VSD_3V3 : disabling
06-28 07:44:51.890     0     0 I can2-stby: disabling
06-28 07:44:51.893     0     0 I can1-stby: disabling
06-28 07:44:52.261  1152  1152 F DEBUG   : backtrace:
06-28 07:44:52.261  1152  1152 F DEBUG   :       #00 pc 0000000000025000  [anon:scudo:primary]
06-28 07:44:52.261  1152  1152 F DEBUG   :       #01 pc 0000000000379f3c  /vendor/lib64/egl/libGLESv2_swiftshader.so (sw::FrameBuffer::copyLocked()+356) (BuildId: 55dc68f545784192f6cc342a87124194)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #02 pc 0000000000379d88  /vendor/lib64/egl/libGLESv2_swiftshader.so (sw::FrameBuffer::copy(sw::Surface*)+208) (BuildId: 55dc68f545784192f6cc342a87124194)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #03 pc 0000000000379170  /vendor/lib64/egl/libGLESv2_swiftshader.so (sw::FrameBufferAndroid::blit(sw::Surface*, sw::RectT<int> const*, sw::RectT<int> const*)+8) (BuildId: 55dc68f545784192f6cc342a87124194)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #04 pc 000000000007ea38  /vendor/lib64/egl/libEGL_swiftshader.so (egl::WindowSurface::swap()+32) (BuildId: 4658b63536857365c91a8288a3b8c460)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #05 pc 0000000000080938  /vendor/lib64/egl/libEGL_swiftshader.so (egl::SwapBuffers(void*, void*)+88) (BuildId: 4658b63536857365c91a8288a3b8c460)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #06 pc 000000000001e964  /system/lib64/libEGL.so (android::eglSwapBuffersWithDamageKHRImpl(void*, void*, int*, int)+636) (BuildId: 8fee691db841bdc2a33e9317c56cc355)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #07 pc 000000000001b0d0  /system/lib64/libEGL.so (eglSwapBuffersWithDamageKHR+72) (BuildId: 8fee691db841bdc2a33e9317c56cc355)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #08 pc 0000000000224640  /system/lib64/libhwui.so (android::uirenderer::renderthread::EglManager::swapBuffers(android::uirenderer::renderthread::Frame const&, SkRect const&)+176) (BuildId: ef8e7960de677f4b75850316851f3904)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #09 pc 000000000021773c  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::swapBuffers(android::uirenderer::renderthread::Frame const&, bool, SkRect const&, android::uirenderer::FrameInfo*, bool*)+92) (BuildId: ef8e7960de677f4b75850316851f3904)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #10 pc 00000000002204a8  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+648) (BuildId: ef8e7960de677f4b75850316851f3904)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #11 pc 00000000002229d0  /system/lib64/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+480) (BuildId: ef8e7960de677f4b75850316851f3904)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #12 pc 0000000000210f64  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+220) (BuildId: ef8e7960de677f4b75850316851f3904)
06-28 07:44:52.261  1152  1152 F DEBUG   :       #13 pc 0000000000232988  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+88) (BuildId: ef8e7960de677f4b75850316851f3904)
06-28 07:44:52.262  1152  1152 F DEBUG   :       #14 pc 000000000001567c  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+260) (BuildId: b81fad2b6b7b7f85c6217d2cb80c9e61)
06-28 07:44:52.262  1152  1152 F DEBUG   :       #15 pc 0000000000014f14  /system/lib64/libutils.so (thread_data_t::trampoline(thread_data_t const*)+412) (BuildId: b81fad2b6b7b7f85c6217d2cb80c9e61)
06-28 07:44:52.262  1152  1152 F DEBUG   :       #16 pc 00000000000b0c08  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: f81965d884d6ebc5e5c3fd825c17a209)
06-28 07:44:52.262  1152  1152 F DEBUG   :       #17 pc 00000000000505d0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: f81965d884d6ebc5e5c3fd825c17a209)
06-28 07:44:52.631     0     0 D logd    : logdr: UID=1000 GID=1000 PID=1152 n tail=50 logMask=8 pid=523 start=0ns timeout=0ns
06-28 07:44:52.638     0     0 D logd    : logdr: UID=1000 GID=1000 PID=1152 n tail=50 logMask=1 pid=523 start=0ns timeout=0ns
06-28 07:44:53.364     0     0 D logd    : logdr: UID=1000 GID=1000 PID=1152 n tail=0 logMask=8 pid=523 start=0ns timeout=0ns
Tags (2)
0 Kudos
0 Replies