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

RSAF has more bugs #22

Closed
JulianICE08935 opened this issue Jul 1, 2023 · 5 comments · Fixed by #23
Closed

RSAF has more bugs #22

JulianICE08935 opened this issue Jul 1, 2023 · 5 comments · Fixed by #23

Comments

@JulianICE08935
Copy link

when you close the app and then go to the files app the files app suddenly says "content could not be loaded right now" and when i start the app again android says "RSAF not responding"

Screenshot_20230701-093915.png

Screenshot_20230701-093649.png

Screenshot_20230701-093659.png

@chenxiaolong
Copy link
Owner

Hmm, I'm not able to reproduce this. Can you upload the latest crash.log from /sdcard/Android/data/com.chiller3.rsaf/files?

@JulianICE08935
Copy link
Author

no crash.log is created for me because it was already hanging up and hadn't reacted to anything and the processes hung up due to RSAF

@JulianICE08935
Copy link
Author

Screenshot_20230701-160924.png

Screenshot_20230701-160929.png

@JulianICE08935
Copy link
Author

the crash.log could not be created because it was also true when starting and it cannot run in the background, whether with or without battery optimization, RSAF does not run in the background

@JulianICE08935
Copy link
Author

if you don't get any further with the information and it happens to several people and then maybe everyone complains then it's your own fault

chenxiaolong added a commit that referenced this issue Jul 1, 2023
RSAF was previously initializing rcbridge in MainApplication.onCreate().
Since all ContentProviders are initialized before the Application, it's
possible to start receiving ContentProvider requests before rcbdige is
initialized. This seems to trigger a deadlock in rclone and causes
Android to kill RSAF due to the main thread hanging. When hitting this
issue, crash.log would not be written because the killing is done via
SIGQUIT, not via a JVM exception. This commit fixes the issue by
initializing rcbridge in RcloneProvider.onCreate().

Fixes: #22

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
chenxiaolong added a commit that referenced this issue Jul 1, 2023
RSAF was previously initializing rcbridge in MainApplication.onCreate().
Since all ContentProviders are initialized before the Application, it's
possible to start receiving ContentProvider requests before rcbridge is
initialized. This seems to trigger a deadlock in rclone and causes
Android to kill RSAF due to the main thread hanging. When hitting this
issue, crash.log would not be written because the killing is done via
SIGQUIT, not via a JVM exception. This commit fixes the issue by
initializing rcbridge in RcloneProvider.onCreate().

Fixes: #22

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
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 a pull request may close this issue.

2 participants