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

crash when installing large apps #599

Open
theotheroracle opened this issue May 10, 2024 · 4 comments
Open

crash when installing large apps #599

theotheroracle opened this issue May 10, 2024 · 4 comments

Comments

@theotheroracle
Copy link

Describe the bug
when trying to install a large application, such as the mulch system web view from divestos repo, it crashes

To Reproduce
Steps to reproduce the behavior:

  1. Enable DivestOS repo
  2. Use root session installer
  3. Install mulch system webview
  4. See error

Expected behavior
app installs

Smartphone (please complete the following information):

  • Device: One plus 6
  • OS: LineageOS
  • Version: Android 14

Additional context

FATAL EXCEPTION: Okio Watchdog
Process: com.machiav3lli.fdroid, PID: 16728
java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 287824 free bytes and 281KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1746)
	at okio.Path$Companion.awaitTimeout(SourceFile:21)
	at okio.AsyncTimeout$Watchdog.run(SourceFile:8)
@SkewedZeppelin
Copy link

That apk is 288MB for reference.

@opusforlife2
Copy link

My issue is somewhat similar. I don't get a crash, but an ANR dialog towards the end of installation.

Despite the fact that you can tap on "Wait" and continue using the app without any issues, the OS keeps showing the same ANR dialog repeatedly. Only way to stop it is to go ahead and kill the app, and open it again.

So the app does install successfully if you don't touch anything, the real bug is the ANR dialog.

I suspect implementing #297 will fix this bug as well.

@theotheroracle
Copy link
Author

no i don't think a loading bar will fix the crash ?

@opusforlife2
Copy link

Not a loading bar. Something like a Worker, that lets the OS know there's stuff going on that shouldn't be killed.

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

No branches or pull requests

3 participants