-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Can't open local folder on Android #3789
Comments
I am experiencing the same issue. Device: Mi 10T |
Same here. Device: Samsung, Galaxy J7 Star |
Same here. Device: Huawei P30 |
For me, the issue disappeared after I removed a "#" from the folder name of my notes folder. Maybe some special characters in folders names cause this? |
@koan-github for me it happens when creating a graph from an empty folder too |
My issue resolved after choosing a file name & path containing no space characters. Thanks for the tip @koan-github |
The same issue on my tablet Mi Pad 4 Plus Vault path: Stacktrace (the same for all versions):
This vault opens correctly on my phone (OnePlus 7, Android 11, version 0.5.9) |
Version 0.6.3. crashes when choosing local folder. Granting permission seemed to work. |
Downloaded the android app 0.6.4 and opened it, got the "Storage access permission" screen and if i choose that, nothing happens. Reproduce
The same for "Add a graph". Mobile Info Additional |
Can report the same problem when trying to open a synced Nextcloud folder. Folder access is granted, but, I end up on the start page again after selecting the folder. Device: Xiaomi Mi 8 lite |
I have now experienced this issue on multiple phones, on Android 10, 11, and 12, across multiple versions of Logseq from 0.6.2 up to the latest nightly. Am currently experiencing it on a Google Pixel 5, where adding a graph worked initially but mysteriously stopped working after a reinstall. It takes place with empty graphs, and with large graphs, and after removing special characters from file names. It also takes place with graphs placed in the Android home folder and in subdirectories. I made an attempt at fishing out the error message from the crash through logcat. It appears to be the same as the one shared by @MrModest
|
I manged to get it working btw. - when i press "Grant permissions" it does not show anything in that folder, even if i create a logseq folder (but, it exists, i checked). |
It doesn't get that far for me. After I grant file access permission, and click choose folder, it immediately crashes. Here's a screen recording: https://photos.app.goo.gl/ZXjWMQUZHy5pKtGw9 |
This issue is about, and i quote your initial comment "When I grant storage permissions and try to add an empty folder, nothing happens." and not "the app crashes". These are two different issues in my opinion. |
I got a similar issue. Reproduce
and there is an alternative result if, in the 4th step, I choose as the file exploring app default (it will be located at the exact folder I chose last time before current data clear&reset )
The folder I use was all under "Downloads" or "Pictures" default folder created by the system, might have something to do with this? Device Info:App Version: |
You might be right. However, because both issues are giving the same stack trace, they may have the same underlying cause. |
Update: I figured out what was causing this. On both my phones, I'd uninstalled the stock file manager app and replaced it with a third party file manager. The intent probably only plugins into the stock file manager, and when it isn't present, gives an error. After I reset my phone to factory settings, I was able to add a folder and use logseq. It's possible that the reason for this crash on other phones is that the manufacturer OS doesn't ship the AOSP file manager/file picker that is required by this intent. |
Sorry, but my exception is quite different, and I get it when I choose the folder. And I choose it via system file manager, not third party. My exception is
but your is
|
It's interesting.
But for |
It still crashes when I try to open my populated logseq folder on my fire hd 8 tablet. |
@bbigras Is it on external SD card? |
It works! At least for me. Updated straight from 0.61, without clearing data or cache. I then cleared the cache and data to try the initial set up, it worked without problem. Previously, Logseq crashes when selecting the graph folder. Now that problem is gone. Device: Samsung S8 Exynos |
@efade Thanks for your report. |
@efade I've added an external storage fix. |
No, internal. In documents/logseq. Fire HD 8 (10th gen) |
Note that with https://nightly.link/logseq/logseq/actions/runs/2829884048 , I get this error message before the crash. |
@bbigras Thanks. The error message box is just added to help debug. |
Device:
Logseq path:
and stacktrace then:
|
Now tried with external SdCard and it works! o_0 And works not just empty, but my full folder which I pulled from git |
@MrModest Thanks. |
Hi @andelf. I can confirm it worked. Same device as before: I forgot to say it before, but thank you so much for the fix. |
@efade Thanks. The fix is already included in the nightly release.😁 |
I've just added a Could you help to test the demo App(😅All my Android devices can not reproduce this kind of path): |
It works!! 🎉 |
Thank you very much for the fix @andelf |
Now it works in both cases: external and internal storage. Thanks! |
I'm sorry but I just installed the nightly 0.8.0 and I still get the old behavior: chose a folder, nothing happens. XPERIA 1 IV |
Hi it is helpful to fix it by adding a folder on the storage instead of under termux storage by using cd ~/storage/{name of folder} , it fixed everything. App only crashes when using directory of termux itself, or under within any other app directory |
Hello, On the internal storage of my Pixel 6 with Android 12 it works fine. Data, memory and cache has already been cleared, all permissions granted. Android 12 |
I am a bit noobie when it comes to android. Can you please give me some instructions on how to provide you with the necessary information? thank you very much! |
I also used Android and GitHub as my repo. So I use termux to be able to clone my GitHub but on internal storage. I then open logseq to choose that folder inside downloads and it did not crash. |
thank you for your reply. the thing is that my current setup employs nextcloud for for md file sync. and it worked like a charm on my oneplus 8 pro. Would be lovely if we could fix that somehow. also for the other uses who have "unsupported" phones along with nextcloud. thank you! |
@ramboe @Jael-Tactaquin @deGrasi |
Yes. Only when I move my Logseq folder out of that folder it works (using Logseq 0.8.1). |
maybe the subfolder of |
When 'favoriting' a folder in nextcloud, it is (at least for me) put into internal storage (in my case into nextcloud/user@server%2Fnextcloud/Documents/logseq) My system: Sony H8416, Android 10 (Build 52.1.A.3.92, rooted) |
Describe the bug
When I grant storage permissions and try to add an empty folder, nothing happens.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Adding an empty folder generates a new graph.
Smartphone:
The text was updated successfully, but these errors were encountered: