Comments (6)
Just saying that we see the same now that we have deployed the app (never happened during testing).
Similar crashlytics report, like:
Fatal Exception: java.lang.RuntimeException: Unable to pause activity {package/package.SomeActivity}: java.lang.IllegalArgumentException: Service not registered: com.c.b.a.a$a@12e9f74f
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3874)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3833)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3808)
at android.app.ActivityThread.access$1100(ActivityThread.java:181)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1493)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6145)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by java.lang.IllegalArgumentException: Service not registered: com.c.b.a.a$a@12e9f74f
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1096)
at android.app.ContextImpl.unbindService(ContextImpl.java:2188)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:571)
at com.novoda.simplechromecustomtabs.connection.SimpleChromeCustomTabsConnection.com.novoda.simplechromecustomtabs.connection.Binder.unbindCustomTabsService(SimpleChromeCustomTabsConnection.java:3057)
at com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs.disconnectFrom(SimpleChromeCustomTabs.java:123)
at package.SomeFragment.onPause(NowFragment.java:108)
at android.support.v4.app.Fragment.performPause(Fragment.java:2123)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1118)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.FragmentManagerImpl.moveToState$2563266(FragmentManager.java:1230)
at android.support.v4.app.FragmentActivity.android.support.v4.app.FragmentManagerImpl.dispatchPause(FragmentActivity.java:17056)
and
Fatal Exception: java.lang.RuntimeException: Unable to pause activity {package/package.SomeActivity}: java.lang.IllegalArgumentException: Service not registered: com.c.b.a.a$a@1d8f82a
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2518)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4077)
at android.app.ActivityThread.-wrap15(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by java.lang.IllegalArgumentException: Service not registered: com.c.b.a.a$a@1d8f82a
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1044)
at android.app.ContextImpl.unbindService(ContextImpl.java:1337)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:616)
at com.c.b.a.e.b(SimpleChromeCustomTabsConnection.java:3057)
at com.c.b.a.b(SimpleChromeCustomTabs.java:123)
at package.SomeFragment.onPause(SomeFragment.java:108)
at android.support.v4.app.Fragment.performPause(Fragment.java:2123)
at android.support.v4.app.o.a(FragmentManager.java:1118)
at android.support.v4.app.o.a(FragmentManager.java:1248)
at android.support.v4.app.o.b(FragmentManager.java:1230)
at android.support.v4.app.j.onPause(FragmentActivity.java:17056)
at package.d.onPause(SomeActivity.java:64)
at android.app.Activity.performPause(Activity.java:6363)
All kinds of devices:
- Nexus 5 - Android 6.0.1
- Samsung Galaxy A3 - Android 5.0.2
- Samsung Galaxy S4 mini - Android 4.4.4
- Samsung Galaxy S3 - Android 4.3
- OnePlus One - Android 5.1.1
- ...
from simple-chrome-custom-tabs.
Thank you for the report @meierjan , sounds like trying to disconnect from a service that was never connected? But apparently that shouldn't be the case given the piece of code you have shared.
I've never experimented something like that, need to investigate.
Is that happening all the time?
Are there any specific steps to reproduce the issue?
Can you tell me a device model where it is consistently reproducible?
That will facilitate debugging.
from simple-chrome-custom-tabs.
Hey,
I cant reproduce it. But I can see it in my metrics. The app is out for 10 days (deployed in 3 versions) and it happed 6 times across all versions for 3 (of maybe 10) users.
from simple-chrome-custom-tabs.
Hi @filipmaelbrancke @meierjan, and other guys interested on this issue.
I have just released 0.1.3-rc1
with the changes that, I believe, fixes this.
I believe that the issue is related to the fact that, somehow, the services was being unbinded with a different context from the one used for binding. There are two things done to mitigate the issue:
- Uses application
Context
for binding/unbinding. - Defensive code to avoid crashing.
More details here: #18
Please let me know if this fixes your issues so I can promote this to something more than just a release candidate. Given there is no way to replicate this (tried stressing with monkey runner) your collaboration would be really valuable.
from simple-chrome-custom-tabs.
Wrapping the .disconnectFrom
with a isConnected
check fixes this
from simple-chrome-custom-tabs.
Fixed
from simple-chrome-custom-tabs.
Related Issues (18)
- EasyCustomTabsIntentBuilder always requires a connection HOT 3
- no java-rx HOT 4
- Consider predefined navigation fallbacks HOT 1
- Allow browser selection. HOT 1
- Implement ease custom action - SHARE HOT 3
- Include example of navigation using Linkify HOT 3
- Consider fallback for connectivity issues HOT 3
- Add more commands - mayLaunchUrl ... HOT 5
- Runtime crash in SimpleChromeCustomTabs HOT 1
- Provide HTTP request error fallback HOT 1
- Weird behavior on back/close pressed HOT 4
- java.lang.NoSuchMethodError crash on Android 7.1 HOT 3
- Snackbar incorrect in samples when Chrome T&C not yet accepted HOT 1
- Min SDK 15 HOT 2
- Does not work if a custom tab is created immediately after making a connection HOT 5
- Wrong action value when using androidx HOT 2
- Missing a Callback on SimpleChromeCustomTabs.connectTo(Activity activity) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-chrome-custom-tabs.