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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate: 馃挜 Crash 馃挜 com.horcrux.svg.SVGLength.<init> #10752

Closed
melvin-bot bot opened this issue Sep 1, 2022 · 13 comments
Closed

Investigate: 馃挜 Crash 馃挜 com.horcrux.svg.SVGLength.<init> #10752

melvin-bot bot opened this issue Sep 1, 2022 · 13 comments
Labels
Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@melvin-bot
Copy link

melvin-bot bot commented Sep 1, 2022

Firebase has reported a new crash that we need to fix, here are all the details we found:

Fatal Exception: java.lang.NullPointerException

Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference

SVGLength.java line 37 com.horcrux.svg.SVGLength.<init>

Number of Crashes: 20

Device Information

  • Platforms: Android
  • App Versions: 1.1.96-0
  • Devices: Google Pixel 3 12

Stacktraces

Android 1.1.96-0
com.horcrux.svg.SVGLength.<init> (SVGLength.java:37)
com.horcrux.svg.SVGLength.from (SVGLength.java:107)
com.horcrux.svg.LinearGradientView.setX1 (LinearGradientView.java:50)
com.horcrux.svg.RenderableViewManager$LinearGradientManager.setX1 (RenderableViewManager.java:1806)
com.horcrux.svg.RenderableViewManager$LinearGradientManager.setX1 (RenderableViewManager.java:1770)
com.facebook.react.viewmanagers.RNSVGLinearGradientManagerDelegate.setProperty (RNSVGLinearGradientManagerDelegate.java:59)
com.facebook.react.uimanager.ViewManagerPropertyUpdater.updateProps (ViewManagerPropertyUpdater.java:46)
com.facebook.react.uimanager.ViewManager.updateProperties (ViewManager.java:46)
com.facebook.react.uimanager.NativeViewHierarchyManager.updateProperties (NativeViewHierarchyManager.java:142)
com.facebook.react.uimanager.UIImplementation.synchronouslyUpdateViewOnUIThread (UIImplementation.java:305)
com.facebook.react.uimanager.UIManagerModule.synchronouslyUpdateViewOnUIThread (UIManagerModule.java:400)
com.facebook.react.animated.PropsAnimatedNode.restoreDefaultValues (PropsAnimatedNode.java:90)
com.facebook.react.animated.NativeAnimatedNodesManager.restoreDefaultValues (NativeAnimatedNodesManager.java:470)
com.facebook.react.animated.NativeAnimatedModule$20.execute (NativeAnimatedModule.java:866)
com.facebook.react.animated.NativeAnimatedModule$ConcurrentOperationQueue.executeBatch (NativeAnimatedModule.java:147)
com.facebook.react.animated.NativeAnimatedModule$2.execute (NativeAnimatedModule.java:324)
com.facebook.react.uimanager.UIViewOperationQueue$UIBlockOperation.execute (UIViewOperationQueue.java:579)
com.facebook.react.uimanager.UIViewOperationQueue$1.run (UIViewOperationQueue.java:915)
com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches (UIViewOperationQueue.java:1026)
com.facebook.react.uimanager.UIViewOperationQueue.access$2600 (UIViewOperationQueue.java:47)
com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded (UIViewOperationQueue.java:1086)
com.facebook.react.uimanager.GuardedFrameCallback.doFrame (GuardedFrameCallback.java:29)
com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame (ReactChoreographer.java:175)
com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame (ChoreographerCompat.java:85)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:1035)
android.view.Choreographer.doCallbacks (Choreographer.java:845)
android.view.Choreographer.doFrame (Choreographer.java:775)
android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1022)
android.os.Handler.handleCallback (Handler.java:938)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loopOnce (Looper.java:201)
android.os.Looper.loop (Looper.java:288)
android.app.ActivityThread.main (ActivityThread.java:7842)
java.lang.reflect.Method.invoke
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1003)

Internal Firebase Info

馃挜 DO NOT EDIT THIS SECTION 馃挜

Crash IDs: c829986edd9dbc0c3a548342190f4600
Exception: Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference

@melvin-bot melvin-bot bot added Daily KSv2 External Added to denote the issue can be worked on by a contributor labels Sep 1, 2022
@melvin-bot
Copy link
Author

melvin-bot bot commented Sep 1, 2022

Triggered auto assignment to @laurenreidexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@parasharrajat
Copy link
Member

parasharrajat commented Sep 1, 2022

Do not make it external. This is a crash from #10334 so technically a regression.

cc: @mateusbra

I faced this issue during review only once so I thought it is just a cache issue but it seems it is real.

@laurenreidexpensify laurenreidexpensify added Internal Requires API changes or must be handled by Expensify staff Engineering and removed External Added to denote the issue can be worked on by a contributor labels Sep 1, 2022
@melvin-bot
Copy link
Author

melvin-bot bot commented Sep 1, 2022

Triggered auto assignment to @mountiny (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@mountiny
Copy link
Contributor

mountiny commented Sep 1, 2022

@parasharrajat Why could this not be External?

@parasharrajat
Copy link
Member

I am considering it as a regression for now.

@mountiny
Copy link
Contributor

mountiny commented Sep 1, 2022

Ok I see, so this is coming from Staging, should this be a deploy blocker in your opinion? @parasharrajat seems like this package version is only in staging

@mateusbra Would you be able to look ad this? We could revert in case this is causing more substantial issues.

@parasharrajat
Copy link
Member

I don't this is affecting Production. This is QA passed. In fact, I only faced it once while reviewing the PR. It may be caching issue.

@mateusbra
Copy link
Contributor

I'll investigate it, do you have a reprodution steps for this issue?

@AndrewGable
Copy link
Contributor

Reproduction steps are here: #10757

@parasharrajat
Copy link
Member

Let's revert that PR and only upgrad a minor version.

@AndrewGable
Copy link
Contributor

Closed via #10775, let's bring further discussion to #10221

@melvin-bot
Copy link
Author

melvin-bot bot commented Sep 2, 2022

This crash occurred again and has not been fully fixed, reopening issue 馃攧

@melvin-bot melvin-bot bot reopened this Sep 2, 2022
@mountiny
Copy link
Contributor

mountiny commented Sep 2, 2022

This is not coming from the latest staging app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

5 participants