Skip to content

BUG: OutOfMemory exception everytime I open proxy per apps screen (Apps VPN mode) #1086

@homayoonahmadi

Description

@homayoonahmadi

Describe the problem

Expected behavior: When I navigate to VPN mode, it attempts to load the list of installed apps for a second and then crashes.

Actual behavior: I should view the list of apps to be able to select between them

How to reproduce

Provide helpful screenshots, videos, text descriptions, subscription links, etc.

video_2025-11-21_17-25-56.mp4

log

If you have logs, please upload them. Please see the detailed steps for exporting logs in the documentation.

This is the crash log I grabbed from the app logs:

2025/11/21 13:48:15 [Error] [CrashHandler] Thread[main,5,main]
2025/11/21 13:48:15 [Error] [CrashHandler] java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
	at java.lang.Thread.nativeCreate(Native Method)
	at java.lang.Thread.start(Thread.java:1083)
	at android.widget.Filter.filter(Filter.java:108)
	at android.widget.Filter.filter(Filter.java:86)
	at io.nekohasekai.sagernet.ui.AppManagerActivity$loadApps$1.invokeSuspend(SourceFile:115)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:6)
	at kotlinx.coroutines.DispatchedTask.run(SourceFile:110)
	at androidx.lifecycle.DispatchQueue.drainQueue(SourceFile:43)
	at androidx.camera.core.Preview$$ExternalSyntheticLambda1.run(SourceFile:178)
	at android.os.Handler.handleCallback(Handler.java:995)
	at android.os.Handler.dispatchMessage(Handler.java:103)
	at android.os.Looper.loopOnce(Looper.java:273)
	at android.os.Looper.loop(Looper.java:363)
	at android.app.ActivityThread.main(ActivityThread.java:10060)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@68c2403, Dispatchers.Main.immediate]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions