Android Lollipop 5.1: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x9e985ff8 in tid 4093 (RenderThread) / when using lot of nine patch graphics

流过昼夜 提交于 2019-11-29 00:17:28

So far (even in Android M) there's no bug fix for the graphics driver bug (Adreno 420), but I found a way to work around the bug. It's definitely not a long time solution, but for the moment it's just the best available to stop apps from crashing.

I reduced the number of graphics layers to a minimum (flattened many layered graphics)

I disabled GPU rendering for particular graphic layers. It slows the drawing down a bit, but not significant.

view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

Within the "software" layers, you can still set particular views to "hardware" rendering, if you need to.

view.setLayerType(View.LAYER_TYPE_HARDWARE, null);

I have a some problem, an I added below code to Android Manifest. It is work fine.

<application        
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/CustomTheme"
    android:allowBackup="true"           
    android:vmSafeMode="true"       
    android:allowClearUserData="true"
    android:hardwareAccelerated="true" >
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!