[AC-1820] Android: Possible mem issue when loading remote images
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-01-05T22:28:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, core |
Reporter | Thomas Froesig |
Assignee | Shak Hossain |
Created | 2013-05-13T16:36:02.000+0000 |
Updated | 2016-03-08T07:40:43.000+0000 |
Description
When trying to loade remote images into the backgroundImage property of a View, the app crashes hard. See attached log.
I have attached the js files which causes the crash, and a sample gif. (no remotelink's or other resources though). Please note the remote pictures loaded are only 4-7 kilobytes each, and the app crashes when loading more then 4.
Attachments
Thomas, I went through the code provided and I could not see a backgroundImage for a view loaded from a remote location. A remotely located backgroundImage is when an image is specified by a URL. Here is an example of using a remote image as a backgroundImage for a view:
This is working as expected. Also, the code provided is a bit long to be considered as a test case for an issue, generally test cases are under 100 lines of code but it is encouraged to keep them below 50 lines if possible. This way the issue can be isolated due to removing extra factors. Would you mind reducing your test case as such? For future reference: https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report Regards, Carter
Hi there Carter, I see your point that the code is too long. The images are required from another .js file - and then updated as background in the views. I'll try and reproduce in smaller and more compact example. Best Wishes /Thomas
Hi Thomas, We have not heard back from you since your last update in May. Not sure if this is still showing memory issues in your app. If so, please send us a test case so that we can take next necessary step to fix. If we don't hear back, we will assume the issue is no longer valid and close it.
Hello, We tested this issue with the test code below. We can’t reproduce this issue. It’s working as expected.
Test Environment:
MAC OS X 10.8.5 Ti SDK 3.2.0.GA Ti CLI 3.2.0 Android 2.3.3, 4.2.2Test Code
app.jstest.js
Thanks
Closing it since we have not heard back from the reporter. A functional code sample has been posted for reference.