avexxx3 / Ragraa

Frontend application for Flex (Student portal of NUCES)
5 stars 0 forks source link

Crash on 2nd Open #1

Open thequantumcog opened 1 month ago

thequantumcog commented 1 month ago

After Logging in, The app Works until I close it and open it again. Here is log:

FATAL EXCEPTION: main
Process: com.avex.ragraa, PID: 29470
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:590)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
    ... 1 more
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Constructor.newInstance0(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
    at V1.c.v0(SourceFile:12)
    at androidx.lifecycle.W.d(SourceFile:119)
    at androidx.lifecycle.W.a(SourceFile:1)
    at androidx.lifecycle.W.c(SourceFile:5)
    at androidx.lifecycle.T.c(SourceFile:61)
    at androidx.lifecycle.X.b(SourceFile:5)
    at i.c.u(SourceFile:119)
    at androidx.lifecycle.a0.a(SourceFile:91)
    at V1.c.H0(SourceFile:104)
    at V1.c.S1(SourceFile:10)
    at V1.c.l(SourceFile:430)
    at M1.a.a(SourceFile:133)
    at M1.a.n(SourceFile:28)
    at X.b.n(SourceFile:54)
    at M.u1.n(SourceFile:188)
    at X.b.n(SourceFile:54)
    at D.r0.t(SourceFile:5)
    at D.Y.d(SourceFile:148)
    at M.x1.a(SourceFile:143)
    at M1.a.a(SourceFile:74)
    at M1.a.n(SourceFile:16)
    at X.b.n(SourceFile:54)
    at D.r0.t(SourceFile:5)
    at D.Y.c(SourceFile:227)
    at M.U1.a(SourceFile:79)
    at M.H.a(SourceFile:209)
    at M.H.n(SourceFile:28)
    at X.b.n(SourceFile:54)
    at D.r0.t(SourceFile:5)
    at D.Y.d(SourceFile:148)
    at M.G0.b(SourceFile:314)
    at X1.c.a(SourceFile:994)
    at M1.c.n(SourceFile:186)
    at X.b.n(SourceFile:54)
    at y0.t0.a(SourceFile:57)
    at s.j.a(SourceFile:59)
    at s.j.n(SourceFile:140)
    at X.b.n(SourceFile:54)
    at D.r0.t(SourceFile:5)
    at D.Y.d(SourceFile:148)
    at y0.u0.a(SourceFile:311)
    at M.J0.a(SourceFile:171)
    at M.J0.n(SourceFile:28)
    at X.b.n(SourceFile:54)
    at D.r0.t(SourceFile:5)
    at D.Y.d(SourceFile:148)
    at y0.c0.a(SourceFile:593)
    at y0.A1.a(SourceFile:237)
    at y0.A1.n(SourceFile:28)
    at X.b.n(SourceFile:54)
    at D.r0.t(SourceFile:5)
    at D.Y.c(SourceFile:227)
    at y0.A1.a(SourceFile:213)
    at y0.A1.n(SourceFile:16)
    at X.b.n(SourceFile:54)
    at D.Y.e0(SourceFile:15)
    at P.r.p(SourceFile:201)
    at P.y.n(SourceFile:31)
    at P.K0.a(SourceFile:35)
    at P.y.o(SourceFile:9)
    at P.y.c(SourceFile:3)
    at u.t.r(SourceFile:1620)
    at y0.A.setOnViewTreeOwnersAvailable(SourceFile:7)
    at y0.B1.c(SourceFile:10)
    at y0.B1.e(SourceFile:19)
    at androidx.lifecycle.u.a(SourceFile:23)
    at androidx.lifecycle.v.a(SourceFile:216)
    at u.t.r(SourceFile:1588)
    at y0.A.onAttachedToWindow(SourceFile:125)
    at android.view.View.dispatchAttachedToWindow(View.java:22663)
    at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3495)
    at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3502)
    at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3502)
    at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3502)
    at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3502)
    at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3502)
    at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3502)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3251)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2718)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9937)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1406)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1415)
    at android.view.Choreographer.doCallbacks(Choreographer.java:1015)
    at android.view.Choreographer.doFrame(Choreographer.java:945)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1389)
    at android.os.Handler.handleCallback(Handler.java:959)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8592)
    ... 3 more
Caused by: java.lang.IllegalArgumentException: Cannot round NaN value.
    at Y1.a.V1(SourceFile:16)
    at R1.f.f(SourceFile:353)
    at R1.f.<init>(SourceFile:55)
    ... 95 more
avexxx3 commented 1 month ago

The logs are pretty much useless as is, I didn't realize at the time that obfuscating the code will butcher the stack trace, so I can't really tell what's happening here.

The app's in process of being uploaded to the play store and its builtin crash analytics will help in figuring out any bugs, so please install that. Sorry for the troubles

https://docs.google.com/forms/d/e/1FAIpQLSe5fp5kXsHCyHDRhNsopCGmH4Nntu8767VJ1mj7iZa4SaTsqA/viewform

thequantumcog commented 1 month ago

I can't replicate this bug now...