Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11259] Android: Trying to upload a file of size 25.5 MB or above from an android device using the cloud sample app leads to an out of memory runtime error

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.1.2, Release 2.1.3
Fix Version/sn/a
ComponentsAndroid
Labelsqe-and090112
ReporterSmitha Guduru
AssigneeUnknown
Created2012-10-04T17:30:13.000+0000
Updated2018-02-28T20:03:54.000+0000

Description

Uploading a file of 25.5 MB or higher from an android device using the cloud sample app leads to an out of memory runtime error. Steps to reproduce: Before installing the attached app(25mb) to a device, please go to "Resources > windows > files". Add a file that is 25.5 MB(Zip) or higher to the "files" folder. Open "create.js" in "files" and replace "Skype.zip" with the file you are using. Clean the project and install it to an android device. Also if needed for the curl commands, the attached cloud app's key is zl7TjeDZmiv9B1yKUJMtvKd6C9m30t6a (note:this is not appc_guid) 1. Launch the cloud app on an android device 2. Go to "Users > Create User" 3. Enter a Username, Password, First Name, Last Name and press the "Create" button 4. Wait for a confirmation alert after the user is created 5. Now go back to the root level and go to "Files > Create File" 6. Enter a name for the file, press "Create" button Actual result: If a file of size 25.5 MB or above is used to create(upload) a file, an out of memory runtime error is appearing on android. Please see the attached screenshots and logs. This runtime error is occurring only when using android devices. Verified the ACS API for "Create file" using the curl commands and works fine. Expected result: If a file is uploaded, an out of memory runtime error should not occur.

Attachments

FileDateSize
25.5MBAndroid.png2012-10-04T17:30:13.000+000059929
25.5MBandroid.txt2012-10-04T17:30:13.000+00005248
25mb.zip2012-10-04T17:30:13.000+00003955013
27MBandroid.png2012-10-04T17:30:13.000+000088835
27MBandroid.txt2012-10-04T17:30:13.000+00006217

Comments

  1. Smitha Guduru 2012-10-26

    This issue is still being reproducible on android devices. \\ \\ Verified in: SDK: 3.0.0.v20121019153308, Titanium Studio: 3.0.0.201210220122 ti.cloud: 2.3.0, ti.cloudpush: 2.0.7, Device: Droid(2.2.3)
  2. Shameer Jan 2013-03-20

    It shows runtime error when open the application. Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2

JSON Source