mcruncher / worshipsongs-android

Android app for Worship Songs
GNU General Public License v3.0
8 stars 8 forks source link

App Crash: android.database.CursorWindowAllocationException #593

Closed sskjames closed 1 year ago

sskjames commented 1 year ago

Affected versions: Android 8.1 (76%), 8.0 (24%)

Exception android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. 
  at android.database.CursorWindow.<init> (CursorWindow.java:108)
  at android.database.AbstractWindowedCursor.clearOrCreateWindow (AbstractWindowedCursor.java:198)
  at android.database.sqlite.SQLiteCursor.fillWindow (SQLiteCursor.java:138)
  at android.database.sqlite.SQLiteCursor.getCount (SQLiteCursor.java:132)
  at android.database.AbstractCursor.moveToPosition (AbstractCursor.java:220)
  at android.database.AbstractCursor.moveToFirst (AbstractCursor.java:259)
  at org.worshipsongs.service.SongBookService.findSongBookNames (SongBookService.kt:62)
  at org.worshipsongs.service.SongBookService.findFormattedSongBookNames (SongBookService.kt:45)
  at org.worshipsongs.fragment.SongsFragment.showSongBook (SongsFragment.kt:335)
  at org.worshipsongs.fragment.SongsFragment.setViews (SongsFragment.kt:330)
  at org.worshipsongs.fragment.SongsFragment.setViews (SongsFragment.kt:43)
  at org.worshipsongs.adapter.TitleAdapter.setViews (TitleAdapter.kt:48)
  at org.worshipsongs.adapter.TitleAdapter.getView (TitleAdapter.kt:34)
  at android.widget.AbsListView.obtainView (AbsListView.java:2430)
  at android.widget.ListView.measureHeightOfChildren (ListView.java:1418)
  at android.widget.ListView.onMeasure (ListView.java:1325)
  at android.view.View.measure (View.java:22333)
  at android.widget.RelativeLayout.measureChildHorizontal (RelativeLayout.java:715)
  at android.widget.RelativeLayout.onMeasure (RelativeLayout.java:461)
  at android.view.View.measure (View.java:22333)
  at androidx.viewpager.widget.ViewPager.onMeasure (ViewPager.java:1638)
  at android.view.View.measure (View.java:22333)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6704)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1514)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:806)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:685)
  at android.view.View.measure (View.java:22333)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6704)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:185)
  at android.view.View.measure (View.java:22333)
  at android.widget.RelativeLayout.measureChild (RelativeLayout.java:676)
  at android.widget.RelativeLayout.onMeasure (RelativeLayout.java:479)
  at android.view.View.measure (View.java:22333)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6704)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:185)
  at android.view.View.measure (View.java:22333)
  at androidx.constraintlayout.widget.ConstraintLayout$Measurer.measure (ConstraintLayout.java:811)
  at androidx.constraintlayout.core.widgets.analyzer.BasicMeasure.measure (BasicMeasure.java:466)
  at androidx.constraintlayout.core.widgets.analyzer.BasicMeasure.measureChildren (BasicMeasure.java:134)
  at androidx.constraintlayout.core.widgets.analyzer.BasicMeasure.solverMeasure (BasicMeasure.java:278)
  at androidx.constraintlayout.core.widgets.ConstraintWidgetContainer.measure (ConstraintWidgetContainer.java:120)
  at androidx.constraintlayout.widget.ConstraintLayout.resolveSystem (ConstraintLayout.java:1594)
  at androidx.constraintlayout.widget.ConstraintLayout.onMeasure (ConstraintLayout.java:1708)
  at android.view.View.measure (View.java:22333)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6704)
  at androidx.coordinatorlayout.widget.CoordinatorLayout.onMeasureChild (CoordinatorLayout.java:760)
  at com.google.android.material.appbar.HeaderScrollingViewBehavior.onMeasureChild (HeaderScrollingViewBehavior.java:99)
  at com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior.onMeasureChild (AppBarLayout.java:2003)
  at androidx.coordinatorlayout.widget.CoordinatorLayout.onMeasure (CoordinatorLayout.java:831)
  at android.view.View.measure (View.java:22333)
  at androidx.drawerlayout.widget.DrawerLayout.onMeasure (DrawerLayout.java:1119)
  at android.view.View.measure (View.java:22333)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6704)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:185)
  at androidx.appcompat.widget.ContentFrameLayout.onMeasure (ContentFrameLayout.java:145)
  at android.view.View.measure (View.java:22333)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6704)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1514)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:806)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:685)
  at android.view.View.measure (View.java:22333)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6704)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:185)
  at android.view.View.measure (View.java:22333)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6704)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1514)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:806)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:685)
  at android.view.View.measure (View.java:22333)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6704)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:185)
  at com.android.internal.policy.DecorView.onMeasure (DecorView.java:806)
  at android.view.View.measure (View.java:22333)
  at android.view.ViewRootImpl.performMeasure (ViewRootImpl.java:2736)
  at android.view.ViewRootImpl.measureHierarchy (ViewRootImpl.java:1724)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1985)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1612)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7391)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:970)
  at android.view.Choreographer.doCallbacks (Choreographer.java:782)
  at android.view.Choreographer.doFrame (Choreographer.java:717)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:956)
  at android.os.Handler.handleCallback (Handler.java:790)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:198)
  at android.app.ActivityThread.main (ActivityThread.java:7055)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:523)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:836)
sskjames commented 1 year ago

This is a duplicate of #578