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

Crash - Missing zero argument constructor #5540

Closed
ouchadam opened this issue Mar 15, 2022 · 2 comments
Closed

Crash - Missing zero argument constructor #5540

ouchadam opened this issue Mar 15, 2022 · 2 comments
Labels
O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems Z-Crash

Comments

@ouchadam
Copy link
Contributor

ouchadam commented Mar 15, 2022

There's a crash in the verifcation bottom sheet, caused by:

java.lang.InstantiationException: java.lang.Class<im.vector.app.features.crypto.verification.VerificationBottomSheetViewState> has no zero argument constructor
Thread: main, Exception: java.lang.IllegalStateException: Failed to create initial state!
at com.airbnb.mvrx.RealMavericksStateFactory.createInitialState(MavericksStateFactory.kt:39)
at com.airbnb.mvrx.MavericksFactory.create(MavericksFactory.kt:7)
at com.airbnb.mvrx.MavericksViewModelProvider.get$default(MavericksViewModelProvider.kt:34)
at im.vector.app.features.crypto.verification.VerificationBottomSheet$special$$inlined$fragmentViewModel$default$1.invoke(MavericksExtensions.kt:10)
at im.vector.app.features.crypto.verification.VerificationBottomSheet$special$$inlined$fragmentViewModel$default$1.invoke(MavericksExtensions.kt:1)
at com.airbnb.mvrx.DefaultViewModelDelegateFactory$createLazyViewModel$1.invoke(ViewModelDelegateProvider.kt:2)
at com.airbnb.mvrx.DefaultViewModelDelegateFactory$createLazyViewModel$1.invoke(ViewModelDelegateProvider.kt:1)
at com.airbnb.mvrx.lifecycleAwareLazy.getValue(lifecycleAwareLazy.kt:5)
at com.airbnb.mvrx.lifecycleAwareLazy$initializeWhenCreated$1.onCreate(lifecycleAwareLazy.kt:1)
at androidx.lifecycle.FullLifecycleObserverAdapter.onStateChanged(FullLifecycleObserverAdapter.java:8)
at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:3)
at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:45)
at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:5)
at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:2)
at androidx.fragment.app.Fragment.performCreate(Fragment.java:9)
at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:5)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:28)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:122)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:10)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:14)
at androidx.fragment.app.FragmentManager$4.run(FragmentManager.java:1)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.InstantiationException: java.lang.Class<im.vector.app.features.crypto.verification.VerificationBottomSheetViewState> has no zero argument constructor
at java.lang.Class.newInstance(Native Method)
at com.airbnb.mvrx.RealMavericksStateFactory.createInitialState(MavericksStateFactory.kt:23)
@ouchadam ouchadam added T-Defect Something isn't working: bugs, crashes, hangs and other reported problems Z-Crash S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Occasional Affects or can be seen by some users regularly or most users rarely labels Mar 15, 2022
@ouchadam
Copy link
Contributor Author

looks to be caused by tapping the verification container within the timeline instead of the buttons

GIF
crash

@ouchadam
Copy link
Contributor Author

Fixed in 1.4.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems Z-Crash
Projects
None yet
Development

No branches or pull requests

1 participant