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

Fatal Exception: kotlin.UninitializedPropertyAccessException lateinit property transitionImageAnimator has not been initialized #98

Open
nomizodiac opened this issue May 12, 2019 · 4 comments

Comments

@nomizodiac
Copy link

nomizodiac commented May 12, 2019

I am getting this issue

Fatal Exception: kotlin.UninitializedPropertyAccessException
lateinit property transitionImageAnimator has not been initialized

com.stfalcon.imageviewer.viewer.view.ImageViewerView.dispatchTouchEvent (ImageViewerView.kt:155)
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2668)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2668)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2668)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2668)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2668)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2668)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2668)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)
android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2668)
android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2257)
com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent (PhoneWindow.java:2447)
com.android.internal.policy.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1766)
android.app.Dialog.dispatchTouchEvent (Dialog.java:797)
androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent (WindowCallbackWrapper.java:69)
com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent (PhoneWindow.java:2408)
android.view.View.dispatchPointerEvent (View.java:9663)
android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent (ViewRootImpl.java:4816)
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess (ViewRootImpl.java:4670)
android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4168)
android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4221)
android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:4187)
android.view.ViewRootImpl$AsyncInputStage.forward (ViewRootImpl.java:4333)
android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4195)
android.view.ViewRootImpl$AsyncInputStage.apply (ViewRootImpl.java:4390)
android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4168)
android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4221)
android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:4187)
android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4195)
android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4168)
android.view.ViewRootImpl.deliverInputEvent (ViewRootImpl.java:6663)
android.view.ViewRootImpl.doProcessInputEvents (ViewRootImpl.java:6637)
android.view.ViewRootImpl.enqueueInputEvent (ViewRootImpl.java:6580)
android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent (ViewRootImpl.java:6838)
android.view.InputEventReceiver.dispatchInputEvent (InputEventReceiver.java:185)
android.os.MessageQueue.nativePollOnce (MessageQueue.java)
android.os.MessageQueue.next (MessageQueue.java:328)
android.os.Looper.loop (Looper.java:164)
android.app.ActivityThread.main (ActivityThread.java:5845)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:907)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:768)

@LifeD
Copy link

LifeD commented Jun 4, 2019

I got the same error. It happens when I click several times too fast to open image in viewer. Maybe it trying to zoom image which doesn't loaded yet.

@SubhankarCodeGeek
Copy link

I got the same error as you mentioned @nomizodiac @LifeD

@htchaan
Copy link

htchaan commented Aug 17, 2021

Same, and the stack trace is not helpful:

Fatal Exception: kotlin.UninitializedPropertyAccessException: lateinit property transitionImageAnimator has not been initialized
       at com.stfalcon.imageviewer.viewer.view.ImageViewerView.dispatchTouchEvent(ImageViewerView.java:155)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2865)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2492)
       at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:559)
       at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1870)
       at android.app.Dialog.dispatchTouchEvent(Dialog.java:1057)
       at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
       at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:521)
       at android.view.View.dispatchPointerEvent(View.java:10952)
       at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5121)
       at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4973)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4504)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4557)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4523)
       at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4656)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4531)
       at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4713)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4504)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4557)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4523)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4531)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4504)
       at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7011)
       at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6940)
       at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6901)
       at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7121)
       at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
       at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
       at android.os.MessageQueue.next(MessageQueue.java:323)
       at android.os.Looper.loop(Looper.java:136)
       at android.app.ActivityThread.main(ActivityThread.java:6682)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1534)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1424)

@LifeD
Copy link

LifeD commented Aug 17, 2021

@htchaan use this library instead

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

No branches or pull requests

4 participants