AIR hard iOS breaks down: Awakening - observed 503/s more than 300 seconds

Hello

for a project I had to download a file with about 3 GB.

So I decided to write a controller to download of the song based, which easily does the following:

-Open a URLStream

-Load the file a URLRequest

-Wait for the events of progression and the check, we have more than 5 MB in the buffer

-Write bytes to a local file using a combination of Bytearray + Filestream

Additional, I implemented a work around for the limit of file size for the specifications of Android, with regard

only local files is stored in a block when the file exceeds the file size limit.

This solution works very well in this case / test systems:

-Desktop PC - Windows

-Desktop - Mac

-Android - Debug

-Android - release

-iOS 8.1.3 interpret - Debug - fast mode


But when I try to compile and run / debug the application for iOS with the following modes:

-Version Release store

-AdHoc Release version

-Debug build without fast interpreter


The app crashes hard during the download.


I isolated my download controller and created a simple test application, that uses a simple sprite

and the download controller.


During the download of the software is not completely hard crashing but xcode console detects 1-2 crashes:


25 Feb 09:57:29 iPad-mini ReportCrash [422] < error >: task_set_exception_ports (B07, 400, D03, 0, 0) failed with error (4: invalid argument (os/kern))

25 Feb 09:57:29 iPad-mini ReportCrash [422] < reviews >: ReportCrash acting against 421 PID

25 Feb 09:57:29 iPad-mini ReportCrash [422] < reviews >: crash report formulate processes DownloadAndTarUnitTester [421]

25 Feb 09:57:30 mini-iPad ReportCrash [422] < reviews >: sauvΘs report/var/mobile/Library/Logs/CrashReporter/ExcResource_DownloadAndTarUnitTester_2015-02-25-09 5729_iPad - mini.ips


Crash report:


The identifier for the incident: 868898CC-9DAF-422E-889C-F397C2595E8F

CrashReporter Key: eb14103bfc730ebe68f5b1970597c35e3006eb42

Model: iPad 2, 5

Process: DownloadAndTarUnitTester [421]

Path: private/var/mobile/containers/Bundle/app/7F892804-5378-4B81-BE54-C1EDA66FCF96 / Do wnloadAndTarUnitTester.app/DownloadAndTarUnitTester

ID: DownloadAndTarUnitTester

Version: 0.0.0 (0.0.0)

Code type: ARM (native)

Parent process: launchd [1]

Date/time: 09:57:29.864 2015-02-25 + 0100

Time of launch: 2015-02-25 09:56:48.087 + 0100

OS version: iOS 8.1.3 (B 12, 466)

Report Version: 105

Exception type: EXC_RESOURCE

Subtype of exception: alarm CLOCKS

Exception message: (limit 150/sec) observed 1079/s more than 300 seconds

Triggered by Thread: 0

Name of the thread 0: send queue: com.apple.main - wire

Thread 0 assigned:

0 libsystem_pthread.dylib 0x3a1a2eba 0x3a1a2000 + 3770

1 CoreFoundation 0x2befeb68 0x2be32000 + 838504

2 CoreFoundation 0x2be4bb2c CFRunLoopRunSpecific + 472

3 CoreFoundation 0x2be4b93e CFRunLoopRunInMode + 102

4 GraphicsServices 0x3320004c 0x331f7000 + 36940

5 UIKit 0x2f43df1c 0x2f3d0000 + 450332

6 DownloadAndTarUnitTester 0x0026761c 0 x 57000 + 2164252

7 DownloadAndTarUnitTester 0x006ca730 0 x 57000 + 6764336

Thread 1 name: send queue: com.apple.libdispatch - Manager

Thread 1:

0 libsystem_kernel.dylib 0x3a1122c8 kevent64 + 24

1 libdispatch.dylib 0x3a034e44 _dispatch_mgr_invoke + 276

2 libdispatch.dylib 0x3a034b76 _dispatch_mgr_thread$ OPTION$ mp + 34

Screw the 2 name: BackgroundThread

Thread 2:

0 libsystem_kernel.dylib 0x3a125b38 __psynch_cvwait + 24

1 libsystem_pthread.dylib 0x3a1a43dc _pthread_cond_wait + 516

2 libsystem_pthread.dylib 0x3a1a52ac pthread_cond_wait + 36

3 DownloadAndTarUnitTester 0x0041dd90 0 x 57000 + 3960208

4 DownloadAndTarUnitTester 0x002fbe78 0 x 57000 + 2772600

DownloadAndTarUnitTester 0x0041db60 5 x 0 57000 + 3959648

6 DownloadAndTarUnitTester 0x0041dbb4 0 x 57000 + 3959732

7 DownloadAndTarUnitTester 0x0041d8d4 0 x 57000 + 3958996

8 libsystem_pthread.dylib 0x3a1a4e64 _pthread_body + 136

libsystem_pthread.dylib 9 0x3a1a4dd6 _pthread_start + 114

10 libsystem_pthread.dylib 0x3a1a2b80 thread_start + 4

Thread 3 name: BackgroundThread

3 wire:

0 libsystem_kernel.dylib 0x3a125b38 __psynch_cvwait + 24

1 libsystem_pthread.dylib 0x3a1a43dc _pthread_cond_wait + 516

2 libsystem_pthread.dylib 0x3a1a52ac pthread_cond_wait + 36

3 DownloadAndTarUnitTester 0x0041dd90 0 x 57000 + 3960208

4 DownloadAndTarUnitTester 0x002fbe78 0 x 57000 + 2772600

DownloadAndTarUnitTester 0x0041db60 5 x 0 57000 + 3959648

6 DownloadAndTarUnitTester 0x0041dbb4 0 x 57000 + 3959732

7 DownloadAndTarUnitTester 0x0041d8d4 0 x 57000 + 3958996

8 libsystem_pthread.dylib 0x3a1a4e64 _pthread_body + 136

libsystem_pthread.dylib 9 0x3a1a4dd6 _pthread_start + 114

10 libsystem_pthread.dylib 0x3a1a2b80 thread_start + 4

Thread 4:

0 libsystem_kernel.dylib 0x3a12619c __semwait_signal + 24

1 libsystem_c.dylib 0x3a085de0 nanosleep + 168

2 DownloadAndTarUnitTester 0x0041d93c 0 x 57000 + 3959100

3 DownloadAndTarUnitTester 0x0028578c 0 x 57000 + 2287500

4 DownloadAndTarUnitTester 0x0028574c 0 x 57000 + 2287436

DownloadAndTarUnitTester 0x0041db60 5 x 0 57000 + 3959648

6 DownloadAndTarUnitTester 0x0041dbb4 0 x 57000 + 3959732

7 DownloadAndTarUnitTester 0x0041d8d4 0 x 57000 + 3958996

8 libsystem_pthread.dylib 0x3a1a4e64 _pthread_body + 136

libsystem_pthread.dylib 9 0x3a1a4dd6 _pthread_start + 114

10 libsystem_pthread.dylib 0x3a1a2b80 thread_start + 4

[...]




25 Feb 09:59:54 mini-iPad ReportCrash [440] < error >: task_set_exception_ports (B07, 400, D03, 0, 0) failed with error (4: invalid argument (os/kern))

25 Feb 09:59:54 mini-iPad ReportCrash [440] < reviews >: ReportCrash acting against 436 PID

25 Feb 09:59:54 mini-iPad ReportCrash [440] < reviews >: crash report formulate processes DownloadAndTarUnitTester [436]

25 Feb 09:59:55 iPad-mini ReportCrash [440] < reviews >: sauvΘs report/var/mobile/Library/Logs/CrashReporter/ExcResource_DownloadAndTarUnitTester_2015-02-25-09 5954_iPad - mini.ips

Crash report:

CrashReporter Key: eb14103bfc730ebe68f5b1970597c35e3006eb42

Model: iPad 2, 5

Process: DownloadAndTarUnitTester [436]

Path: private/var/mobile/containers/Bundle/app/7A313D06-6D0C-4583-8CCA-C0994F6BCAB0 / Do wnloadAndTarUnitTester.app/DownloadAndTarUnitTester

ID: DownloadAndTarUnitTester

Version: 0.0.0 (0.0.0)

Code type: ARM (native)

Parent process: launchd [1]

Date/time: 09:59:54.603 2015-02-25 + 0100

Time of launch: 2015-02-25 09:58:25.203 + 0100

OS version: iOS 8.1.3 (B 12, 466)

Report Version: 105

Exception type: EXC_RESOURCE

Subtype of exception: alarm CLOCKS

Exception message: (limit 150/sec) observed 503/s more than 300 seconds

Triggered by Thread: 12

Name of the thread 0: send queue: com.apple.main - wire

Thread 0:

0 libsystem_kernel.dylib 0x3a112518 mach_msg_trap + 20

1 libsystem_kernel.dylib 0x3a11230c mach_msg + 36

2 CoreFoundation 0x2bf00596 __CFRunLoopServiceMachPort + 142

3 CoreFoundation 0x2befeb5c __CFRunLoopRun + 1012

4 CoreFoundation 0x2be4bb2c CFRunLoopRunSpecific + 472

5 CoreFoundation 0x2be4b93e CFRunLoopRunInMode + 102

6 GraphicsServices 0x3320004c GSEventRunModal + 132

UIKit 7 0x2f43df1c UIApplicationMain + 1436

8 DownloadAndTarUnitTester 0x002da61c 0xca000 + 2164252

DownloadAndTarUnitTester 9 0x0073d730 0xca000 + 6764336

Thread 1 name: send queue: com.apple.libdispatch - Manager

Thread 1:

0 libsystem_kernel.dylib 0x3a1122c8 kevent64 + 24

1 libdispatch.dylib 0x3a034e44 _dispatch_mgr_invoke + 276

2 libdispatch.dylib 0x3a034b76 _dispatch_mgr_thread$ OPTION$ mp + 34

Thread 2:

0 libsystem_kernel.dylib 0x3a1269cc __workq_kernreturn + 8

1 libsystem_pthread.dylib 0x3a1a2e9c _pthread_wqthread + 788

2 libsystem_pthread.dylib 0x3a1a2b74 start_wqthread + 4

[...]

The debugger doesn't detect error.

I tested AIR 15-16.


Maybe it's a restriction of iOS with regard to the consumption limits new battery for applications.

Then I tried to:

-Set the framerate to a maximum of 30 FRAMES per second

-Extend the size of memory buffer before writing to test on ProgressEvent form 512Ko of 5 MB

But the accidents remain and Awakenings observed do not reduce.



Someone at - it an idea how to solve this problem?

This seems to be due to an incompatibility between the new iOS battery conservation policy and the way AIR handles async workflow operations.

I opened a bug report on this subject: Bug #4006324 - asynchronous URLStream and FileStream operation generate wakeup calls of the system above the limit of iOS

Tags: Adobe AIR

