Skip to content

删除文件夹的歌曲后,软件刷新音乐库,移除音乐数据失败崩溃 #2090

Description

@Panda-Panta

在反馈此问题前请注意 Please note before reporting this issue

  • 已经查看相关帮助内容 Read more about the Salt Player help content
  • 已经在本仓库搜索相关内容(避免重复反馈)Already searched for related content in this repository (to avoid duplicate feedback)
  • 确认仅将提交一个问题(多个问题或者备注提及另外的问题请重新提交新的)Confirm to submit only one issue (if multiple issues or notes mention other issues, please submit a new one separately)

平台 Platform

  • Android
  • Windows
  • HarmonyOS

设备型号 Device Model

No response

系统版本 System Version

No response

软件版本 App Version

No response

描述问题 Describe issue

删除部分音乐后,软件刷新音乐库报错,选择移除无法读取的音乐并取消歌单保护后,发生崩溃

Report Time 2026-07-18 12:44:13

SPW 1.15.2 (steam)
Build Time 2026-07-08 12:33:19

An uncaught exception occurred

androidx.sqlite.SQLiteException: Error code: 787, message: FOREIGN KEY constraint failed
at androidx.sqlite.driver.bundled.BundledSQLiteStatementKt.nativeStep(Native Method)
at androidx.sqlite.driver.bundled.BundledSQLiteStatementKt.Ԩ(Unknown Source)
at androidx.sqlite.driver.bundled.ԩ.step(Unknown Source)
at androidx.room.coroutines.ConnectionWithLock$CachedStatement.step(Unknown Source)
at androidx.room.EntityInsertAdapter.insert(Unknown Source)
at androidx.compose.ui.ౡ.Ϳ(Unknown Source)
at androidx.room.util.DBUtil__DBUtil_jvmNativeKt$performSuspending$2$invokeSuspend$$inlined$internalPerform$1$1.invokeSuspend(Unknown Source)
at androidx.room.util.DBUtil__DBUtil_jvmNativeKt$performSuspending$2$invokeSuspend$$inlined$internalPerform$1$1.invoke(Unknown Source)
at androidx.room.util.DBUtil__DBUtil_jvmNativeKt$performSuspending$2$invokeSuspend$$inlined$internalPerform$1$1.invoke(Unknown Source)
at androidx.room.coroutines.PooledConnectionImpl.transaction(Unknown Source)
at androidx.room.coroutines.PooledConnectionImpl.withTransaction(Unknown Source)
at androidx.room.util.DBUtil__DBUtil_jvmNativeKt$performSuspending$2$invokeSuspend$$inlined$internalPerform$1.invokeSuspend(Unknown Source)
at androidx.room.util.DBUtil__DBUtil_jvmNativeKt$performSuspending$2$invokeSuspend$$inlined$internalPerform$1.invoke(Unknown Source)
at androidx.room.util.DBUtil__DBUtil_jvmNativeKt$performSuspending$2$invokeSuspend$$inlined$internalPerform$1.invoke(Unknown Source)
at androidx.room.coroutines.ConnectionPoolImpl$useConnection$4.invokeSuspend(Unknown Source)
at androidx.room.coroutines.ConnectionPoolImpl$useConnection$4.invoke(Unknown Source)
at androidx.room.coroutines.ConnectionPoolImpl$useConnection$4.invoke(Unknown Source)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatched(Unknown Source)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Unknown Source)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Unknown Source)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at androidx.room.coroutines.ConnectionPoolImpl.useConnection(Unknown Source)
at androidx.room.RoomConnectionManager.useConnection(Unknown Source)
at androidx.room.RoomDatabase.useConnection(Unknown Source)
at androidx.room.util.DBUtil__DBUtil_jvmNativeKt$performSuspending$2.invokeSuspend(Unknown Source)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(Unknown Source)
at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(Unknown Source)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(Unknown Source)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(Unknown Source)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(Unknown Source)
Suppressed: androidx.sqlite.SQLiteException: Error code: 787, message: FOREIGN KEY constraint failed
at androidx.sqlite.driver.bundled.BundledSQLiteStatementKt.nativeReset(Native Method)
at androidx.sqlite.driver.bundled.BundledSQLiteStatementKt.ԩ(Unknown Source)
at androidx.sqlite.driver.bundled.ԩ.reset(Unknown Source)
at androidx.room.coroutines.ConnectionWithLock$CachedStatement.close(Unknown Source)
at kotlin.jdk7.AutoCloseableKt.closeFinally(Unknown Source)
... 29 more
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@6a07328c, Dispatchers.Default]

Metadata

Metadata

Assignees

Labels

Bug不符合业务逻辑P1特别重要WindowsSalt Player for Windows已完成/待发布已在开发中修复或完成功能开发,等待发布,用以指示里程碑 若发布后依旧存在问题请重新打开

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions