farkam135 / GoIV

https://www.reddit.com/r/goiv
Other
372 stars 138 forks source link

[BUG] Crash while scanning specific Pokémon #1043

Closed rtlsilva closed 5 years ago

rtlsilva commented 5 years ago

Attempting to scan the following Pokémon always crashes GoIV with a "GoIV keeps stopping" message. It's a normally caught Azumarill dated 17/04/2019. Other Azumarill are scanned successfully. The crash happens as soon as the quick IV preview attempts to calculate IVs, and it also happens when triggering the scan manually. Clearing app cache/data did not work. Screenshot_20190417-182103

Environment:

Logcat:


04-17 18:15:17.839 E/AndroidRuntime(19037): FATAL EXCEPTION: main
04-17 18:15:17.839 E/AndroidRuntime(19037): Process: org.opensource.goiv, PID: 19037
04-17 18:15:17.839 E/AndroidRuntime(19037): java.lang.IllegalStateException: Optional.get() cannot be called on an absent value
04-17 18:15:17.839 E/AndroidRuntime(19037):     at com.google.common.base.a.c(Absent.java:43)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at com.kamron.pogoiv.scanlogic.PokemonNameCorrector.getPossiblePokemon(PokemonNameCorrector.java:137)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at com.kamron.pogoiv.scanlogic.ScanResult.<init>(ScanResult.java:56)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at com.kamron.pogoiv.pokeflycomponents.IVPreviewPrinter$QuickIVScanAttempt.runQuickScan(IVPreviewPrinter.java:120)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at com.kamron.pogoiv.pokeflycomponents.IVPreviewPrinter$QuickIVScanAttempt.run(IVPreviewPrinter.java:79)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at android.os.Handler.handleCallback(Handler.java:789)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at android.os.Handler.dispatchMessage(Handler.java:98)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at android.os.Looper.loop(Looper.java:164)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at android.app.ActivityThread.main(ActivityThread.java:6798)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at java.lang.reflect.Method.invoke(Native Method)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
04-17 18:15:17.839 E/AndroidRuntime(19037):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)```