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

App crashes when synchronizing data to SD-Card #12104

Closed
4 tasks done
hansaushamburg opened this issue Oct 28, 2023 · 2 comments
Closed
4 tasks done

App crashes when synchronizing data to SD-Card #12104

hansaushamburg opened this issue Oct 28, 2023 · 2 comments
Labels
bug hotspot: device storage Storage (on-device) related. Permissions, paths, inconsistencies, etc. needs info Waiting for info from user(s). Issues with this label will auto-stale.

Comments

@hansaushamburg
Copy link

hansaushamburg commented Oct 28, 2023

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

I selected the SD card for storage
When I synchronize data the app crashes

Expected behaviour

no crash

Actual behaviour

See above

Android version

13

Device brand and model

Samsung Galaxy A54

Stock or custom OS?

Stock

Nextcloud android app version

3.26.0

Nextcloud server version

27.1.2

Using a reverse proxy?

No

Android logs

Cause of error

Exception in thread "main" java.lang.RuntimeException: Error while computing available space
    at com.owncloud.android.utils.FileStorageUtils.checkIfEnoughSpace(FileStorageUtils.java:674)
    at com.owncloud.android.ui.fragment.OCFileListFragment.syncAndCheckFiles(OCFileListFragment.java:1938)
    at com.owncloud.android.ui.fragment.OCFileListFragment.onFileActionChosen(OCFileListFragment.java:1219)
    at com.owncloud.android.ui.fragment.OCFileListFragment.lambda$openActionsMenu$5(OCFileListFragment.java:618)
    at com.owncloud.android.ui.fragment.OCFileListFragment.$r8$lambda$slgIzxJfj-ZDThyXo8s23Nlrz3E(Unknown Source:0)
    at com.owncloud.android.ui.fragment.OCFileListFragment$$ExternalSyntheticLambda4.onResult(Unknown Source:4)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet.setResultListener$lambda$4(FileActionsBottomSheet.kt:189)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet.$r8$lambda$gBLh4lQVgKyYSPFY4JEvqe8OJuE(Unknown Source:0)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet$$ExternalSyntheticLambda1.onFragmentResult(Unknown Source:2)
    at androidx.fragment.app.FragmentManager$LifecycleAwareResultListener.onFragmentResult(FragmentManager.java:267)
    at androidx.fragment.app.FragmentManager.setFragmentResult(FragmentManager.java:945)
    at androidx.fragment.app.FragmentKt.setFragmentResult(Fragment.kt:33)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet.dispatchActionClick(FileActionsBottomSheet.kt:309)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet.access$dispatchActionClick(FileActionsBottomSheet.kt:65)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet$onCreateView$2.invoke(FileActionsBottomSheet.kt:103)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet$onCreateView$2.invoke(FileActionsBottomSheet.kt:102)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet$sam$androidx_lifecycle_Observer$0.onChanged(Unknown Source:2)
    at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
    at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
    at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
    at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
    at com.nextcloud.ui.fileactions.FileActionsViewModel.onClick(FileActionsViewModel.kt:162)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet.inflateActionView$lambda$9$lambda$8(FileActionsBottomSheet.kt:292)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet.$r8$lambda$akwMQPy8SSZm7IZL9pPs1JnKp0Q(Unknown Source:0)
    at com.nextcloud.ui.fileactions.FileActionsBottomSheet$$ExternalSyntheticLambda0.onClick(Unknown Source:4)
    at android.view.View.performClick(View.java:7892)
    at android.view.View.performClickInternal(View.java:7869)
    at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
    at android.view.View$PerformClick.run(View.java:30891)
    at android.os.Handler.handleCallback(Handler.java:942)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8762)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

App information

  • ID: com.nextcloud.client
  • Version: 30260090
  • Build flavor: gplay

Device information

  • Brand: samsung
  • Device: a54x
  • Model: SM-A546B
  • Id: TP1A.220624.014
  • Product: a54xnaeea

Firmware

  • SDK: 33
  • Release: 13
  • Incremental: A546BXXS5AWI3

Server error logs

No response

Additional information

No response

@joshtrichards
Copy link
Member

This likely is happening because the filesystem access is being denied or something is wrong with the SD card.

@joshtrichards joshtrichards added hotspot: device storage Storage (on-device) related. Permissions, paths, inconsistencies, etc. needs info Waiting for info from user(s). Issues with this label will auto-stale. labels Oct 30, 2023
@hansaushamburg
Copy link
Author

Thank you for the feedback.

  • formatting of the SD card was done according to the description in your link
  • SD card works with the apps
  • all permissions were given

Everything seems to work right now ...
... I can't say why, maybe checking everything once again did the job.

Thank you again :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug hotspot: device storage Storage (on-device) related. Permissions, paths, inconsistencies, etc. needs info Waiting for info from user(s). Issues with this label will auto-stale.
Projects
None yet
Development

No branches or pull requests

2 participants