-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
Bug: App crashes unpredictably. #2342
Comments
@Azad99-9 does it always crashes when switching to another org? also is it happening after the latest upstream fetch? |
@Dante291 the trigger why the app crashes is uncertain, sometimes it crashes if we signup other times it crashes if we switch orgs. |
@Cioppolo14 @noman2002 I would like to work on this, please assign me. |
@palisadoes @literalEval @noman2002 @Ayush0Chaudhary I have found the root cause of this issue, need your assistance. cause of app crash: The below situation is causing the race-condition.
This poses a concern as the token is being refreshed before each API call for fetching posts and events, which may not be an optimal approach for session handling. Additionally, when these functions are called concurrently, it introduces a race condition in the refreshToken method, as observed in this scenario. Hence causing the app to crash. fixes:
I would like to know your thoughts on this, please guide me which approach should i follow ? |
@palisadoes @noman2002 @literalEval @Ayush0Chaudhary |
We always prefer implementing solutions that will make the code more stable, manageable and readable in the long term |
@palisadoes Thanks then I will proceed with the long term solution that I have proposed.👍 |
@Cioppolo14 to address the current issue, I need to implement a solution that tackles a broader problem, extending beyond the scope of this issue. I plan to open a new issue for this purpose. Since I already have two assigned issues, could you please advise on whether I can be assigned to the new issue, or should I close this one and open the new issue separately? |
@Azad99-9 I think the best thing would be to close this issue, and make a new one that describes the broader problem, mentioning that it will also resolve the app crashing unpredictably in the process. This way it continues to be mentioned in an active issue, but the new issue will have better details to your new approach. Please tag me when you make it. |
@Cioppolo14 Thanks doing it. |
Closing to open a new issue (#2356) which solves this along the way. |
Describe the bug
To Reproduce
Steps to reproduce the behavior:
There isn't any defined way to reproduce this behaviour.
Login
,signup
&organisation switching
functionalities.example combination:
a. login to the app.
b. switch organisation.
c. logout.
d. Again signup and so on...
Expected behavior
App shouldnot crash and work predictably.
Actual behavior
some instances of the issue:
app_crash_switching_org.mp4
app_crash_signup.mp4
Screenshots
Logs when issue is encountered.
Additional details
Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship #359
The text was updated successfully, but these errors were encountered: