Uploaded image for project: 'Nuxeo Mobile'
  1. Nuxeo Mobile
  2. NXMOB-519

Sharing a big video with Nuxeo crashes on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Android 1.13
    • Component/s: Android

      Description

      Go to Photos, choose a video > 100 MB, share it with Nuxeo. The share extension crashes with

      05-09 17:00:05.846 14897 14947 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
      05-09 17:00:05.846 14897 14947 E AndroidRuntime: Process: com.nuxeomobile, PID: 14897
      05-09 17:00:05.846 14897 14947 E AndroidRuntime: java.lang.RuntimeException: Could not invoke Networking.sendRequest
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:383)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:739)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at android.os.Looper.loop(Looper.java:148)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at java.lang.Thread.run(Thread.java:818)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     ... 8 more
      05-09 17:00:05.846 14897 14947 E AndroidRuntime: Caused by: java.lang.OutOfMemoryError: Failed to allocate a 134215692 byte allocation with 16777216 free bytes and 111MB until OOM
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:91)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:201)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at com.facebook.react.modules.blob.BlobModule.getBytesFromUri(BlobModule.java:233)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at com.facebook.react.modules.blob.BlobModule.access$000(BlobModule.java:49)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at com.facebook.react.modules.blob.BlobModule$2.fetch(BlobModule.java:89)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     at com.facebook.react.modules.network.NetworkingModule.sendRequest(NetworkingModule.java:256)
      05-09 17:00:05.846 14897 14947 E AndroidRuntime:     ... 10 more
      05-09 17:00:05.850   778   966 W ActivityManager:   Force finishing activity com.nuxeomobile/.share.ShareExtensionActivity
      

      It seems that the complete blob bytes are stored in memory by RN's BlobModule when fetching the blob.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ataillefer Antoine Taillefer
                Reporter:
                ataillefer Antoine Taillefer
                Participants:
                Reviewers:
                Yannis Achour
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 2 hours
                  2d 2h