App crashes java.lang.NullPointerException app.rive.runtime.kotlin.fonts.SystemFontsParser$Companion.readFont
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start at SystemFontsParser.Companion.readFont in the stack trace and trace the callers through readLegacyFamily, readXML, and FontHelper.getFallbackFont. Investigate the production path on Oppo and OnePlus devices; done means loading the Rive resource no longer crashes with a NullPointerException there.
Written by the indexing model from the issue text.
Description
Getting a random crash on production, here is the stack trace
java.lang.NullPointerException (crashed)
app.rive.runtime.kotlin.fonts.SystemFontsParser$Companion.readFont (SourceFile:530)
app.rive.runtime.kotlin.fonts.SystemFontsParser$Companion.readLegacyFamily (SourceFile:405)
app.rive.runtime.kotlin.fonts.SystemFontsParser$Companion.readXML (SourceFile:296)
app.rive.runtime.kotlin.fonts.SystemFontsParser$Companion.parseFontsXML$kotlin_release (SourceFile:280)
app.rive.runtime.kotlin.fonts.FontHelper$Companion.getSystemFonts (SourceFile:208)
app.rive.runtime.kotlin.fonts.FontHelper$Companion.getFallbackFont (SourceFile:117)
app.rive.runtime.kotlin.fonts.FontHelper$Companion.getFallbackFontBytes (SourceFile:250)
app.rive.runtime.kotlin.core.File.cppArtboardByIndex (Native Method:0)
app.rive.runtime.kotlin.core.File.artboard (SourceFile:91)
app.rive.runtime.kotlin.core.File.getFirstArtboard (SourceFile:60)
app.rive.runtime.kotlin.controllers.RiveFileController.setupScene$kotlin_release (SourceFile:424)
app.rive.runtime.kotlin.RiveAnimationView$setRiveBytes$2.invoke (SourceFile:798)
app.rive.runtime.kotlin.RiveAnimationView$setRiveBytes$2.invoke (SourceFile:796)
app.rive.runtime.kotlin.RiveAnimationView.loadFileFromResource (SourceFile:421)
app.rive.runtime.kotlin.RiveAnimationView.setRiveBytes (SourceFile:801)
app.rive.runtime.kotlin.RiveAnimationView.setRiveBytes$default (SourceFile:774)
com.rivereactnative.RiveReactNativeView.setUrlRiveResource$lambda$9 (SourceFile:433)
com.rivereactnative.RiveReactNativeView.$r8$lambda$iOANrzy2_jRbdJSEtHNc6Vi4Wog (SourceFile:1)
com.rivereactnative.RiveReactNativeView$$InternalSyntheticLambda$1$5fa9d9510a7fc69678edf03f9514ecad37517b0574dd61d988f3cb9a46d9fde0$0.onResponse (SourceFile:1)
com.rivereactnative.RNRiveFileRequest.deliverResponse (SourceFile:585)
com.rivereactnative.RNRiveFileRequest.deliverResponse (SourceFile:579)
com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run (SourceFile:108)
android.os.Handler.handleCallback (Handler.java:959)
android.os.Handler.dispatchMessage (Handler.java:100)
android.os.Looper.loopOnce (Looper.java:282)
android.os.Looper.loop (Looper.java:387)
android.app.ActivityThread.main (ActivityThread.java:9505)
java.lang.reflect.Method.invoke (Native Method:0)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:600)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1005)
Mostly coming on Oppo and OnePlus.
- Dominant language
- TypeScript
- Stars
- 783
- Forks
- 81
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rive-app/rive-react-native
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
rive-app/rive-react-native#433 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
rive-app/rive-react-native#431 · 2 comments ·
-
[Android] Rive events dispatched off the UI thread can deadlock with Reanimated under Fabric (ANR) Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
rive-app/rive-react-native#444 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
rive-app/rive-react-native#441 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
rive-app/rive-react-native#440 ·
All issues in rive-app/rive-react-native
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
newrelic-experimental/preflight#793 · 1 comment ·
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BasedHardware/omi#15320 ·