Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3070] iOS: Memory Warnings Unloads App (black screen of death)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-08-10T02:29:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsenterprise
ReporterHaitham Al-Beik
AssigneeTony Guntharp
Created2011-07-01T22:20:10.000+0000
Updated2016-03-08T07:48:07.000+0000

Description

Steps: 1. Touch "Open Modal" 2. Select a Photo from the Library 3. From the Hardware Menu select "Simulate Memory Warning" Note the following displayed in the console: [INFO] Due to memory conditions, 0 of 0 images were unloaded from cache. 4. Touch "Next" 5. Touch the "Caption" TextField Result: - The app will go dark showing the background color - The app looks dead to the user

Attachments

FileDateSize
app.js2011-07-01T22:20:10.000+00003585

Comments

  1. Haitham Al-Beik 2011-07-01

  2. Haitham Al-Beik 2011-07-01

    The code can be seen here: http://pastie.org/2153274 (same as what is attached to this case)
  3. Haitham Al-Beik 2011-07-16

    How do I get someone to look at this?
  4. Paul Dowsett 2011-07-26

    Haitham Thanks for the ticket, but we need the console log to determine what is going wrong. Would you please test this on the latest 1.7.X, and include the log from it, please? Many thanks
  5. Paul Dowsett 2011-08-10

    As there has been no response, we will close this ticket for the moment. If you have time, you are welcome to add the requested information and we will reopen it. Thanks
  6. Paul Dowsett 2011-10-07

    Closing due to inactivity.
  7. Jason Sznol 2012-01-06

    I am experiencing the exact same issue with my app as well and the steps listed to reproduce this issue. Please let me know what I need to produce to get this issue looked at. I have a console log of the crash that I am attaching here that prefaced the black screen. : [DEBUG] SCF.Media.photoSourceOptionDialog() Jan 6 14:37:16 unknown UIKitApplication:com.seeclickfix.app.test[0xc97c][44639] : [DEBUG] SCF.Media.photoSourceOptionDialog(): showing dialog. Jan 6 14:37:16 unknown UIKitApplication:com.seeclickfix.app.test[0xc97c][44639] : [DEBUG] SCF.Media.photoSourceOptionDialog(): done. Jan 6 14:37:17 unknown UIKitApplication:com.seeclickfix.app.test[0xc97c][44639] : [DEBUG] selectSourceClick(): Menu clicked. Jan 6 14:37:17 unknown UIKitApplication:com.seeclickfix.app.test[0xc97c][44639] : [DEBUG] $$.UI.Photo.fn.picker() Jan 6 14:37:17 unknown kernel[0] : AppleH4CamIn::setPowerStateGated: 1 Jan 6 14:37:17 unknown kernel[0] : AppleH4CamIn::power_on_hardware Jan 6 14:37:18 unknown CommCenter[18] : Client [com.apple.persistentconnection[dataaccessd,53]] is telling PDP context 0 to go active. Jan 6 14:37:19 unknown MobileMail[16058] : Received memory warning. Jan 6 14:37:19 unknown SeeClickFix Test[44639] : Received memory warning. Jan 6 14:37:19 unknown UIKitApplication:com.seeclickfix.app.test[0xc97c][44639] : [INFO] Due to memory conditions, 0 of 0 image cache entries were unloaded from cache. Jan 6 14:37:20 unknown CommCenter[18] : Client [com.apple.persistentconnection[dataaccessd,53]] is telling PDP context 0 to go active. Jan 6 14:37:20 unknown UIKitApplication:com.seeclickfix.app.test[0xc97c][44639] : [DEBUG] $$.UI.Photo.fn.save() Jan 6 14:37:20 unknown UIKitApplication:com.seeclickfix.app.test[0xc97c][44639] : [DEBUG] SCF.Media.scaleImage() Jan 6 14:37:20 unknown kernel[0] : AppleH4CamIn::setPowerStateGated: 0 Jan 6 14:37:20 unknown kernel[0] : AppleH4CamIn::power_off_hardware Jan 6 14:37:21 unknown UIKitApplication:com.seeclickfix.app.test[0xc97c][44639] : [DEBUG] $$.Data.Save(): Saving Data - [object Object] Jan 6 14:37:21 unknown UIKitApplication:com.seeclickfix.app.test[0xc97c][44639] : [INFO] [DB] [issues] update() Jan 6 14:37:21 unknown UIKitApplication:com.seeclickfix.app.test[0xc97c][44639] At this point, our app has a black screen and can only be reopened by force quitting it from the IOS home screen.
  8. Jason Sznol 2012-01-06

    Also, I want to point out this happens with a window that is a child of a navigation group and a modal window as well.
  9. Paul Dowsett 2012-01-06

    Jason Thanks for raising this ticket. Please read [How to Submit a Bug Report](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report), and raise a new ticket about this. For the description, you can use [this template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template) as a starting point. Bear in mind that we must be able to reproduce the issue in order to accept it, and so a test case must be included and run without modification, as per the [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase) section. Cheers
  10. Paul Dowsett 2012-01-10

    Jason My apologies - I thought you were the reporter. If this issue is still troubling you, please raise a new ticket, providing all the information in my previous comment. Thanks in advance

JSON Source