Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App bricks it self #355

Open
Cszyn opened this issue Apr 22, 2024 · 2 comments
Open

App bricks it self #355

Cszyn opened this issue Apr 22, 2024 · 2 comments

Comments

@Cszyn
Copy link

Cszyn commented Apr 22, 2024

Describe the bug
App completely stops working and permanently bricks (fixes after reinstall) when attempting to save a 3.5k playlist from Google account to a local playlist

To Reproduce
Steps to reproduce the behavior:

  1. Login to google
  2. Set quality to 129kps
  3. Go to your default liked music list (mine is 3.5k+)
  4. Save/Download to a local playlist
  5. See error

Expected behavior
Playlist starts to download

Screenshots

  1. Error
    Screenshot_20240422_101955_com maxrave simpmusic

  2. after clicking "restart app"
    Screenshot_20240422_102017_com maxrave simpmusic

Log (Error Details)

Build version: 0.2.1
Current date: 2024-04-22 10:19:35
Device: HUAWEI MAR-LX1A
OS version: Android 10 (SDK 29)

Stack trace:
android.database.sqlite.SQLiteException: too many SQL variables (Sqlite code 1 SQLITE_ERROR): , while compiling: SELECT * FROM song WHERE videoId IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,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?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?), (OS error - 11:Try again)
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1030)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:637)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:610)
at android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:66)
at android.database.sqlite.SQLiteQuery.(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:46)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1482)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1452)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.query(FrameworkSQLiteDatabase.kt:156)
at androidx.room.RoomDatabase.query(RoomDatabase.kt:484)
at androidx.room.util.DBUtil.query(DBUtil.kt:75)
at com.maxrave.simpmusic.data.db.DatabaseDao_Impl.getSongByListVideoId(DatabaseDao_Impl.java:3385)
at com.maxrave.simpmusic.data.db.LocalDataSource.getSongByListVideoId(LocalDataSource.kt:43)
at com.maxrave.simpmusic.data.repository.MainRepository$getSongsByListVideoId$2.invokeSuspend(MainRepository.kt:128)
at com.maxrave.simpmusic.data.repository.MainRepository$getSongsByListVideoId$2.invoke(Unknown Source:8)
at com.maxrave.simpmusic.data.repository.MainRepository$getSongsByListVideoId$2.invoke(Unknown Source:4)
at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:57)
at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:226)
at kotlinx.coroutines.flow.internal.ChannelFlowOperatorImpl.flowCollect(ChannelFlow.kt:191)
at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo$suspendImpl(ChannelFlow.kt:153)
at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo(Unknown Source:0)
at kotlinx.coroutines.flow.internal.ChannelFlow$collectToFun$1.invokeSuspend(ChannelFlow.kt:56)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@b801441, Dispatchers.Main.immediate]

User actions:
2024-04-22 10:14:40: MainActivity created
2024-04-22 10:14:41: MainActivity resumed
2024-04-22 10:14:43: MainActivity paused
2024-04-22 10:14:43: MainActivity destroyed
2024-04-22 10:14:43: MainActivity created
2024-04-22 10:14:43: MainActivity resumed
2024-04-22 10:15:21: MainActivity paused
2024-04-22 10:15:25: MainActivity resumed
2024-04-22 10:17:17: MainActivity paused
2024-04-22 10:17:25: MainActivity resumed
2024-04-22 10:17:30: MainActivity paused
2024-04-22 10:17:38: MainActivity resumed

@Cszyn
Copy link
Author

Cszyn commented Apr 22, 2024

I have tried out InnerTune and my phone can handle downloads, so I'm not sure what's the problem here

@maxrave-dev
Copy link
Owner

May be too much requests to local database. I didn't foresee this happening. Will fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants