'Java Android Studio Application working very slowly and laggy
The application is very laggy and the more things are being clicked, the more it lags. At some point it completely freezes. This is my error log. How can i optimize it? (Full beginner)
NativeAlloc concurrent copying GC freed 8231(560KB) AllocSpace objects, 1(20KB) LOS objects, 49% free, 5936KB/11MB, paused 44.140ms total 1.790s I/Choreographer: Skipped 30 frames! The application may be doing too much work on its main thread. I/OpenGLRenderer: Davey! duration=820ms; Flags=0, IntendedVsync=12357482298756, Vsync=12357982298736, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=12358003456500, AnimationStart=12358003547700, PerformTraversalsStart=12358005401700, DrawStart=12358023891800, SyncQueued=12358058644400, SyncStart=12358063300300, IssueDrawCommandsStart=12358065361800, SwapBuffers=12358274912900, FrameCompleted=12358307408500, DequeueBufferDuration=3954100, QueueBufferDuration=21280700, GpuCompleted=0, I/ample.indistan: Thread[5,tid=11901,WaitingInMainSignalCatcherLoop,Thread*=0xdf380010,peer=0x13600268,"Signal Catcher"]: reacting to signal 3 I/ample.indistan: Mutator lock exclusive owner tid: 18446744073709551615 ThreadList lock owner tid: 11919 ClassLinker classes lock owner tid: 0 ClassLinker dex lock owner tid: 0 I/ample.indistan: Waiting for a blocking GC ObjectsAllocated I/ample.indistan: NativeAlloc concurrent copying GC freed 4035(425KB) AllocSpace objects, 3(60KB) LOS objects, 49% free, 5972KB/11MB, paused 2.528ms total 289.491ms I/ample.indistan: WaitForGcToComplete blocked ObjectsAllocated on ProfileSaver for 5.863ms I/ample.indistan: Wrote stack traces to tombstoned I/Choreographer: Skipped 205 frames! The application may be doing too much work on its main thread. W/ample.indistan: Verification of boolean androidx.core.view.KeyEventDispatcher.actionBarOnMenuKeyEventPre28(android.app.ActionBar, android.view.KeyEvent) took 105.167ms (494.45 bytecodes/s) (1768B approximate peak alloc) W/ample.indistan: Verification of boolean androidx.core.view.KeyEventDispatcher.activitySuperDispatchKeyEventPre28(android.app.Activity, android.view.KeyEvent) took 126.372ms (538.09 bytecodes/s) (1728B approximate peak alloc) V/FA: Recording user engagement, ms: 63317 I/Choreographer: Skipped 322 frames! The application may be doing too much work on its main thread. V/FA: Connecting to remote service V/FA: onActivityCreated V/FA: Connection attempt already in progress V/FA: Activity paused, time: 12386204 V/FA: Activity resumed, time: 12391211 V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress I/Choreographer: Skipped 267 frames! The application may be doing too much work on its main thread. W/RecyclerView: No adapter attached; skipping layout I/OpenGLRenderer: Davey! duration=5309ms; Flags=1, IntendedVsync=12387232708368, Vsync=12391682708190, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=12391699342600, AnimationStart=12391699362500, PerformTraversalsStart=12391709661200, DrawStart=12392393938500, SyncQueued=12392471934000, SyncStart=12392475519700, IssueDrawCommandsStart=12392475611700, SwapBuffers=12392518233700, FrameCompleted=12392545949800, DequeueBufferDuration=1156600, QueueBufferDuration=14934400, GpuCompleted=8223625903103697763, I/OpenGLRenderer: Davey! duration=5411ms; Flags=1, IntendedVsync=12387232708368, Vsync=12391682708190, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=12391699342600, AnimationStart=12391699362500, PerformTraversalsStart=12391709661200, DrawStart=12392632905600, SyncQueued=12392639112300, SyncStart=12392640203300, IssueDrawCommandsStart=12392641107800, SwapBuffers=12392643554700, FrameCompleted=12392645523900, DequeueBufferDuration=514100, QueueBufferDuration=1073700, GpuCompleted=185817465094143, I/Choreographer: Skipped 154 frames! The application may be doing too much work on its main thread. W/RecyclerView: No adapter attached; skipping layout I/OpenGLRenderer: Davey! duration=2957ms; Flags=0, IntendedVsync=12391732774600, Vsync=12394299441164, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=12394309810900, AnimationStart=12394309826300, PerformTraversalsStart=12394327757600, DrawStart=12394468721300, SyncQueued=12394483804300, SyncStart=12394518606400, IssueDrawCommandsStart=12394523119100, SwapBuffers=12394667312700, FrameCompleted=12394725342600, DequeueBufferDuration=6457800, QueueBufferDuration=19058700, GpuCompleted=2314885530818453536, I/Choreographer: Skipped 122 frames! The application may be doing too much work on its main thread.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