Similar Questions

  • Drop Down Box with lots of elements (more than 300)

    I don't know if it's possible, but is it possible to put a drop of water drop-down to go to a certain point when you start to type the item in the box?

    I have a drop down box that it will take more than 300 different items to choose from and the user is the wish for if you start typing a certain point, it scrolls automatically at this point if you don't scroll all the 300 different items.

    Is it still possible? I have Adobe Acrobat 8 Professional and Adobe LiveCycle Designer ES4 that I can use.

    Any help is appreciated

    Thank you

    When you enter a letter within a drop-down menu, it will jump to the first item that starts with that letter, but it only works for the first letter.

    So if you enter it once again it will jump to the second point, etc.

  • Do I have to buy a new license if my hard drive breaks down?

    I recently bought an upgrade from vista to windows7. I have everything backed up before upgrading, but couldn't do it once the upgrade is complete. About 3 days after I installed upgrading of primary and secondary hard drives both failed... Obviously, portable hard drive do not last as long as computers desktop and 5 years is a long life of your laptop, or so I thought. in any case, I have two new 750 GB momentus xt hybrid SSD of HD and I'm ready to rock but no OS because the key does not work since is not attached to the HD crashed. Any ideas? Please help, I am already tired of using my laptop to marry; his old and say that it is the turtle, and not the rabbit would be cruel to the turtle.

    Like you bought an 'upgrade' I presume that you have actually installed as such on your failed HARD drive now.

    With a new drive HARD vacuum, you have no earlier version of the OS (Vista) for the drive of W7 upgrade to recognize.

    This may be a workaround,

    http://www.SevenForums.com/tutorials/31402-clean-install-upgrade-Windows-7-version.html

    or if it does not work you can try this method of double installation Vista, which is a valid path to a clean install.

    http://www.Vistax64.com/tutorials/68767-clean-install-upgrade-Vista.html

    If it will not always turn on then you are going to have to plead your case to MS via the telephone support option.

    It is up to you to ensure that your license is valid and that you do not violate the EULA

  • the occultation 2 active direct HDDs as a safety net in case a HARD drive breaks down

    I recently had a crash of HARD disk on me.  Unfortunately, he had given patients sensitive to this topic.  No worries HIPAA, I still have the HARD drive.  I would like to extract all the data off a broken HDD and transfer to HARD drive new, fresh, then destroy the old HARD disk to protect data on patients - I intend to use a flashlight to weld for her melt!  Now I have 2 HDD in my pc and want the secondary drive to overshadow the main drive in case of one or the others never decide to plant again.  How do you achieve this direct process shadow between hard drives?  ALSO, can anyone recommend extracting data at a reasonable price so I do not lose my patient data.  It is very important to maintain their record med elec.

    If the data is important then http://www.krollontrack.com/data-recovery/

    You can use a raid mirror array, but is not a replacement for data backups, and in certain circumstances, a defective hard drive can lead to two disks are corrupt

    If you change your PC its possible the new PC cannot recognize a table that has been created on the old PC

    The PC can have an embedded raid controller, or you can use disk management to create a raid array, you should know that allows you to convert dynamic disks, making it its own problems.

    A quality third party Raid card will cost you around $350

    Personally and having seen many problems when using raid, I have on the PC, a third-party imaging program, Acronis TI, this attitude is an image every night to a second drive. This program also features a no stop for which I have data backed up on a third backup drive.

    I also run nightly backups of data to a remote site using another program

  • Together-hard drive breaks down when the resizing of the IDE

    Hi all

    I'm trying to resize a thin provisioned IDE drive using the following command:

    * Set-hard drive - HDD (Get-disk hard - VM myVm) - CapacityKB (37 * 1024 * 1024) *.

    However, I get the following error message when you try to do:

    Invalid operation for the device '0'

    The maximum size that works is 8GB (8 * 1024 * 1024) which is be the default size for the virtual Windows XP machine I created.

    Execution of the order, even against a SCSI drive works fine.

    I'm initially create virtual machines with a disk of 1 MB and resizing in order to reduce the time of provisioning. Someone has seen this before or know a work around? We currently lack of vSphere 4.0.

    Thanks in advance

    Not sure if this is a bug or by design, it appears however that you cannot resize an IDE drive. (Interesting that you mentioned that it works up to 8GB).

    One solution is to convert the drive.

    There is a post on this topic at Yellow brick resize your virtual IDE hard drive

    André

  • After upgrading to IOS 9.1 my iPad2 crashes constantly and Safari takes more than 30 seconds for the loading of the page.  When Apple will solve these problems, given that the downgrade isn't possible?

    After that the IOS upgraded to 9.1 on my iPad 2, the unit has switched navigation performance and each app is lagging, and then crashes the device, to be hard restarts.  Changing such settings recommended in many articles does not improve these problems of performance or speed.  Given that the downgrade is possible, when Apple will release 9.2 to solve all these problems of performance?

    These are performance problems widespread in the complaints I've seen on many articles, even in this community and discussion forums.

    Uh, no.

    iPad 2 questions are far from "widespread".

    Each user who has problems with their brand of Apple devices claimed that their problems are widespread disaster.

    users of iPad 2, 3 and 4, like me, don't post troubleshooting forums if their iOS/updates updates update succeeded.

    Here are my updated list of corrections suggested for a model slow iPad 2, 3 or 4.

    Try to reset all the settings in the settings under general app and in the right column under restore.

    Try stories reset and delete/reset the caches in all web browsers you use.
    If you use Safari, these features may be in the application settings under Safari.
    Other browsers have their settings inside the running application itself.

    If your iPad has been activated for iCloud, in the application settings under iCloud, to the right, under iCloud Drive, type in iCloud drive and make sure that Safari is off to save data from Safari to iCloud by car.

    Also, under iCloud in the application settings, in iCloud Drive, turn the feature off saving for all other desired apps DO NOT the data automatically on iCloud drive.

    If you are using Safari is always causing issues.
    Try changing / using web browser third another, different.
    I do not use iOS Safari too much more because I found it cause me headaches on some Web sites, regularly, to visit.
    I commonly use another third party browser, perfect browser (there are others that can suit your style better web browsing, so look all first to see what third-party browser may work better for you) and I have never experience many questions that Safari was originally.

    In the application settings tab general, right under the spotlight sesrch, try disable the search under the applications who really don't need a research, as some games, remote controls, apps that are really useless to be searched, etc., in order to reduce the list to Spotlight search.

    Try to turn the reduced movement.
    This is found in the application of settings in the general tab, in the left panel.
    In the right panel, look under accessibility, look to reduce the Motion and turn this feature "On".
    You should see a significant performance increase on all models of iPad 2, 3 and 4.

    In the application settings under the general tab, in the right column, search background App update and enable this setting to "off".

    Try a reset of your iPad by simultaneously pressing buttons Home and sleep/wake button until your iPad goes to the dark and restarts with the Apple logo, then release the buttons.

  • I am (early 2013) iMac 21.5 inch 8 GB which is sutting down then restart unexpectedly often more than once a day. I ran the diagnostics of material, check the permissions and disk. All are no problem. Any suggestions?

    I have an iMac (early 2013 21.5 inch 8 GB) which stops and then restarts unexpectedly often more than once a day. I ran the diagnostics of material, check the permissions and disk. All are no problem. Any suggestions? I bought this machine this June last at B & H in New York.

    Please post a report of EtreCheckof your system. We then look for obvious problems. Please click on the link, download the application and run the report. Once you have the report, please copy and paste into your response to this post.

    If you would like more information on what is EtreCheck, just click on the link and you will find a description of the application.

  • Whenever a page is inactive more than 10 seconds or more, the tab bar disappears and I have to type the page until I can scroll down.

    It seems that the browser backgrounds itself, once I type on the page of the tab bar becomes active (ie. it is no longer used in output) and I can use my space bar or press the key to continue scrolling to the bottom of the page again.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • Under Windows, you can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac, you can open Firefox 4.0 + in Safe Mode holding the key option key when starting Firefox.
    • Under Linux, you can open Firefox 4.0 + with leaving Firefox then go to your Terminal and running Safe Mode: firefox-safe-mode (you may need to specify the installation path of Firefox for example/usr/lib/firefox)
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    Thank you.

  • How to create drop down menus in Muse with more than two tabs

    The widget menu pullsown does only two tabs. How do you do this more than two tabs?

    By default, the tabs in the menu widget are generated in Muse based on the site map, that you define in outline view. This is configurable based on the Menu type setting you choose in the options Menu If you wish, only, upper level pages subpages too or manual. So in order to add a third menu tab, you simply add a third upper level page.

    I would like to know if it's not what you're looking for and what exactly you're trying to reach.

    Thank you

    Vinayak

  • list down session oracle connected for more than 24 hours

    Hi Experts,

    Please provide the request in order to get the session active and inactive which was held in the oracle database and consume physical resources.

    Thanks in advance.

    Note: Please refer to last_call_et and v$ session

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • iOS app breaks down at the return of cameraUI - a memory allocation problem?

    Hey all

    try to complete my first application

    When running on iOS, the application crashes SOMETIMES after returning from cameraUI ("use" / MediaEvent.COMPLETE or cancel "/ Event.CANCEL" "").

    When I leave some other applications running on my iPhone 3 g (and not many are open), the problem goes away, which makes me think it is a problem of memory allocation

    in this aspect, can I trust the iOS to leave inactive applications to allocate more memory for my, currently active, AIR application?

    (there is no memory leak)

    This is a version of os running iPhone 3Gs 4.3.5

    the app is made with Flash Pro 5.5 overlaid with AIR 3.1 sdk and deployed by using the "deploy to app store" type (which should be the most free)

    (no crashes on Android or desktop versions)

    someone had this problem of cameraUI or a similar where an application crashes if more then some numbers of applications are open?

    thanx

    Saar

    Hello

    Thanks for reporting the bug. This problem is known to us, and it is currently under investigation. As far as I know, there is no work around.

    Kind regards

    Samia

  • AutoCorrect has learned the word that breaks down when it is typed iOS 10

    I've been using iOS for more than five years, it seems that my library for automatic correction has become corrupted at least for a specific name entry 'Toni smith' I

    Whenever I type the employees name AutoCorrect changes this name string to something that freezes the iOS and iPad all crashes recently I turned off auto correct - dictionary - predictive parameters and it is solved.

    ID like to use once again, AutoCorrect is their way to change a setting in the scholarly dictionary?

    At first, I thought it was just a keyboard problem, but then I went to the dictation and every time at the end of the dictation. Once again the crashes of iOS it happened in Facebook, ios e-mail and enamel with frozen then similar results to crash.

    How to reset my dictionaries through all my idevices. Happening now on ipad and iphone

    Settings > general > reset > reset the keyboard dictionary

  • How can I make sure that my music on my Ipod Classic is not lost forever, if it breaks down?

    How can I make sure that my library of music on my Ipod Classic is not lost forever, if it breaks down?

    Back it up.

    Your music library should never exist only on your iPod.  It must be present on a computer in iTunes, and to be sure it must be saved on an external drive also.

    If your library no longer exists on your computer for whatever, reason, you need to extract the iPod.

    turingtest2 offers you several ways to do this in his user tip found here:

    Recover your iTunes from your iPod or an iOS device

  • How can I get the Facebook app on my macbook air using iOS El Capitan?

    I have the FaceBook app on my iPhone, but I can't get the app on my macbook air running iOS X El Capitan.  There is a Facebook for iPhone and iPad, but not for Mac application.  I could access Facebook via the web, but I lose the functionality in this way.

    There is no FaceBook App for OS X. Access you it using your browser.

  • Firefox hangs and I don't know where to find "subject: breaks down.

    In recent weeks, Firefox started to plant several times and quit unexpectedly - especially when I click to open it. I often get the annoying message "well, this is embarrassing." More useless. I sent the report of the accident and expect to hear from you as to why I have problems, but nothing happens. I can't find how to locate the ' topic: breaks down ' in the address bar. Can you explain this.

    On a Mac, it's Cmd + L to go to the address bar.

    If you have submitted incident Breakpad reports then it would help if you post the ID of one or more reports of incidents Breakpad.
    You can find the ID of the submitted crash reports on the Subject: hangs page.
    You can open the Subject: hangs page through the address bar just like you open a Web site (topic: is a protocol for accessing the internal pages).
    A GUID crash looks like: bp-xxxxxxxx-xxx-xxxx-xxxxxxxxxxxx

    You can copy and paste the links or the crash IDs of some of the most recent accidents, and post them on this forum.

Maybe you are looking for