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

Version 2.2 fails on start with kotlin.UninitializedPropertyAccessException #260

Closed
ArnyminerZ opened this issue Mar 25, 2024 Discussed in #251 · 0 comments · Fixed by #261
Closed

Version 2.2 fails on start with kotlin.UninitializedPropertyAccessException #260

ArnyminerZ opened this issue Mar 25, 2024 Discussed in #251 · 0 comments · Fixed by #261
Assignees

Comments

@ArnyminerZ
Copy link
Member

Discussed in #251

Originally posted by dllud March 18, 2024
This is a bug report. ICSx⁵ version 2.2 fails on start on my phone (Android 6.0.1) with the following error: kotlin.UninitializedPropertyAccessException: lateinit property preferences has not been initialized.

A tentative solution for this may be found at Kotlin Android Shared Preferences - lateinit property prefs has not been initialized - Stack Overflow.

This happens even on a fresh install, with no app data. Downgrading to version 2.1.1 fixes the issue.

Here's the full log:

03-18 15:56:08.495 18705 18705 E AndroidRuntime: FATAL EXCEPTION: main
03-18 15:56:08.495 18705 18705 E AndroidRuntime: Process: at.bitfire.icsdroid, PID: 18705
03-18 15:56:08.495 18705 18705 E AndroidRuntime: Theme: themes:{default=overlay:it.lucci.cm.greyscaletheme}
03-18 15:56:08.495 18705 18705 E AndroidRuntime: kotlin.UninitializedPropertyAccessException: lateinit property preferences has not been initialized
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at at.bitfire.icsdroid.ui.DonateDialogService$shouldShow$2$1.invoke(SourceFile:0)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at at.bitfire.icsdroid.ui.DonateDialogService$shouldShow$2$1.invoke(SourceFile:0)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.runtime.DisposableEffectImpl.onRemembered(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.runtime.CompositionImpl$RememberEventDispatcher.dispatchRememberObservers(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.runtime.CompositionImpl.applyChangesInLocked(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.runtime.CompositionImpl.applyChanges(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.runtime.CompositionImpl.composeInitial(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.runtime.CompositionImpl.setContent(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(SourceFile:0)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(SourceFile:0)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.ui.platform.AndroidComposeView.setOnViewTreeOwnersAvailable(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.ui.platform.WrappedComposition.setContent(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.ui.platform.WrappedComposition.onStateChanged(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.lifecycle.LifecycleRegistry.addObserver(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(SourceFile:0)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(SourceFile:0)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(SourceFile)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.View.dispatchAttachedToWindow(View.java:14524)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2836)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1372)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1115)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6023)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.Choreographer.doCallbacks(Choreographer.java:670)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.Choreographer.doFrame(Choreographer.java:606)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:739)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:148)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:5461)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
03-18 15:56:08.495 18705 18705 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
03-18 15:56:08.500  3786  6507 W ActivityManager:   Force finishing activity at.bitfire.icsdroid/.ui.views.CalendarListActivity
```</div>
@ArnyminerZ ArnyminerZ self-assigned this Mar 25, 2024
@ArnyminerZ ArnyminerZ linked a pull request Mar 25, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant