Google Play Store suddenly started crashing with a java.lang.StackOverflowError error


Question

Today I discovered that I can no longer open Google Play Store on my Galaxy S4, running Sumsung's version of Android v4.2.2.



When I try to open Google Play Store, it opens, but shorty fails with the following stack trace:



I/Finsky  ( 6299): [1] com.google.android.finsky.utils.dp.a(1041): Starting LocationRefresher
I/Finsky ( 6299): [1] com.google.android.finsky.selfupdate.f.a(166): Skipping DFE self-update. Local Version [80691500] >= Server Version [-1]
I/Finsky ( 6299): [1] com.google.android.finsky.utils.ji.a(102): TOS is accepted (pref)
I/Finsky ( 6299): [1] com.google.android.finsky.utils.dk.a(64): com.samsung.groupcast available because owned, overriding [restriction=7].
I/Finsky ( 6299): [1] com.google.android.finsky.utils.dk.a(64): ma.wanam.xposed available because owned, overriding [restriction=7].
I/Finsky ( 6299): [1] com.google.android.finsky.utils.dk.a(64): com.questvisual.wordlens available because owned, overriding [restriction=7].
D/AndroidRuntime( 6299): Shutting down VM
E/AndroidRuntime( 6299): FATAL EXCEPTION: main
E/AndroidRuntime( 6299): java.lang.StackOverflowError
E/AndroidRuntime( 6299): at java.util.HashMap.get(HashMap.java:298)
E/AndroidRuntime( 6299): at com.google.android.finsky.FinskyApp.e(SourceFile:1355)
E/AndroidRuntime( 6299): at com.google.android.finsky.FinskyApp.e(SourceFile:1379)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:83)
E/AndroidRuntime( 6299): at com.google.android.finsky.api.model.Document.Z(SourceFile:1105)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:317)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:62)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.v.a(SourceFile:335)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:261)
E/AndroidRuntime( 6299): at com.google.android.finsky.installer.b.a(SourceFile:3159)
E/AndroidRuntime( 6299): at com.google.android.finsky.autoupdate.r.a(SourceFile:326)
E/AndroidRuntime( 6299): at com.google.android
D/AndroidRuntime( 4557): Shutting down VM


I attempted to fix this by side-loading the latest Google Play Store APK (6.9.15.G-all [0] 3104571), but this did not fix the problem.



Considering that the infinite recursion is between autoupdate and installer packages, I assume this is some sort of bug that happens when Google Play Store tries to autoupdate something?



I am not sure how to recover from this situation, so any ideas would be appreciated.



EDIT 1: I was able to get rid of this particular error by downgrading Google Play Store all the way to 6.3.20.B-all [0] 2734767. However, although Google Play Store no longer crashes, a new error prevents me from actually downloading any content:



I/Finsky  (11347): [1] com.google.android.finsky.receivers.h.a(443): Request install of com.staircase3.opensignal v=120530 pri=2 for single_install
I/Finsky (11347): [1] com.google.android.finsky.receivers.h.a(1184): Installer kick - starting com.staircase3.opensignal
I/Finsky (11347): [1] com.google.android.finsky.receivers.ac.a(1177): Received VolleyError 922 (Error while retrieving information from server. [DF-DLA-15])
I/Finsky (11347): [1] com.google.android.finsky.receivers.v.a(766): Cancel running installation of com.staircase3.opensignal (null)


Now, this DF-DLA-15 error appears to be quite famous:
https://productforums.google.com/forum/#!topic/play/pqV-NFm-qy8



I have tried all troubleshooting steps suggested in that thread, even the crazy-sounding ones. To be specific:




  • I cleared Data and Cache for Google Play Store and Service

  • Recreated and re-synced my Google Account

  • Deleted Dalvik cache

  • Unmounted the SD Card

  • Deleted and recreated my payment info in Google Play Store



After all that, still getting DF-DLA-15


Answer

I was able to fix the problem with a suggestion from Brandon Heston, although I am not sure that my situation was exactly like his (see comments).



I fixed the problem by doing the following:




  • Uninstalled the last 2 apps I installed (Sleep as Android and Hue Disco).

  • Deleted Data for Google Play Store, Google Play Services, Google Account Manager and Google Services Framework

  • Rebooted



After this the Google Play Store stopped crashing. However, unlike Brandon's situation, neither of the 2 apps I uninstalled have become unavailable for my version of Android, so I am not sure why this solution worked, but it did.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes