Comments (11)
I have the same problem.
java.lang.IllegalStateException: could not access stored data with uri content://com.andcreate.app.trafficmonitor.tray/internal_preferences/tether/version. Is the provider registered in the manifest of your application?
at net.grandcentrix.tray.provider.TrayProviderHelper.getInternalUri()
at net.grandcentrix.tray.storage.TrayStorage.get()
at net.grandcentrix.tray.accessor.Preference.changeVersion()
at net.grandcentrix.tray.accessor.Preference.()
at net.grandcentrix.tray.accessor.TrayPreference.()
at net.grandcentrix.tray.TrayModulePreferences.()
at com.andcreate.app.trafficmonitor.tray_pref.TetherTrayPreference.()
at com.andcreate.app.trafficmonitor.aggregate.TrafficJournalIO.output()
at com.andcreate.app.trafficmonitor.aggregate.TrafficJournalOutputService.onHandleIntent()
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:211)
at android.os.HandlerThread.run(HandlerThread.java:61)
How to solve?
I'm using 0.9.2 version.
from tray.
Please answer the following questions:
- Is there a way how to reproduce it?
- Was it working in the past?
- Is the authority set as string resource?
- On which process does this problem occur?
The problem is simple: The Cursor
returned from the ContentProvider is null
. This can happen if the authority is not set with resValue "string", "tray__authority", "${applicationId}.tray"
or if the provider returns null
because the underlaying database could not be accessed.
from tray.
Thanks for your replication.
This problem occurs in a low probability that I can not reproduce. I have set configs as requested. I think this may happen in systems that deeply transformed. I just use try & catch to prevent crash.
from tray.
I checked analytics and found this crash too. This happens once in a million or to be exact: 10 times per month with 1.000.000 app sessions. And I'm sure tray preferences get accessed more than 10 times per session.
I'm not sure how this should be handled. I could catch the exception in the constructor and retry it when accessing data of a preference. But what should happen if the database could not be accessed when writing data? Maybe that's the reason why the SharedPreferences
have commit()
which returns a boolean if writing to disk was successful.
Exception handling is next on the list.
from tray.
Thank you for reply.
Is there a way how to reproduce it?
I don't know because the fabric report.
Was it working in the past?
I began to use from 0.9.2.
Is the authority set as string resource?
Yes.
On which process does this problem occur?
Remote process.
This problem has occurred in the 800 users of 10,000users.
from tray.
The same problem here. Remote process. Happens rarely but still...
from tray.
I am getting the same problem and it is consistent. It occurs only on my Samsung SM-T231 running on Android 4.4.2. The same code works perfectly fine with my Nexus 5 and Samsung S3 running on Android 5.1.1 & Android 4.3 respectively. Not sure if i am doing something wrong. Can u help?
java.lang.IllegalStateException: could not access stored data with uri content://com.mockup.sample.beta.tray/internal_preferences/userPreferences/version?backup=true. Is the provider registered in the manifest of your application?
Answers to your question,
Is there a way how to reproduce it?
Every time i instantiate preference it crashes.
Was it working in the past?
It works on my Android 5.1.1 & 4.3 device
Is the authority set as string resource?
Yes
On which process does this problem occur?
Application process(UI)
I am using 1.0.0-rc3
from tray.
Hey,
Never mind. Found the issue. The particular device is on Safe Mode. I turned off the safe mode and it started to work.
from tray.
This happen randomly, i restarted device and Tray its working well, but this shouldn't be happening because we need stable libraries.
(Tested with: Samsung Grand Neo > Android 4.4.4 Official Rom > Tray 1.0.0-rc3 > Remote Service)
from tray.
HI, @passsy
Our project suffers from this crash and we are waiting for the release 0.11.0 which has it fixed.
Could I know when will it be released?
from tray.
0.11.0
is released
from tray.
Related Issues (20)
- minSdkVersion HOT 1
- ConcurrentModificationException in ContentProviderStorage.java:93 HOT 3
- NullPointerException in ContentProviderStorage.java:104 HOT 1
- Report ContentProvider Not Found information to android bugs HOT 2
- How to upgrade data? HOT 2
- TrayRuntimeException in TrayContract
- RunTimeException: Unable to create application caused by TrayContract.getAuthority HOT 4
- How to migrate from default module to my own module HOT 1
- List all prefs in module HOT 1
- Question: minSdkVersion value HOT 1
- android-DirectBoot HOT 3
- Share data between apps. HOT 1
- How to share values between apps? HOT 2
- delet tray.db and how to recreate HOT 1
- Accessing Outside of Container App 2.0 HOT 1
- java.lang.NoClassDefFoundError: Failed resolution of: Lnet/grandcentrix/tray/R$string; HOT 1
- can not support multi app share data HOT 1
- 不知道怎么回事的bug HOT 1
- NullPointerException at unregisterOnTrayPreferenceChangeListener in Service HOT 4
- ANR that leads to app crashing, support needed 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 tray.