Skip to content

[Bug]: Android crash when pulling large files (55mb video), seems oom #877

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

Open
Lesnao opened this issue Mar 18, 2025 · 5 comments
Open
Labels
bug Something isn't working

Comments

@Lesnao
Copy link

Lesnao commented Mar 18, 2025

Describe the bug

pull large files get crash

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

crash logs from hyperos2

java.lang.OutOfMemoryError: Failed to allocate a 154056216 byte allocation with 61110704 free bytes and 58MB until OOM, target footprint 268435456, growth limit 268435456
	at java.lang.StringFactory.newStringFromBytes(StringFactory.java:98)
	at java.lang.StringFactory.newStringFromBytes(StringFactory.java:79)
	at android.util.Base64.encodeToString(Base64.java:459)
	at com.capacitorjs.plugins.app.AppPlugin.requestUrlAndroid(SourceFile:254)
	at com.capacitorjs.plugins.app.AppPlugin.lambda$requestUrl$3(SourceFile:38)
	at com.capacitorjs.plugins.app.AppPlugin.r(SourceFile:1)
	at com.capacitorjs.plugins.app.d.run(SourceFile:1)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1251)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
	at java.lang.Thread.run(Thread.java:1012)

Steps to reproduce

  1. setup pull on startup
  2. push large file(video or else) 55mb
  3. open obsidian
  4. get crash

Expected Behavior

no crash, and pulling file

Addition context

Android 15
HyperOS2
16G RAM

Operating system

Android

Installation Method

None

Plugin version

2.32.0

@Lesnao Lesnao added the bug Something isn't working label Mar 18, 2025
@shumadrid
Copy link
Contributor

Hi, try checking out the gitless sync plugin for mobile. It avoids the use of isomorphic-git.

@Lesnao
Copy link
Author

Lesnao commented Mar 21, 2025

Hi, try checking out the gitless sync plugin for mobile. It avoids the use of isomorphic-git.

I tried it, but it seems that gitlab is not supported? only github?

@shumadrid
Copy link
Contributor

It says it uses github apis so only github

@rkoten
Copy link

rkoten commented Mar 30, 2025

+1 seeing the same thing on iOS (iPhone 16 Pro running iOS 18.3.2, Obsidian 1.8.9, Git plugin 2.32.1) – it worked fine before I added a bunch of files to my repo (specifically ~32MB of data across 24 files, each file no heavier than ~2MB) and starting with this commit pulling on mobile crashes the app.

If I can help debug this issue provide any other helpful information like logs, happy to do so – just let me know what to look for. This is kind of a dealbreaker for my Obsidian setup at the moment.

@shumadrid
Copy link
Contributor

shumadrid commented Mar 30, 2025

@rkoten it's a known issue for mobile in this plugin, as mentioned in the README.

For iOS, have you tried using the Working Copy app? It might fit your needs. I remember seeing guides on r/ObsidianMD on how to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants