[P8lite Android Development] iozho:
There is consistent crash that happens to my device. It starts after 7 days of use. It seems last application that I have used (as starting it) is affected. At some point rom becomes unstable and system_server is being killed and I see lineageos logo. I am not sure if this caused by some setting that I have enabled but any workarounds will be greatly appreciated.

Device: P8 lite 2015 ALE21

Rom: lineage-14.1-20171130_210808-UNOFFICIAL-alice.zip md5 : 309bc3dbcc788a0b42db2d04c91536a4

Gapps nano arm64

Sim slot 1: 4g

Crash snippets:

1 crash:

12-16 08:47:23.851 19835 19858 I OpenGLRenderer: Initialized EGL, version 1.4

12-16 08:47:23.851 19835 19858 D OpenGLRenderer: Swap behavior 1

12-16 08:47:24.476 19835 19858 E Parcel : dup() failed in Parcel::read, i is 0, fds is -1, fd_count is 1, error: Bad file descriptor

12-16 08:47:24.476 19835 19858 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1734: failed to dequeue buffer from native window 0x7fb4054c10; err = -22, buf = 0x0,max_allowed_dequeued_buffers 3

12-16 08:47:24.477 19835 19858 E Parcel : dup() failed in Parcel::read, i is 0, fds is -1, fd_count is 1, error: Bad file descriptor

12-16 08:47:24.477 19835 19858 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1734: failed to dequeue buffer from native window 0x7fb4054c10; err = -22, buf = 0x0,max_allowed_dequeued_buffers 3

12-16 08:47:24.496 19835 19858 E OpenGLRenderer: GL error: GL_INVALID_VALUE

12-16 08:47:24.496 19835 19858 F OpenGLRenderer: GL errors! frameworks/base/libs/hwui/renderthread/CanvasContext.cpp:550

2 crash:

12-16 08:47:07.703 19054 19132 E Surface : queueBuffer: error queuing buffer to SurfaceTexture, -22

12-16 08:47:07.703 19054 19132 E [EGL-ERROR]: void __egl_platform_queue_buffer_android(mali_base_ctx_handle, egl_buffer*):1371: unable to queue buffer (0x0x7f97f93310)

12-16 08:47:12.543 19054 19132 E Parcel : dup() failed in Parcel::read, i is 0, fds is -1, fd_count is 1, error: Bad file descriptor

12-16 08:47:12.543 19054 19132 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1734: failed to dequeue buffer from native window 0x7fb4054c10; err = -22, buf = 0x0,max_allowed_dequeued_buffers 3

12-16 08:47:12.551 19054 19132 E OpenGLRenderer: GL error: GL_INVALID_VALUE

12-16 08:47:12.551 19054 19132 F OpenGLRenderer: GL errors! frameworks/base/libs/hwui/renderthread/CanvasContext.cpp:550

3 crash:

12-16 09:11:40.365 20698 32223 I OpenGLRenderer: Initialized EGL, version 1.4

12-16 09:11:40.365 20698 32223 D OpenGLRenderer: Swap behavior 1

12-16 09:11:42.995 20698 21599 D GraphicsStats: Buffer count: 12

12-16 09:11:44.113 20698 32223 E Parcel : dup() failed in Parcel::read, i is 0, fds is -1, fd_count is 1, error: Bad file descriptor

12-16 09:11:44.113 20698 32223 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22

12-16 09:11:44.114 20698 32223 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1734: failed to dequeue buffer from native window 0x7f92142610; err = -22, buf = 0x0,max_allowed_dequeued_buffers 3

12-16 09:11:44.114 20698 32223 E Parcel : dup() failed in Parcel::read, i is 0, fds is -1, fd_count is 1, error: Bad file descriptor

12-16 09:11:44.115 20698 32223 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22

12-16 09:11:44.115 20698 32223 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1734: failed to dequeue buffer from native window 0x7f92142610; err = -22, buf = 0x0,max_allowed_dequeued_buffers 3

12-16 09:11:44.115 20698 32223 E Parcel : dup() failed in Parcel::read, i is 0, fds is -1, fd_count is 1, error: Bad file descriptor

12-16 09:11:44.115 20698 32223 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1734: failed to dequeue buffer from native window 0x7f92142610; err = -22, buf = 0x0,max_allowed_dequeued_buffers 3

12-16 09:11:44.115 20698 32223 E OpenGLRenderer: GL error: GL_INVALID_VALUE

12-16 09:11:44.115 20698 32223 F OpenGLRenderer: GL errors! frameworks/base/libs/hwui/renderthread/CanvasContext.cpp:550

4 crash:

12-16 09:30:38.281 3896 3938 E Parcel : dup() failed in Parcel::read, i is 0, fds is -1, fd_count is 1, error: Bad file descriptor

12-16 09:30:38.281 3896 3938 E [EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1734: failed to dequeue buffer from native window 0xcc87e808; err = -22, buf = 0x0,max_allowed_dequeued_buffers 3

12-16 09:30:38.293 3896 3938 E OpenGLRenderer: GL error: GL_INVALID_VALUE

12-16 09:30:38.293 3896 3938 F OpenGLRenderer: GL errors! frameworks/base/libs/hwui/renderthread/CanvasContext.cpp:550