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

Fixed crashes occurring in Version 3.8.1 when opening ZIM files. #3678

Closed
wants to merge 1 commit into from

Conversation

MohitMaliFtechiz
Copy link
Collaborator

@MohitMaliFtechiz MohitMaliFtechiz commented Jan 19, 2024

Fixes #3600

  • A user-provided logs indicating that, during the attempt to open ZIM files, a crash occurred when stopping the TTS service. The logs revealed that, in the absence of any activity to stop the service, using requireActivity() resulted in an error and application crash. To address this issue, we replaced requireActivity() with activity. Now, if there is no activity present, using activity avoids the error that would lead to a crash.

Waiting for the user's reply, and then we will mark this ready for review.

* A user provided logs indicating that, during the attempt to open ZIM files, a crash occurred when stopping the TTS service. The logs revealed that, in the absence of any activity to stop the service, using `requireActivity()` resulted in an error and application crash. To address this issue, we replaced `requireActivity()` with `activity`. Now, if there is no activity present, using `activity` avoids the error that would lead to a crash.
@MohitMaliFtechiz MohitMaliFtechiz marked this pull request as draft January 19, 2024 12:11
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (3f19f55) 48.58% compared to head (eb57103) 48.57%.

Files Patch % Lines
.../kiwix/kiwixmobile/core/main/CoreReaderFragment.kt 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3678      +/-   ##
============================================
- Coverage     48.58%   48.57%   -0.01%     
  Complexity     1090     1090              
============================================
  Files           285      285              
  Lines         10588    10588              
  Branches       1418     1418              
============================================
- Hits           5144     5143       -1     
  Misses         4600     4600              
- Partials        844      845       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kelson42
Copy link
Collaborator

@MohitMaliFtechiz Has the whole codebase been checked for this scenario?

@MohitMaliFtechiz
Copy link
Collaborator Author

We don't need to check the whole codebase for this since our application is based on a single activity so the activity will never be null for this scenario. This will null in a situation where the application crashing and we are trying to start/stop the service. The user is still facing this issue so there is some other issue occurring on the user's device that crashes the application. because of this these logs are showing. #3600 (comment)

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

Successfully merging this pull request may close these issues.

Version 3.8.1 crashes when opening zim files
3 participants