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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ClassCastException: android.os.BinderProxy #23

Open
ashishislive opened this issue Jan 10, 2018 · 1 comment
Open

java.lang.ClassCastException: android.os.BinderProxy #23

ashishislive opened this issue Jan 10, 2018 · 1 comment
Assignees
Labels

Comments

@ashishislive
Copy link

       Process: clean.messaging.bits.com.bitsmessaging:sync, PID: 4805
       java.lang.ClassCastException:  android.os.BinderProxy cannot be cast to 
       com.ms_square.debugoverlay.DebugOverlayService$LocalBinder
                                                                                           at 
      com.ms_square.debugoverlay.DebugOverlay$1.onServiceConnected(DebugOverlay.java:172)
                                                                                           at 
     android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1274)
                                                                                           at 
     android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1291)
                                                                                           at 
     android.os.Handler.handleCallback(Handler.java:815)
                                                                                           at 
     android.os.Handler.dispatchMessage(Handler.java:104)
                                                                                           at android.os.Looper.loop(Looper.java:207)
                                                                                           at 
     android.app.ActivityThread.main(ActivityThread.java:5740)
                                                                                           at java.lang.reflect.Method.invoke(Native 
       Method)
                                                                                           at 
     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
                                                                                           at 
                com.android.internal.os.ZygoteInit.main(ZygoteInit.java:766)

I'm using sync adapter. Force closing when sync triggered..

@Manabu-GT
Copy link
Owner

Manabu-GT commented Jan 12, 2018

@SpiralDeveloper Thanks for reporting this issue. The DebugOverlay currently does not work across processes. The crash is happening because you are running the sync adapter code in a separate process.
For the time being, please install the DebugOverlay in the main app process only within your Application class.

you can probably refer to the last answer at https://stackoverflow.com/questions/6954027/detecting-if-youre-in-the-main-process-or-the-remote-service-process-in-applica.

If it does not work, I can provide a code snippet for the workaround.

@Manabu-GT Manabu-GT self-assigned this Jan 12, 2018
@Manabu-GT Manabu-GT added the bug label Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants