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

Android: crash after pause/resume when at least one background job was running #65

Open
CrsiX opened this issue May 19, 2023 · 0 comments
Labels
android Only on Android devices bug Something isn't working

Comments

@CrsiX
Copy link
Member

CrsiX commented May 19, 2023

If the game was moved to the background and after some time resumed, it would crash without error screen or anything. The only thing are those logs. Note the line Rejecting re-init on previously-failed class java.lang.Class<com.unciv.utils.concurrency.Dispatcher>: java.lang.ExceptionInInitializerError: (Throwable with no stack trace) below:

[05-19 15:18:18.664 22873:22873 I/Unciv launcher]
onCreate event

[05-19 15:18:18.747 22873:22873 I/Unciv launcher]
onResume event

[05-19 15:18:18.817 22873:22957 D/UncivFiles]
[GLThread 38] Creating UncivFiles, localStoragePath: /data/user/0/com.unciv.app.apiv2/files/, externalStoragePath: /storage/emulated/0/Android/data/com.unciv.app.apiv2/files/

[05-19 15:18:18.869 22873:22957 D/UncivGame]
[GLThread 38] Setting new screen: com.unciv.GameStartScreen@2516286, screenStack: [com.unciv.GameStartScreen@2516286]

[05-19 15:18:18.975 22873:22957 W/unciv.app.apiv2]
Accessing hidden field Ljava/util/Collections$SynchronizedCollection;->mutex:Ljava/lang/Object; (max-target-o, reflection, denied)

[05-19 15:18:18.975 22873:22957 W/unciv.app.apiv2]
Accessing hidden field Ljava/util/Collections$SynchronizedCollection;->c:Ljava/util/Collection; (unsupported, reflection, allowed)

[05-19 15:18:18.976 22873:22957 W/unciv.app.apiv2]
Accessing hidden method Ljava/util/Collections$SynchronizedSet;-><init>(Ljava/util/Set;Ljava/lang/Object;)V (max-target-o, reflection, denied)

[05-19 15:18:18.976 22873:22957 W/unciv.app.apiv2]
Accessing hidden method Ljava/util/Collections$SynchronizedCollection;-><init>(Ljava/util/Collection;Ljava/lang/Object;)V (max-target-o, reflection, denied)

[05-19 15:18:18.976 22873:22957 I/unciv.app.apiv2]
Rejecting re-init on previously-failed class java.lang.Class<com.unciv.utils.concurrency.Dispatcher>: java.lang.ExceptionInInitializerError: 
(Throwable with no stack trace)

[05-19 15:18:18.995 22873:22873 I/Unciv launcher]
onPause event

[05-19 15:18:54.931 22996:22996 I/unciv.app.apiv2]
Late-enabling -Xcheck:jni

[05-19 15:18:55.307 22996:22996 I/Unciv launcher]
onCreate event

[05-19 15:18:55.425 22996:22996 I/Unciv launcher]
onResume event
@CrsiX CrsiX added bug Something isn't working android Only on Android devices labels May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Only on Android devices bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant