futo-org / grayjay-android

Read-only mirror of Grayjay repo for issue tracking
https://gitlab.futo.org/videostreaming/grayjay
Other
767 stars 48 forks source link

App crashed permanently #1257

Closed ScheldonFernandes closed 1 week ago

ScheldonFernandes commented 2 months ago

What happened?

Screenshot_20240821_185801_Grayjay This morning the app stop working and only show this error mensage, I clean the cache, update, uninstall and reinstall the app, and the problem persist

Grayjay Version

253

What plugins are you seeing the problem on?

All

Plugin Version

No response

When do you experience the issue?

Relevant log output

Version information (version_name = 253, version_code = 253, flavor = stable, build_type = release)
Device information (brand= samsung, manufacturer = samsung, device = gta7lite, version-sdk = 34, version-os = )

(e, ExceptionActivity, 2024-08-21 23:03:24): Uncaught exception ("Contexto desconhecido"): WorkManager is not initialized properly.  You have explicitly disabled WorkManagerInitializer in your manifest, have not manually called WorkManager#initialize at this point, and your Application does not implement Configuration.Provider.

java.lang.IllegalStateException: WorkManager is not initialized properly.  You have explicitly disabled WorkManagerInitializer in your manifest, have not manually called WorkManager#initialize at this point, and your Application does not implement Configuration.Provider.
    at androidx.work.impl.WorkManagerImpl.getInstance(WorkManagerImpl.java:170)
    at androidx.work.WorkManager.getInstance(WorkManager.java:184)
    at com.futo.platformplayer.states.StateApp.scheduleBackgroundWork(StateApp.kt:630)
    at com.futo.platformplayer.states.StateApp.mainAppStarted(StateApp.kt:525)
    at com.futo.platformplayer.activities.MainActivity.onCreate(MainActivity.kt:470)
    at android.app.Activity.performCreate(Activity.java:8960)
    at android.app.Activity.performCreate(Activity.java:8929)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4146)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:230)
    at android.os.Looper.loop(Looper.java:319)
    at android.app.ActivityThread.main(ActivityThread.java:8913)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
TrippyHippyDan commented 2 months ago

I am also having this issue. I have yet to do an uninstall and reinstall. That is my next step.

Version information (version_name = 253, version_code = 253, flavor = stable, build_type = release)
Device information (brand= google, manufacturer = Google, device = akita, version-sdk = 34, version-os = )

(e, ExceptionActivity, 2024-09-02 15:35:21): Uncaught exception ("Unknown Context"): Attempted to add 2 clients with the same ID

java.lang.IllegalStateException: Attempted to add 2 clients with the same ID
    at com.futo.platformplayer.states.StatePlatform$updateAvailableClients$2.invokeSuspend(StatePlatform.kt:212)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
    at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

Screenshot_20240902-103722

TrippyHippyDan commented 2 months ago

I am also having this issue. I have yet to do an uninstall and reinstall. That is my next step.

Version information (version_name = 253, version_code = 253, flavor = stable, build_type = release)
Device information (brand= google, manufacturer = Google, device = akita, version-sdk = 34, version-os = )

(e, ExceptionActivity, 2024-09-02 15:35:21): Uncaught exception ("Unknown Context"): Attempted to add 2 clients with the same ID

java.lang.IllegalStateException: Attempted to add 2 clients with the same ID
    at com.futo.platformplayer.states.StatePlatform$updateAvailableClients$2.invokeSuspend(StatePlatform.kt:212)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
    at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

Uninstalling, rebooting, and reinstalling was the only thing that allowed me to fix this.

usertoroot commented 2 months ago

Looking at this issue now.

usertoroot commented 2 months ago

Proposed fix is out (WorkManager).

Anybody with this issue able to give me some details on which device/android version?

ScheldonFernandes commented 2 months ago

Proposed fix is out (WorkManager).

Anybody with this issue able to give me some details on which device/android version?

Galaxy tab A7 lite , android 14

I resolve the problem by uninstall the app, uninstall apps and documents I don't use, and after that reboot the device. I bet that is related with the legendary bad Samsung store management

Kelvin-FUTO commented 2 months ago

I am also having this issue. I have yet to do an uninstall and reinstall. That is my next step.

Version information (version_name = 253, version_code = 253, flavor = stable, build_type = release)
Device information (brand= google, manufacturer = Google, device = akita, version-sdk = 34, version-os = )

(e, ExceptionActivity, 2024-09-02 15:35:21): Uncaught exception ("Unknown Context"): Attempted to add 2 clients with the same ID

java.lang.IllegalStateException: Attempted to add 2 clients with the same ID
  at com.futo.platformplayer.states.StatePlatform$updateAvailableClients$2.invokeSuspend(StatePlatform.kt:212)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
  at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
  at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

Uninstalling, rebooting, and reinstalling was the only thing that allowed me to fix this.

In next Grayjay version I made it so it no longer crashes. Technically the scenario should be impossible to reach, but atleast nof if you do, it will show a dialog telling you the offending plugins, and allow you to atleast uninstall one.

support-grayjay commented 1 week ago

This seems to be fixed in latest version (264) of Grayjay. Feel free to open a new issue if you are still encountering this.