Git Product home page Git Product logo

Comments (3)

kuanyingchou avatar kuanyingchou commented on May 11, 2024 1

Hi, @aftabahmadTW , thanks for the full trace. This is probably not related to Hilt or Dagger as neither reads from or writes to the instance state. From the trace the error happens when FragmentStateManager is trying to restore VIEW_STATE_KEY for view hierarchies. Could SignUpActivity contain any rogue Parcelables (e.g. incompatible read/write implementations) in its views?

from dagger.

kuanyingchou avatar kuanyingchou commented on May 11, 2024

Hi, @aftabahmadTW , could you share a more complete stacktrace? It seems that the first lines are missing.

from dagger.

aftabahmadTW avatar aftabahmadTW commented on May 11, 2024

Hi @kuanyingchou Here is the full trace:

Caused by android.os.BadParcelableException: Parcel android.os.Parcel@75eed3b: Unmarshalling unknown type code 3473458 at offset 3412
       at android.os.Parcel.readValue(Parcel.java:4750)
       at android.os.Parcel.readValue(Parcel.java:4398)
       at android.os.Parcel.readSparseArrayInternal(Parcel.java:5481)
       at android.os.Parcel.readValue(Parcel.java:4705)
       at android.os.Parcel.readValue(Parcel.java:4390)
       at android.os.Parcel.-$$Nest$mreadValue()
       at android.os.Parcel$LazyValue.apply(Parcel.java:4488)
       at android.os.Parcel$LazyValue.apply(Parcel.java:4447)
       at android.os.BaseBundle.unwrapLazyValueFromMapLocked(BaseBundle.java:415)
       at android.os.BaseBundle.getValueAt(BaseBundle.java:401)
       at android.os.BaseBundle.getValue(BaseBundle.java:381)
       at android.os.BaseBundle.getValue(BaseBundle.java:364)
       at android.os.BaseBundle.getValue(BaseBundle.java:357)
       at android.os.Bundle.getSparseParcelableArray(Bundle.java:1108)
       at androidx.fragment.app.FragmentStateManager.restoreState(FragmentStateManager.java:408)
       at androidx.fragment.app.FragmentManager.restoreSaveStateInternal(FragmentManager.java:2503)
       at androidx.fragment.app.FragmentManager.attachController(FragmentManager.java:2656)
       at androidx.fragment.app.FragmentController.attachHost(FragmentController.java:117)
       at androidx.fragment.app.FragmentActivity.lambda$init$3(FragmentActivity.java:140)
       at androidx.activity.contextaware.ContextAwareHelper.dispatchOnContextAvailable(ContextAwareHelper.kt:84)
       at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:358)
       at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:217)
       at com.our.package.Hilt_SignUpActivity.onCreate(Hilt_SignUpActivity.java:62)
       at com.our.package.SignUpActivity.onCreate(SignUpActivity.kt:124)
       at android.app.Activity.performCreate(Activity.java:8891)
       at android.app.Activity.performCreate(Activity.java:8856)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1468)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3965)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4136)
       at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:99)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2581)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:224)
       at android.os.Looper.loop(Looper.java:318)
       at android.app.ActivityThread.main(ActivityThread.java:8727)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

SignUpActivity doesn't parcel any complex types into the bundle just a Boolean and a String ID. It only injects a few navigator interfaces.

from dagger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.