Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19366] iOS9: Remote images served over http crash app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-08-24T01:45:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelshttpclient, imageView
ReporterRick Blalock
AssigneeEric Merriman
Created2015-08-18T04:01:02.000+0000
Updated2017-03-31T22:46:56.000+0000

Description

Steps to reproduce: 1. Point an ImageView to a remote image over http (not https) 2. Add this to plist:
                <key>NSAppTransportSecurity</key>
                <dict>
                  <key>NSAllowsArbitraryLoads</key>
                  <true />
                </dict>
3. Run app and crash I attached the crash file.

Attachments

FileDateSize
FishRulesApp_2015-08-17-234908_rblalockRMBP.crash2015-08-18T04:00:54.000+0000107648

Comments

  1. Rick Blalock 2015-08-18

    Also, I've verified that if I remove the image views pointing to the remote images served up over http, it does not crash.
  2. Chee Kiat Ng 2015-08-18

    [~rblalock], I can't reproduce. I have tiapp.xml updated as above. Then I have this sample code:
       var win = Ti.UI.createWindow({
       	backgroundColor: 'white'
       });
       
       var imageView = Ti.UI.createImageView({
       	image: 'http://www.start-centre.com/images/stories/arts_c/ART%20SIC%202015%20logo.jpg'
       });
       
       win.add(imageView);
       win.open();
       
    works fine.
  3. Rick Blalock 2015-08-18

    hmm weird. Not sure how to troubleshoot further on this.
  4. Rick Blalock 2015-08-24

    Can anything be gleaned from the crash log I attached to the ticket to help me troubleshoot this further?
  5. Chee Kiat Ng 2015-08-24

    Any specific image URL we can try to troubleshoot? It looks like it's still related to trying to load an image from some URL. https://github.com/appcelerator/titanium_mobile/pull/7038/files for reference about whitelisting.
  6. Rick Blalock 2015-08-24

    I've narrowed this down to something in my list view that is loading remote images. However, in a test app...I cannot reproduce it yet. Still working on it...
  7. Chee Kiat Ng 2015-08-27

  8. Rick Blalock 2015-08-27

    So was it crashing because the plist dict was conflicting? Why would that cause a crash?
  9. Rick Blalock 2015-08-27

    also...this still crashes for me
  10. Chee Kiat Ng 2015-08-27

  11. Lee Morris 2017-03-31

    Closing ticket as "Cannot Reproduce", if you encounter any further problems please file a new ticket.

JSON Source