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

Crashing On Android #4993

Closed
JakesCodingLab442 opened this issue Apr 19, 2022 · 10 comments
Closed

Crashing On Android #4993

JakesCodingLab442 opened this issue Apr 19, 2022 · 10 comments
Labels
mobile:android need-to-reproduce More clues are required to reproduce the issue.

Comments

@JakesCodingLab442
Copy link

JakesCodingLab442 commented Apr 19, 2022

What happened?

Opening a directory or creating a new one crashes the app. Has been a problem since 0.6.3 Running android 9 on Galaxy A8

Reproduce the Bug

  1. Create or open new directory

Expected Behavior

Crashes the app

Screenshots

No response

Desktop Platform Information

No response

Mobile Platform Information

Device: Samsung Galaxy A8
Version: Android 9
Logseq Version: 0.6.6

Additional Context

No response

@amirhosseinj1
Copy link

Yes its my problem too

@cnrpman
Copy link
Collaborator

cnrpman commented Apr 20, 2022

@amirhosseinj1 @JakesCodingLab442 Can you confirm the permission settings?

@amirhosseinj1
Copy link

amirhosseinj1 commented Apr 20, 2022

Yes, it's already have all the permissions. the problem starts when i wanna open a graph, app load up normally but when i wanna open up a folder aka graph it just crashes. the problem started after version 0.6.2. 0.6.2 works fine. @cnrpman

@cnrpman cnrpman added the need-to-reproduce More clues are required to reproduce the issue. label Apr 20, 2022
@aadilayub
Copy link

This is happening with me as well. I'm not sure what's the cause. It was working fine before I imported my notes folder from my desktop. My first impression was that it was happening because of reserved characters in file names (commas, inverted commas, dots, slashes, $, @, ":") so I removed all of those and re-imported the folder. It still crashed.

The folder is stored in the android home folder /storage/emulated/0/notes. I'm running Android 12 on a Pixel 5. The logseq version is 0.6.6.

@aadilayub
Copy link

I've deleted the /storage/emulated/0/notes folder and it crashes even still. So I guess we can rule out that it was caused by the size or contents of the folder

@aadilayub
Copy link

I wonder if it may have been caused by an OS upgrade? When I first imported my vault I was running Android 11, these crashes took place when I re-imported the folder, by which time I had upraded to Android 12.

@aadilayub
Copy link

This behavior occurs on the nightly version of the app, as well as 0.6.2, and 0.6.6.

@aadilayub
Copy link

I made an attempt to fish out the error message using logcat:

FATAL EXCEPTION: CapacitorPlugins
Process: com.logseq.app, PID: 7908
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at com.getcapacitor.Bridge.lambda$callPluginMethod$0$Bridge(Bridge.java:601)
	at com.getcapacitor.-$$Lambda$Bridge$25SFHybyAQk7zS27hTVXh2p8tmw.run(Unknown Source:8)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Method.invoke(Native Method)
	at com.getcapacitor.PluginHandle.invoke(PluginHandle.java:121)
	at com.getcapacitor.Bridge.lambda$callPluginMethod$0$Bridge(Bridge.java:592)
	... 6 more
Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE cat=[android.intent.category.DEFAULT] }
	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2117)
	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1762)
	at android.app.Activity.startActivityForResult(Activity.java:5407)
	at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:584)
	at androidx.core.app.ActivityCompat.startActivityForResult(ActivityCompat.java:234)
	at androidx.activity.ComponentActivity$2.onLaunch(ComponentActivity.java:218)
	at androidx.activity.result.ActivityResultRegistry$2.launch(ActivityResultRegistry.java:162)
	at androidx.activity.result.ActivityResultLauncher.launch(ActivityResultLauncher.java:47)
	at com.getcapacitor.Plugin.startActivityForResult(Plugin.java:181)
	at com.logseq.app.FolderPicker.pickFolder(FolderPicker.java:40)
	... 9 more

@aadilayub
Copy link

This issue is probably a duplicate of #3789

@andelf
Copy link
Collaborator

andelf commented Aug 11, 2022

This is fixed in the nightly version by #6315.
Feel free to reopen if the problem still exists.

@andelf andelf closed this as completed Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile:android need-to-reproduce More clues are required to reproduce the issue.
Projects
None yet
Development

No branches or pull requests

5 participants