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

Multi-process not supported #58

Closed
konokol opened this issue Jul 24, 2017 · 2 comments
Closed

Multi-process not supported #58

konokol opened this issue Jul 24, 2017 · 2 comments

Comments

@konokol
Copy link

konokol commented Jul 24, 2017

Chuck works perfect with single-process. But when coming to multi-process, it crashes.

The cause is ChuckContentProvider.TRANSACTION_URI. In another process, Conprovider.attachInfo(Context, ProviderInfo) seems to be not called, thus ChuckContentProvider.TRANSACTION_URI gets null. If we make a request in another process, NullPointerException occurs while saving data into database.

@konokol konokol closed this as completed Jul 24, 2017
@ckjoker
Copy link

ckjoker commented Dec 6, 2017

The same problem occurs to me, how you solve the multi-process?

@konokol
Copy link
Author

konokol commented Dec 6, 2017

@ckjoker It seems that the author has no intent to support multi-process. I use chuck with source code instead of aar from maven, and I change some code. The value of ChuckContentProvider.TRANSACTION_URI is assigned with my package name when declared. So whether ContentProvider.attachInfo(Context, ProviderInfo) is called or not doesn't matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants