open-ani / animeko

一站式在线弹幕追番平台:全自动 BT + 在线多数据源聚合,离线缓存,Bangumi 收藏同步,弹幕云过滤 ... 100% Kotlin Compose Multiplatform
https://myani.org
GNU Affero General Public License v3.0
2.04k stars 64 forks source link

Issues for 4.0.0-beta03 #1187

Closed Him188 closed 2 weeks ago

chivehao commented 2 weeks ago

我小米14pro点开白屏,没办法只能退回正式版了

chivehao commented 2 weeks ago

小米能进,但是三方应用异常检测到异常了:

应用版本:4.0.0-beta03
java.lang.RuntimeException: Unable to create application me.him188.ani.android.AniApplication: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service me.him188.ani/.app.domain.torrent.service.AniTorrentService
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7529)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2394)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:224)
    at android.os.Looper.loop(Looper.java:318)
    at android.app.ActivityThread.main(ActivityThread.java:8759)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Caused by: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service me.him188.ani/.app.domain.torrent.service.AniTorrentService
    at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
    at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
    at android.os.Parcel.readParcelableInternal(Parcel.java:4870)
    at android.os.Parcel.readParcelable(Parcel.java:4852)
    at android.os.Parcel.createExceptionOrNull(Parcel.java:3052)
    at android.os.Parcel.createException(Parcel.java:3041)
    at android.os.Parcel.readException(Parcel.java:3024)
    at android.os.Parcel.readException(Parcel.java:2966)
    at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:6492)
    at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1942)
    at android.app.ContextImpl.startForegroundService(ContextImpl.java:1917)
    at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:841)
    at me.him188.ani.android.AniApplication.startAniTorrentService(Unknown Source:61)
    at me.him188.ani.android.AniApplication.onCreate(Unknown Source:60)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1323)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7522)
    ... 9 more
Him188 commented 2 weeks ago

@StageGuard

StageGuard commented 2 weeks ago

小米能进,但是三方应用异常检测到异常了:

应用版本:4.0.0-beta03
java.lang.RuntimeException: Unable to create application me.him188.ani.android.AniApplication: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service me.him188.ani/.app.domain.torrent.service.AniTorrentService
  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7529)
  at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2394)
  at android.os.Handler.dispatchMessage(Handler.java:106)
  at android.os.Looper.loopOnce(Looper.java:224)
  at android.os.Looper.loop(Looper.java:318)
  at android.app.ActivityThread.main(ActivityThread.java:8759)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Caused by: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service me.him188.ani/.app.domain.torrent.service.AniTorrentService
  at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
  at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
  at android.os.Parcel.readParcelableInternal(Parcel.java:4870)
  at android.os.Parcel.readParcelable(Parcel.java:4852)
  at android.os.Parcel.createExceptionOrNull(Parcel.java:3052)
  at android.os.Parcel.createException(Parcel.java:3041)
  at android.os.Parcel.readException(Parcel.java:3024)
  at android.os.Parcel.readException(Parcel.java:2966)
  at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:6492)
  at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1942)
  at android.app.ContextImpl.startForegroundService(ContextImpl.java:1917)
  at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:841)
  at me.him188.ani.android.AniApplication.startAniTorrentService(Unknown Source:61)
  at me.him188.ani.android.AniApplication.onCreate(Unknown Source:60)
  at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1323)
  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7522)
  ... 9 more

有更多信息吗?是在什么条件下触发的