Skip to content

bug: Exception java.lang.OutOfMemoryError: #7158

Closed

Description

@arcadius

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 5.6.0
  @capacitor/core: 5.6.0
  @capacitor/android: 5.6.0
  @capacitor/ios: 5.6.0

Installed Dependencies:

  @capacitor/cli: 5.3.0
  @capacitor/ios: 5.3.0
  @capacitor/core: 5.3.0
  @capacitor/android: 5.3.0

[error] Xcode is not installed
[success] Android looking great! 👌

Platform(s)

Android

Current Behavior

I am not able to reproduce this.
It is a crash shows in Android Vital on the play store console.
The stacktrace is


Exception java.lang.OutOfMemoryError:
  at java.util.Arrays.copyOf (Arrays.java:3578)
  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 org.json.JSONStringer.string (JSONStringer.java:327)
  at org.json.JSONStringer.value (JSONStringer.java:261)
  at org.json.JSONObject.quote (JSONObject.java:780)
  at org.apache.cordova.PluginResult.getMessage (PluginResult.java:107)
  at org.apache.cordova.NativeToJsMessageQueue$JsMessage.buildJsMessage (NativeToJsMessageQueue.java:528)
  at org.apache.cordova.NativeToJsMessageQueue$JsMessage.encodeAsJsMessage (NativeToJsMessageQueue.java:545)
  at org.apache.cordova.NativeToJsMessageQueue.popAndEncodeAsJs (NativeToJsMessageQueue.java:201)
  at com.getcapacitor.cordova.MockCordovaWebViewImpl$CapacitorEvalBridgeMode.lambda$onNativeToJsMessageAvailable$0 (MockCordovaWebViewImpl.java:77)
  at com.getcapacitor.cordova.MockCordovaWebViewImpl$CapacitorEvalBridgeMode.$r8$lambda$KZrWPdHN4k-RiuqG_qj2jYFekSE
  at com.getcapacitor.cordova.MockCordovaWebViewImpl$CapacitorEvalBridgeMode$$ExternalSyntheticLambda0.run
  at android.os.Handler.handleCallback (Handler.java:942)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:226)
  at android.os.Looper.loop (Looper.java:313)
  at android.app.ActivityThread.main (ActivityThread.java:8810)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)

Expected Behavior

There should be not crash

Code Reproduction

This issue happens on an android 13 device

Other Technical Details

npm --version output:
9.5.0
node --version output:
v18.14.2
pod --version output (iOS issues only):

Additional Context

Activity

  1. added
    needs reproduction
    on Jan 8, 2024
  2. ionitron-bot commented on Jan 8, 2024

    @ionitron-bot

    This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed.
    Please see the Contributing Guide for how to create a Sample App.
    Thanks! Ionitron 💙

  3. added
    needs reply
    and removed
    needs reply
    on Jan 8, 2024
  4. added
    needs reply
    on Jan 8, 2024
  5. Ionitron commented on Jan 24, 2024

    @Ionitron
    Collaborator

    It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

    Have a great day!
    Ionitron 💙

  6. removed
    needs reply
    on Jan 24, 2024
  7. ionitron-bot commented on Feb 23, 2024

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

  8. locked and limited conversation to collaborators on Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionplatform: android

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions