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

Analytics SDK - Android - InitializationException in amazonmobileanalytics. Encountered an error accessing the file system #3516

Closed
ramprasad-vuclip opened this issue Jan 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working closing soon Issue will auto-close if there is no additional activity within 7 days. mobile analytics Issues with the AWS Android SDK for (deprecated) Mobile Analytics. Prefer Pinpoint. pending-response Issue is pending response from the issue requestor

Comments

@ramprasad-vuclip
Copy link

Describe the bug
A clear and concise description of what the bug is.
Crash is observed in craslytics as 'Caused by com.amazonaws.mobileconnectors.amazonmobileanalytics.InitializationException'
Encountered an error accessing the file system

To Reproduce
A code sample or steps:

Couldn't reproduce this bug and it is observed in crashlytics.

Caused by com.amazonaws.mobileconnectors.amazonmobileanalytics.InitializationException
Encountered an error accessing the file system
com.amazonaws.mobileconnectors.amazonmobileanalytics.MobileAnalyticsManager.<init> (MobileAnalyticsManager.java:137)
com.amazonaws.mobileconnectors.amazonmobileanalytics.MobileAnalyticsManager.getOrCreateInstance (MobileAnalyticsManager.java:308)
com.amazonaws.mobileconnectors.amazonmobileanalytics.MobileAnalyticsManager.getOrCreateInstance (MobileAnalyticsManager.java:267)

We are calling above code during app initialisation. 
In turn in SDK, 
1. MobileAnalyticsManager's constructor calls validate(context) 
2. In FileManagerValidator cass, validate method creates file using "validatorFile = fileManager.createFile(new File(fileManager.getDirectory(""),
                    "validatorFile"));" 
3. Here the exception is thrown
Please support for any resolution

Which AWS service(s) are affected?
Amazon Analytics and app crashes due to this

Expected behavior
After successful initialisation of Amazon sdk, app can send events.

Screenshots
Not available

Environment Information (please complete the following information):

  • Using com.amazonaws:aws-android-sdk-mobileanalytics:2.2.4
  • Any device
  • Any Android Version
@mattcreaser mattcreaser added mobile analytics Issues with the AWS Android SDK for (deprecated) Mobile Analytics. Prefer Pinpoint. pending-triage Issue is pending triage labels Jan 29, 2024
@mattcreaser
Copy link
Contributor

Thanks for the report @ramprasad-vuclip, someone from our team will have a look.

@tylerjroach
Copy link
Contributor

@ramprasad-vuclip v2.2.4 is more than 3 years old and includes a large number of bug fixes in that timeframe. Can you upgrade to 2.75.0 and report back if you are still seeing the issue?

@tylerjroach tylerjroach added bug Something isn't working pending-response Issue is pending response from the issue requestor and removed pending-triage Issue is pending triage labels Feb 12, 2024
@tylerjroach tylerjroach added the closing soon Issue will auto-close if there is no additional activity within 7 days. label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working closing soon Issue will auto-close if there is no additional activity within 7 days. mobile analytics Issues with the AWS Android SDK for (deprecated) Mobile Analytics. Prefer Pinpoint. pending-response Issue is pending response from the issue requestor
Projects
None yet
Development

No branches or pull requests

3 participants