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

java.lang.OutOfMemoryError #431

Open
NLLAPPS opened this issue Mar 4, 2025 · 0 comments
Open

java.lang.OutOfMemoryError #431

NLLAPPS opened this issue Mar 4, 2025 · 0 comments

Comments

@NLLAPPS
Copy link

NLLAPPS commented Mar 4, 2025

Every now and then I get the following crash. I have logging config
LogLevel.All
Logger.Simple

http Error from OpenAI is not related. Logging the output seems to cause OOM due to size.

`java.lang.OutOfMemoryError: Failed to allocate a 136532224 byte allocation with 25165824 free bytes and 122MB until OOM, target footprint 433630496, growth limit 536870912
at java.util.Arrays.copyOf(Arrays.java:3585)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:177)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:753)
at java.lang.StringBuilder.append(StringBuilder.java:257)
at PY1.c(HttpClientCallLogger.kt:26)
at MD2$e.invokeSuspend(Logging.kt:118)
at gJ.resumeWith(ContinuationImpl.kt:12)
at Mc1.run(DispatchedTask.kt:129)
at IF0.r0(CoroutineScheduler.kt:1)
at IF0$c.b(CoroutineScheduler.kt:62)
at IF0$c.m(CoroutineScheduler.kt:29)
at IF0$c.run(CoroutineScheduler.kt:1)
Suppressed: G71: [nG2@b5a15f3, PN4{Cancelling}@4fd92b0, Dispatchers.Default]

I/System.out(10309): -> cf-ray:
I/System.out(10309): -> content-length: 163
I/System.out(10309): -> content-type: application/json; charset=utf-8
I/System.out(10309): -> date: Tue, 04 Mar 2025 10:35:41 GMT
I/System.out(10309): -> server: cloudflare
I/System.out(10309): -> set-cookie: __cf_bm=Kzclvq9Wo; path=/; expires=Tue, 04-Mar-25 11:05:41 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None; _c00000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
I/System.out(10309): -> strict-transport-security: max-age=31536000; includeSubDomains; preload
I/System.out(10309): -> vary: Origin
I/System.out(10309): -> x-content-type-options: nosniff
I/System.out(10309): -> x-request-id: reqc1
I/System.out(10309): BODY Content-Type: application/json; charset=utf-8
I/System.out(10309): BODY START
I/System.out(10309): {
I/System.out(10309): "error": {
I/System.out(10309): "message": "Could not parse multipart form",
I/System.out(10309): "type": "invalid_request_error",
I/System.out(10309): "param": null,
I/System.out(10309): "code": null
I/System.out(10309): }
I/System.out(10309): }
I/System.out(10309):
I/System.out(10309): BODY END
W/System.err(10309): yd2: Could not parse multipart form
W/System.err(10309): at r12.f(HttpTransport.kt:165)
W/System.err(10309): at r12.d(HttpTransport.kt:14)
W/System.err(10309): at r12.C0(HttpTransport.kt:127)
W/System.err(10309): at r12$b.invokeSuspend(HttpTransport.kt:13)
W/System.err(10309): at gJ.resumeWith(ContinuationImpl.kt:12)
W/System.err(10309): at Mc1.run(DispatchedTask.kt:129)
W/System.err(10309): at Dw1.b2(EventLoop.common.kt:19)
W/System.err(10309): at mN.d1(Builders.kt:27)
W/System.err(10309): at AU.a(Builders.kt:77)
W/System.err(10309): at yU.e(Unknown Source:1)
W/System.err(10309): at AU.b(Builders.kt:7)
W/System.err(10309): at yU.f(Unknown Source:1)`

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

1 participant