Debugging Crash on device

My app is very close to completion but it is crashing periodically. I finally was able to get remote debugging working from the device to my laptop but when the app crashed nothing was reported.
How can I find out information on why the app is crashing?
I thought is might be a memory leak but tracing system memory during my debug session show the memory to stay between 3 and 4mb.
I need help finding the source or the crashing so I can upload to the app store.

I had similar issues you describe. My memory meter reported that memory useage was actually quite low (less than 6 megs) but my app would quit with no error even in the debugger. The problem was due to me using very large bitmap images without calling:
removeChild(myBitmap);
myBitmap.bitmapData.dispose();
myBitmap = null;
Basically the GPU memory was being gobbled up when I wasn't disposing of the bitmap when it wasn't needed and the app was closed by iOS automatically.

Similar Messages

  • Flash Builder (4.5.1) iOS on-device debug crash

    Hi all,
    I've got a Flex app that I'm building for an iPAD and I can debug it on the simulator and on the iPad device (if I select 'fast' packaging method).
    The problem is when I want to debug on the device using the "Standard" option for packaging (which takes several minutes) or try to do an export release for the iPad, the application starts up and immidiately terminates after the splash screen.
    Any clues would be greatly appreciated.
    Cheers,
    Bashar

    Hello Season.W,
    I finally managed to resolve this issue. It was due to an xml file that wasn't included in the "package contents" in the "export release build" window.
    Imagine you have an "assets" folder in your project where you keep xml files, images, sounds etc. Sometimes the compiler doesn't actually pick up references in the code for these assets especially if you're referencing a file like:
    var configFileLocation:String = "assets/xml/config.xml";
    The compiler won't pick up the fact that it needs this file so it doesn't include it in the final release. In the release window, just check the "package contents" window to ensure all the necessary files are there. If you notice that they're there but unchecked (there's a tick box), then you can simply tick the checkbox.
    Other times you don't even see the asset/file in that window. I read a nice hack to get around this issue. You simply click "back" on the "export release build" window, then go to Windows Explorer (or Finder in Mac) and find the "bin-release-temp" directory. You can copy all the necessary files/assets in there manually. After copying, just go back to the "export release build" window and click "next", you will then be able to see all the files you added in the "package contents". This way you can ensure that your application gets packaged with all the necessary external files.
    Phew! I'm so relieved that I found the problem tho.. Thanks for your suggestions as well. I will keep those in mind.
    Cheers,
    Bashar

  • Agentry App crashes on Device but not in the ATE Testenvirement

    Hello,
    we make a app which works fine in the ATE Testenvirement and also in a iPhone but our main Plattform is the The WIndows Mobile Pocket PC.
    We use a Motorola MC65 with Windows Mobile 6.1 Professional.
    On the Motorola the app crashes in a definite transaction when we close the transaction screen.
    Workflow is this: we open a detail screen with a listview -> with double click we pick a object from a collection and  starts the transaction -> close the transaction screen -> now a rule decide what will happen (you can see the rule in the picture) -> but the app crashs before something happens.
    Could we debug the client or could we create some loggings on the device? We dont know how we could find out why the app crashes. (as information: if the agentry client crashes on this point, we could not end the task from the agentry client with the task manager, we have to restart the Motorola client)
    Thanx,
    André
    Tags edited by: Michael Appleby

    Hallo,
    now we fixed the problem.
    As i told you we start the transaction screen from the detail screen and after ending the gtransaction the screen did not close and the client did not respond anymore.
    We fixed the Problem in this way that we do a navigationstep after the transaction step. In this we make the decision which screen should be shown as the next screen an open it. Thats all. In all other Client beside the WinCE Client the Transactionscreen closed and we could see the last detail screen. But on the  WinCE Client we nedd the navigation step.
    I dont know if this is a bug from the WinCE Agentry Client Version 6.1.4.54024 but this workarpund was the solution for us.
    @Jason: we breaking the rule down to separate subrules so the debugging in much better but we loose the reference to the object we used in the main rule, so we keep the active object refernce in a temp attribut at the main object and  get the active object with this id in the subrules

  • (PC and Surface 8.1)bad pool header error: remote debugging using ARM device

    Tools used:
    Microsoft Visual Studio Professional 2013
    Remote Debugger Monitor (Surface RT 8.1)
    I have successfully activated the developer license as administrator.
    I have attempted to run the test app on remote device but my pc crashes before or when reaching certification.
    So far, I have attempted to run an app software for the ARM device; however, ever since I have upgraded the surface to 8.1, I constantly get the bad pool header crash, even after successfully connecting the pc to rt device.
    is there any way I can resolve the issue so I can successfully to remote debugging?
    any help is appreciated.

    Hi,
    Considering that the issue should be related to Windows RT 8.1, and  Since we have limited testing environment, I suggest you submit a new case on Windows RT forum as they will be more professional on your issue:
    This is the Windows RT 8.1 forum link.
    http://answers.microsoft.com/en-us/windows/forum/windowsrt8_1?sort=lastreplydate&dir=desc&tab=Threads&status=&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&tm=1392101458999
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Push Notification Background Task Crashes Emulator/Device

    I have a universal app for Win 8.1 and WinPhone 8.1. I have a background task triggered by push notifications, which has worked fine in my Win 8.1 app. I made the necessary changes as far as registration goes for the Phone 8.1 app, and as far as I can tell
    registration is fine. So I launch the app in the emulator, and send a raw notification using the 'Notification Simulator' tool. This does indeed trigger my background task JS file, but the emulator promptly crashes after displaying an error like "Network
    communication is no longer available" or some such. This happens even if I put a break point on the first statement of the background task script. I've also tried using a real push notification from my web service and that produces the same results (emulator/device
    crashing).
    I made a small test in which I changed my trigger type to a system event so I could manually trigger the background task via VS. Doing this, I was able to properly debug the background task script. So something is definitely messed up with the push notification
    trigger, but I have no idea what it could be. I've even copied my background task registration code to the 'RawNotifications Sample' app and that still works, so I know the registration code works. I've also copied the exact same code for the background task
    script from the sample app since I know that should work.
    The emulator crashing could be due to some errors I occasionally see in the background task, one of which is an 'Access denied' error when trying to access the
    'WebUIBackgroundTaskInstance.current' property inside the background task. Another error occurred when trying to access
    'ApplicationData.localSettings'. That one was something like 'failed to load state store'.
    If anyone can make sense of any of this that'd be wonderful. I can post some screenshots of errors, etc. later today for added clarification.
    Thanks.

    So I've done some more investigating and it turns out the
    sample app actually does not work as intended. When I thought it was working, I actually wasn't invoking the background task capability, but rather the
    pushnotificationreceived event on the notification channel. After running the part of the app that is supposed to run the background task on receiving a push notification, I get the same crashing behavior as my own application. Based on this,
    it would seem that Windows Phone 8.1 Developer Preview does not actually support background tasks triggered by push notifications.
    Here are some screenshots of the emulator after I try pushing a raw notification via the NSE.

  • ITunes 11 crashes when device plugged in, iTunes 12 crashes whenever I do anything other than listen to music

    Hey Apple Support!
    I am about to return my POS Apple products and all Apple products in my household / never buy one ever again!  But first please help me out getting your junk to work until I can replace it all.
    Running Windows 8.1 (latest updates), and randomly today, my iTunes 11 starts crashing when I plug in my iPhone 5 ios7.1.  NOTE: I have made no changes to the iPhone or iTunes for a few months and they have been working together fine, this issue just popped out of the blue today.  So, I upgrade to iTunes 12 thinking that will solve the issue.  Other than giving me a terrible display and slower start-up time, iTunes 12 is a whole lot worse!  Not only does plugging in a device crash it, but running uninstaller also crashes!  Reinstall / repair crashes!  Trying to edit preferences in iTunes crashes! (I AM NOT MAKING THIS UP ALL OF THESE CASES ARE OCCURRING) I can't get rid of your trash software!  That's not so bad, since I never use iTunes for anything but syncing to my iPhone, EXCEPT I just had to buy a replacement iPhone 5S today because I was told that somehow after camping in the desert (i.e. no water) my phone got water damaged!  And before that incident even happened my iPhone has almost always had issues with the screen mis-reading gestures which today caused me to delete a text conversation with someone and I opened a separate question about why after that happened my phone continues to delete new texts from this person, but no one has answered!  If any specialist responds with the "iTunes: May become unresponsive when connecting iPhone, iPad, or iPod touch" then I'm heading straight to the AT&T store to return this brick I just bought.

    Any help on this? its really annoying.

  • Flash builder 4.7 debug via usb device iPhone 4s - device not found

    I cannot find my iphone 4s while trying to debug via usb =(
    i exported ipa and installed it via itunes - this works. but i would love to debug on device.
    im using actionscript mobile project air 3.4
    im using windows 7
    ==================offtopic====================
    also how do i add icons for iphone?
    Thank you for your time! Cheers!

    Hi ,
    Please provide more info on the above issue:
    1.What is the message shown when you try to debug the application via USB on iOS device ?
    2.Are you able to debug on other iOS devices ?
    Run this below command from commandline :
    "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.348139\AIRSDK\lib \aot\bin\iOSBin\idb.exe" -devices
    Note:Make sure your  device is connected to the machine.
    The above command should list all the iOS devices connected to the machine. If a single device is connected,Flash Builder installs application  on device and waits for debugger connection. If multiple devices are connected, choose device dialog will be shown.
    Thanks,
    Sanjay

  • Monodevelop DEBUG Crash.

    Hi guys.
    here is the problem:
    Monodevelop make a CRASH each time i use it to DEBUG and application.
    Mdb from console works correctly.
    Here is the output of monodevelogp debugger:
    Module TestNew, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null loaded.
    Thread 1 received signal 11.
    Stacktrace:
    Native stacktrace:
        /usr/bin/mono [0x4a8fb0]
        /usr/bin/mono [0x4db6cd]
        /lib/libpthread.so.0 [0x7fdccab82920]
        [0x7fffd387fb41]
    =================================================================
    Got a SIGSEGV while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries
    used by your application.
    =================================================================
    Thread 1 received signal 6.
    Thread 3 exited.
    Thread 2 exited.
    Thread 1 exited.
    Process 1 exited.
    Target exited.
    Usings:
    extra/mono 2.2-1
         Free implementation of the .NET platform including runtime and compiler
    extra/mono-addins 0.4-1
         a generic framework for creating extensible applications and for creating
         libraries which extend those applications
    extra/mono-debugger 2.2-2
         The Mono Debugger
    extra/mono-tools 2.2-1
         collection of testing and development tools for use with mono (including
         monodoc browser)
    community/monodevelop 1.9.3-1
         A Mono port of SharpDevelop, a .NET Integrated Development Tool [MD 2.0
         beta]
    local/monodevelop-debugger-mdb 1.9.3-1
         Mono Debugger support
    local/webkit-sharp 0.2-1
         WebKit bindings for Mono
    extra/xsp 2.2-1
         A simple webserver based on mono - provides ASP.NET support
    PS: local packages are downloaded from aur.
    I'm on Arch64.
    anyone has the same problem?
    or..
    anyone can help me?
    thx in advance.

    k.. i'll wait...

  • Debugging on Nokia device

    Hi,
    I have written a J2ME application. I have some problems when I run the application on Nokia 3230 device. Is it possible to view the debug traces from the device? I have a data cable connection between mobile and PC through USB port.
    Thanks,

    did you check *[Forum Nokia - Mobile J2ME Applications|http://www.forum.nokia.com/Technology_Topics/Development_Platforms/Java.xhtml|Nokia resources]*?

  • HT1212 forgot my passcode how can i reset the password without crashing my device

    need help to reset password on line without crashing my ipod

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iOS device will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store   
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • How to debug adding usb device

    When I add my new Iomega Helium USB HD to my Macbook Pro running 10.6.8, the screen and keyboard all freeze. There laptop has to be rebooted. It does this when I do it standalone and when I use external screen, keyboard and hub.
    It is a problem with my setup because the drive works fine will all of the other Windows and Mac machines I have.
    The cause was the installation of the Iomega software (why did I ever trust Iomega software?) as I only installed it on my macbook pro.
    Can I run some diagnostics/debug to trace the insertion of the USB device to see where it is going wrong? I have manually uninstalled the software but I am convinced I have missed something.
    I have a complete clone backup from before the installation but don't want to lose other changes (like email etc) since that day, although I am happy to restore specific files.
    Thanks

    And it used to be fine until I installed the Iomega software.
    Iomega software, i.e., software to use an external drive.  Never a good thing (I guess you are finding that out).
    I always recommened external enlosures which are dumb boxes, i.e., their only purpose in life is to allow you to communicate with the drive they enclose.   Additional software only gets in the way and you shouldn't need it.
    If that box was running fine without their software what prompted you to add it?   And why can't you uninstall it?

  • Debug crashing in Firefox 4

    The flash plugin is crashing after about fifteen seconds when I'm triggering a break point in Firefox. I tried debugging in Safari and I didn't experience this problem. There wasn't anything helpful listed in the Mozilla database, so I thought I'd check here to see if anyone has any information or tips regarding this problem.
    Thanks,
    ~Benny

    Cannot help you but just to say it does the same in Chrome 10..

  • SOLVED: BB Desktop software crashes when device is connected

    I had been having a problem where my desktop software crashed whenever I plugged in my Bold 9700 and I figured out a solution so I thought I would share it. FYI I'm using Blackberry Desktop Software v6.0.0.43 on Windows XP SP3.
    I found there is a logfile at C:\Documents and Settings\<USERNAME>\Application Data\Rim.Desktop.Exception.log and the last entry was:
    Date|Log Level|Thread ID|Module ID|Log ID|Message [2010-11-16 09:38:44.087]
    09:39:37.215|FATAL|25|Exception|0|Fatal Error
    System.UnauthorizedAccessException: Access to the path 'E:\BlackBerry\system\Media Sync\bbMusicSync.settings.$$' is denied.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
       at System.IO.StreamWriter.CreateFile(String path, Boolean append)
       at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
       at System.IO.StreamWriter..ctor(String path, Boolean append)
       at System.IO.FileInfo.CreateText()
       at Rim.Common.Utilities.FileSystem.FilePath.CreateTex​t()
       at Rim.Media.Device.DriveSettings.SaveSettings()
       at Rim.Media.Device.BlackBerryInfo.SaveSettingsIfChan​ged()
       at Rim.Media.Sync.BBMusicSyncAPI.TryLoadDeviceSetting​s(IBlackBerryInfo device, Boolean& isSettingsFileUpgraded)
       at Rim.Media.Sync.BBMusicSyncAPI.OnDeviceConnected(Ob​ject sender, EventArgs e)
       at Rim.Common.Utilities.Events.Eventer.Raise(Object sender, EventHandler handler, EventArgs e)
       at Rim.Common.Utilities.Events.Eventer.Raise(Object sender, EventHandler handler)
       at Rim.Media.Device.DeviceService.SetCurrentDevice(Bl​ackBerryInfo bbinfo)
       at Rim.Media.Device.DeviceService.OnDeviceAcquired(ID​evice device, Object token, DeviceAcquireResult result)
       at Rim.Desktop.Services.DeviceManager.Device.HandleDe​viceRequest(DeviceRequest request)
       at Rim.Desktop.Services.DeviceManager.Device.HandleDe​viceRequestThread()
       at System.Threading.ThreadHelper.ThreadStart_Context(​Object state)
       at System.Threading.ExecutionContext.Run(ExecutionCon​text executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    Date|Log Level|Thread ID|Module ID|Log ID|Message [2010-11-16 09:51:20.979]
    I had tried uninstalling and reinstalling the desktop software to no avail. Finally I tried deleting the E:\BlackBerry\system\Media Sync\bbMusicSync.settings file from my Blackberry and still it did not work. The solution was that I had to delete the \Media Sync\ folder itself. I reinstalled BB desktop and plugged in my Blackberry and it all ran fine. You will have to set up all your sync settings and whatnot again. I hope this helps someone out.

    Thks for your quick reply.  I cannot open any devices or apps in "my comptr" while playbook is plugged in.  The screen greys and Windows stops responding.  I can open "devices & printers" right click on BB cd drive then click on find new drivers. Windows says I already have most current drivers installed.  I have an older laptop running Win XP. with no problems connecting to PB.   My issue seems simular to those addressed in a later post by prochejr.  This appears to be a Win 7 prob.  Log in "trouble shooting" tells me application (BB desktop software) has incompatability issues with computer OS.

  • Crash on Device but not in Simulator when deleteRowsAtIndexPaths

    Hi,
    I'm getting this crash:
    * Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-963.10/UITableView.m:729
    2009-08-26 11:30:28.718 xxx[494:5917] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (7) must be equal to the number of rows contained in that section before the update (8), plus or minus the number of rows inserted or deleted from that section (0 inserted, 2 deleted).'
    When calling this:
    [self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath] withRowAnimation:UITableViewRowAnimationFade];
    Not really sure what's going on. This works in the simulator no problem. I have no idea why it says 2 deleted since indexPath is declared like this:
    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:(int)[sender tag] inSection:0];
    So it can really only be one row that's being deleted.
    Have any of you guys experienced this before? I'm lost on this one.
    -Thanks

    Hi Matt, and welcome to the Dev Forum!
    [self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath]];
    arrayWithObjects requires a nil terminated list. You could just strip the 's' off of Objects in this case, or add the terminator:
    // this:
    [NSArray arrayWithObject:indexPath]
    // or this:
    [NSArray arrayWithObjects:indexPath, nil]
    When a required terminator is missing, the result is generally unpredictable. For example, your simulator binary might've wound up with 4 zero bytes after indexPath, while the device binary did not. This crash is an excellent example of how easily we can draw the wrong conclusion when comparing simulator and device runs. Note also, that if the code surrounding the above were changed in any way, you might be able to get the simulator to crash as well. Yet another way these machines know how to make people crazy.
    Hope that helps!
    - Ray

  • Camera flash stays on and crashes the device

    I have the camera flash set to automatic.  Whenever it flashes, it doesn't just flash--it stays on and crashes the entire device (except for the light).  A battery pull resets the device (including the light).  Something about the flash function is causing it because if the camera does not use the flash there is no problem.  Any recommendations?
    Solved!
    Go to Solution.

    Hi and welcome to the forums!
    Try opening the video camera and using the light. Any problems?
    I would open the camera, options, change the flash to any other option then save.
    Open the camera again, select the flash option desired and save. Then do a battery
    pull as listed.
    Let us know how it goes!
    Thanks,
    Bifocals
    No data will be lost when doing the following: pull the battery while the device is ON.
    Replace after a minute, Let the device reboot 1-3 min, see if the problem is fixed.
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

Maybe you are looking for

  • Summation of a field in ALV report

    Hi, I hv created an ALV Report. But i m not getting the summation sign in the Application Toolbar. What can be the problem? I am trying to find out the sum of the the field NETWR in table VBAK. Thanks, Mohit.

  • Mixing static and dynamic content in a single outputText value causes NPEs

    Hi, I am having a problem and I'm wondering if it is a result of my error or if this is a bug. I am mixing dynamic and static content in the value attribute of tags (e.g., outputText). On initial page load, everything works fine. However, if the same

  • How do I make Pages the default program?

    Hi, This may be quite basic, but I can't seem figure it out. I've just migrated from a PC to a Mac and I have a lot of .doc's. I want to make Pages the default program to open all of my MS Word documents; however, when I select >open with>other>iWork

  • Hashmap containsKey() method does not appear to work

    Hashmap containsKey() method does not appear to work I have an amazingly simple custom class called CalculationKey, with my own amazingly simple custom equals() method. For some reason when I call my containsKey() method on my HashMap it does not use

  • Migrating  from TIBCO to SAP XI

    Hi All, One of the company are migrating from Tibco. Please suggest me,if there are any tools which would support a migration to XI and if there are any notes on the web stating where most people had issues migrating from Tibco.Please note One of the